Vote count:
0
I am have users that in different groups and each group has different user information. I am creating a page to manage user is a group using a Telerik RadGrid. Because of unknown nature of the grid columns I am creating the grid on completely on the server. You cannot have a grid in the aspx page and add columns in the server aspx.cs code, all kinds of things break like sorting and filters. A feature I need to output excel file with the grid's data. The problem, how do I reference the grid in server calls backs. If you look at Telerik Grid Export to Excel there is a button callback that changed grid values on the server and initiates the excel export in ImageButton_Click. In my case RadGrid1 is created in the server in Page_Init and added to an asp:PlaceHolder. The grid works fine.
Is there any way to reference a server added control back in the server aspx.cs code. Putting the control id will not compile.
ASP.NET Reference dynamically created control back in server aspx.cs server code
Aucun commentaire:
Enregistrer un commentaire