Hi,
I have problem with loadcontrol also.
If I load control on server side:
I have problem with client script on RadGrid. Some client ajax function are not ok (paging, page size, grouping, I see ajax load image only first time then only when refresh pages...).
I I load control as <uc1:ResultGrid ID="ResultGrid1" runat="server" /> all is OK.
But I need add control dynamically :(
Inside my usercontrol I have only RadGrid
Thanks for answer.
Regards
Roman Krsko
I have problem with loadcontrol also.
If I load control on server side:
| Control userControl = LoadControl("usercontrols/result/resultgrid.ascx"); myDock.ContentContainer.Controls.Add(userControl); |
I have problem with client script on RadGrid. Some client ajax function are not ok (paging, page size, grouping, I see ajax load image only first time then only when refresh pages...).
I I load control as <uc1:ResultGrid ID="ResultGrid1" runat="server" /> all is OK.
But I need add control dynamically :(
Inside my usercontrol I have only RadGrid
| <div> |
| <telerik:RadAjaxManager ID="radAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="grdResult"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="grdResult" LoadingPanelID="radAjaxLoadingPanel1"/> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel1" runat="server" Transparency="5"> |
| </telerik:RadAjaxLoadingPanel> |
| </div> |
| <asp:Panel ID="panelView1" runat="server"> |
| <telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server"> |
| <telerik:RadGrid ID="grdResult" runat="server" AllowPaging="True" PageSize="15" |
| ShowGroupPanel="True" GridLines="None" onitemdatabound="grdResult_ItemDataBound" |
| AllowSorting="True" RegisterWithScriptManager="true" onneeddatasource="grdResult_NeedDataSource"> |
| <PagerStyle Mode="NumericPages"></PagerStyle> |
| <ClientSettings AllowDragToGroup="True"> |
| <DataBinding EnableCaching="true" /> |
| <Selecting AllowRowSelect="true" /> |
| <ClientEvents/> |
| </ClientSettings> |
| <GroupingSettings ShowUnGroupButton="true" /> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
| </asp:Panel> |
Thanks for answer.
Regards
Roman Krsko