Hi,
I'm creating a grid dynammically on Page_Init event and using a placeholder declared in my html code. When the page load first time, the grid, the columns, the datasource are created perfectally. When I do a new ajax request (like perfoming a filter), the grid is created like expected on Page_Init (defining all structure like described in telerik online demos), but when the DetailTableDataBind event is called the grid comes with its structure changed. Example, first time the page inits I create a grid with the following structure (on Page_init event):
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
-------- DetailTable 1.2
-------- DetailTable 1.3
After performing a filter (the second load), the grid must be created like this:
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
I follow the code in debug and it is created ok. But when the code enter in DetailTableDataBind event, the grid changed its structure and back to the first structure:
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
-------- DetailTable 1.2
-------- DetailTable 1.3
The instance of the grid is the same (before and after the the DetailTableDataBind event). In don't know why it is ignoring my modifications on the grid structure at Page_Init event. Another problem is when calling the DetailTableDataBind event the Name property is empty even when I set its value (after the first page request).
Thanks.
I'm creating a grid dynammically on Page_Init event and using a placeholder declared in my html code. When the page load first time, the grid, the columns, the datasource are created perfectally. When I do a new ajax request (like perfoming a filter), the grid is created like expected on Page_Init (defining all structure like described in telerik online demos), but when the DetailTableDataBind event is called the grid comes with its structure changed. Example, first time the page inits I create a grid with the following structure (on Page_init event):
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
-------- DetailTable 1.2
-------- DetailTable 1.3
After performing a filter (the second load), the grid must be created like this:
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
I follow the code in debug and it is created ok. But when the code enter in DetailTableDataBind event, the grid changed its structure and back to the first structure:
- MasterTableView
---- DetailtTable 1
-------- DetailTable 1.1
-------- DetailTable 1.2
-------- DetailTable 1.3
The instance of the grid is the same (before and after the the DetailTableDataBind event). In don't know why it is ignoring my modifications on the grid structure at Page_Init event. Another problem is when calling the DetailTableDataBind event the Name property is empty even when I set its value (after the first page request).
Thanks.