| Below is my code, the two problems I have is the loading panel never shows up while binding, the second is the grid shows 11 empty rows untill it finishes binding to the Webservice this is based on the page size i do believe even though I am not using pageing. It also does not render the images past the 11th row <telerik:RadScriptBlock ID="rsb" runat="server"> |
| <script type="text/javascript"> |
| function NavRowClick(sender, eventArgs) |
| { |
| window.location.href = "<%= Request.ApplicationPath %>/" + eventArgs.getDataKeyValue("URL") |
| } |
| function NavRowDataBound(sender, eventArgs) |
| { |
| if (("<%= Request.ApplicationPath %>/" + eventArgs.get_dataItem().URL) == document.location.pathname) |
| { |
| eventArgs.get_item().addCssClass("navSelected"); |
| } |
| } |
| </script> |
| </telerik:RadScriptBlock> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="rg_n"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="rg_n" LoadingPanelID="rlp" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel runat="server" ID="rlp" /> |
| <telerik:RadGrid ID="rg_n" runat="server" ShowHeader="false" CssClass="n" AlternatingItemStyle-CssClass="nav" ItemStyle-CssClass="nav" AutoGenerateColumns="false" AllowPaging=false> |
| <ClientSettings ClientEvents-OnRowClick="NavRowClick" ClientEvents-OnRowDataBound="NavRowDataBound" > |
| <DataBinding Location="~/main.asmx" SelectMethod="GetNavigation" EnableCaching="true" /> |
| </ClientSettings> |
| <MasterTableView ClientDataKeyNames="URL"> |
| <NoRecordsTemplate>No Menu Items</NoRecordsTemplate> |
| <Columns> |
| <telerik:GridImageColumn DataImageUrlFields="ImageURL" DataImageUrlFormatString="~/MasterPages/images/{0}" DataType="System.String" DataAlternateTextField="Name" ImageHeight="16" ImageWidth="16" ItemStyle-Width="16" ItemStyle-Height="16"></telerik:GridImageColumn> |
| <telerik:GridBoundColumn DataField="Name" ItemStyle-HorizontalAlign="Left" ></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |