Hi!
In my page I have a couple of comboboxes, a grid and a button. The structure of the grid is a three-level hierarchy: Properties -> Buildings -> Objects. The datasource of the grid is specified from choices the user has made from the comboboxes. Its not an option to load all items clientside because when an item is expanded i need to run some checks and maybe modify the items. When the button is clicked the LoadGrid method fires and loads the grid with the correct datasources, one datasource for every level in the hierarchy. Because of the grid loading in the buttonclick-event the datasource disappears for example when i try expanding an item.
How can I persist the datasource of the grid?
I have tried to load the grid in the Page_Init event, as in the example http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html, which works fine but then i will not be able to filter the datasource from the comboboxes.
The structure of the grid is created as in the example above with the only difference that the method fires in the ButtonClick event instead of the Page_Init event.
Regards, Johannes
In my page I have a couple of comboboxes, a grid and a button. The structure of the grid is a three-level hierarchy: Properties -> Buildings -> Objects. The datasource of the grid is specified from choices the user has made from the comboboxes. Its not an option to load all items clientside because when an item is expanded i need to run some checks and maybe modify the items. When the button is clicked the LoadGrid method fires and loads the grid with the correct datasources, one datasource for every level in the hierarchy. Because of the grid loading in the buttonclick-event the datasource disappears for example when i try expanding an item.
How can I persist the datasource of the grid?
I have tried to load the grid in the Page_Init event, as in the example http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html, which works fine but then i will not be able to filter the datasource from the comboboxes.
The structure of the grid is created as in the example above with the only difference that the method fires in the ButtonClick event instead of the Page_Init event.
Regards, Johannes