Hello,
I tried to create the columns on the radgrid dynamically on Page_load (I can't create them on page_init)
I followed the instructions on your site but I keep getting the following error after each postback once the grid is created:
[GridException: Cannot find a column with UniqueName 'alert_id']
Telerik.Web.UI.GridTableView.GetColumn(String columnUniqueName) +102
Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +5156
Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +109
Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
I added the bound-columns to the mastertable before I set their properties.
The grid is created once, but each postback throws this error.
The error occures even before "Page_Load" happens.
My main goal is to add a button to the header which will open a custom context menu (so I can't use auto-generate-columns) and still have all the functionalities of group-by/sort/reorder etc. also, the grid's columns should be created dynamically since the datasource is set during run-time and I don't know what are its columns at design time - The grid is inside a RadTabStrip and each tab-click sets a different data source into the grid
I tried to create the columns on the radgrid dynamically on Page_load (I can't create them on page_init)
I followed the instructions on your site but I keep getting the following error after each postback once the grid is created:
[GridException: Cannot find a column with UniqueName 'alert_id']
Telerik.Web.UI.GridTableView.GetColumn(String columnUniqueName) +102
Telerik.Web.UI.RadGrid.LoadClientState(Dictionary`2 clientState) +5156
Telerik.Web.UI.RadCompositeDataBoundControl.LoadPostData(String postDataKey, NameValueCollection postCollection) +109
Telerik.Web.UI.RadCompositeDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
I added the bound-columns to the mastertable before I set their properties.
The grid is created once, but each postback throws this error.
The error occures even before "Page_Load" happens.
My main goal is to add a button to the header which will open a custom context menu (so I can't use auto-generate-columns) and still have all the functionalities of group-by/sort/reorder etc. also, the grid's columns should be created dynamically since the datasource is set during run-time and I don't know what are its columns at design time - The grid is inside a RadTabStrip and each tab-click sets a different data source into the grid