Firstly I thought that I have a problem with RadTabStrip (this question) but after simplifying the question I found out that the problem is arising from RadGrid so here is the code to reproduce the problem :
Here is the web form code :
And here is the code behind :
When I sort the only column of the grid column it causes the grid to disappear ! Is there any scientific reason for this disappearing ?
What have I missed in my code ?
Thank you for your consideration.
Here is the web form code :
<body> <form id="form1" runat="server"> <div> <asp:Button runat="server" ID="b1" OnClick="b1_OnClick" Text="Create Grid" /> <asp:ScriptManager runat="server"> </asp:ScriptManager> <asp:PlaceHolder runat="server" ID="ph1"></asp:PlaceHolder> </div> </form></body>And here is the code behind :
protected void b1_OnClick(object sender, EventArgs e){ var grid = new RadGrid { AllowSorting = true, DataSource = new List<string> { "abc", "def", "ghi", "klm" } }; ph1.Controls.Add(grid);}When I sort the only column of the grid column it causes the grid to disappear ! Is there any scientific reason for this disappearing ?
What have I missed in my code ?
Thank you for your consideration.