Hi
I have an issue when using radgrid inside radajaxpanel.
Radgrid is contained in .ascx control, and uses an arraylist as datasource for test purposes.
Initially, grid renders just fine, but when trying to use sorting for example, it dissapears and is not rendered any more.
Also, when I place grid outside of radajaxpanel, it works just fine.
Here is my aspx code (CTRL:UserList contains the grid)
Aspx for the grid
And code-behind
What is wrong ? Thanks everybody !
I have an issue when using radgrid inside radajaxpanel.
Radgrid is contained in .ascx control, and uses an arraylist as datasource for test purposes.
Initially, grid renders just fine, but when trying to use sorting for example, it dissapears and is not rendered any more.
Also, when I place grid outside of radajaxpanel, it works just fine.
Here is my aspx code (CTRL:UserList contains the grid)
<telerik:RadAjaxLoadingPanel ID="uxRadAjaxLoadingPanel" Skin="Transparent" InitialDelayTime="200" MinDisplayTime="250" runat="server" /><telerik:RadAjaxPanel Height="100" ID="uxRadAjaxPanel_Content" EnableAJAX="true" LoadingPanelID="uxRadAjaxLoadingPanel" runat="server"><CTRL:UserList ID="UserList1" runat="server" /></telerik:RadAjaxPanel>Aspx for the grid
<telerik:RadGrid ID="uxRadGrid" Skin="Transparent" AutoGenerateColumns="false" ShowHeader="true" Width="100%"OnNeedDataSource="uxRadGrid_NeedDataSource"PagerStyle-AlwaysVisible="true" PagerStyle-Mode="NumericPages" PagerStyle-Position="Bottom" AllowPaging="true" AllowSorting="true"runat="server"> <MasterTableView ClientDataKeyNames="user_id" TableLayout="Auto" GridLines="None"> <Columns> <telerik:GridBoundColumn DataField="user_id" HeaderText="Id" /> <telerik:GridBoundColumn DataField="user_status" HeaderText="Etat" /> <telerik:GridBoundColumn DataField="user_role" HeaderText="Rôle" /> <telerik:GridBoundColumn DataField="user_firstname" HeaderText="Prénom" /> <telerik:GridBoundColumn DataField="user_lastname" HeaderText="Nom" /> <telerik:GridBoundColumn DataField="user_email" HeaderText="Courriel" /> </Columns> </MasterTableView> <ClientSettings> <ClientEvents OnRowClick="uxRadGrid_RowClick" /> </ClientSettings></telerik:RadGrid>And code-behind
protected void uxRadGrid_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ ArrayList list = new ArrayList(); list.Add(new TestObject("tYYpcH", "Activé", "Administrateur", "Vedran", "Vlajki", "vedran.vlajki@hotesline.ch")); list.Add(new TestObject("zzz333", "Activé", "Administrateur", "Catherine", "Schneider", "catherine@mail.com")); uxRadGrid.DataSource = list;}What is wrong ? Thanks everybody !