<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> <script type="text/javascript"> var radGrid = null; var masterTableView = null; var rgDataItems = null; function pageLoad() { radGrid = $find("<%= RadGrid1.ClientID %>"); masterTableView = grid.get_masterTableView(); rgDataItems = masterTable.get_dataItems(); } </script> </telerik:RadCodeBlock>
Thursday, September 19, 2013
Telerik: Why the $find Method is Not Working for RadGrid
The reason the $find method is not working for you is because the RadGrid loads on late binding. You need to get the RadGrid client object in the pageLoad() function like in the code below. After you get it you can set the global variables in the your Javascript so the other function will have access to the RadGrid object.
Mua vé tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ bao nhiêu tiền
lịch bay mỹ về việt nam
vé máy bay từ nhật về việt nam bao nhiêu
chuyến bay từ đức về hà nội hôm nay
vé máy bay từ canada về việt nam giá rẻ
Giá vé máy bay Hàn Việt Vietjet
chuyen bay chuyen gia ve viet nam