Hello
I have a RadGrid that is bound on the server during the page load, then using page methods and Client Side data binding is updated based on various user actions. To complicate matters I needed to use Template Columns, so I perform actions on the DataBound event (client and server) that manages the appearance of each row in the Grid. I have run into a few roadblocks and am hoping that some can help point me in the right direction.
1. If on the initial load the RadGrad contains data, and I bind it on the client to an empty dataset, the NoRecordsTemplate does not show. Is there a way to get this to show in this scenario?
2. If on the initial page load the RadGrid does not contain data I get the NoRecordsTemplate as expected. However, if I then bind it on the client to a dataset that contains data, I get exceptions because the grid appears to be reusing the row that was created from the NoRecordsTemplate which does not have the same Item templates as a data row. So in this scenario is it possible to get the DataRow "Template" so to speak from the Grid object on the client so that I can build new data rows when rebinding on the client?
3. If the intial page load has fewer records the a following client side data bind, then when new rows are created for the additional data items, the rows do not have any controls rendered for cells that are associated with a template column. So is there a way to get at the item template so that I can build these controls on the client?
Thanks in advance for your help.
Patrick
I have a RadGrid that is bound on the server during the page load, then using page methods and Client Side data binding is updated based on various user actions. To complicate matters I needed to use Template Columns, so I perform actions on the DataBound event (client and server) that manages the appearance of each row in the Grid. I have run into a few roadblocks and am hoping that some can help point me in the right direction.
1. If on the initial load the RadGrad contains data, and I bind it on the client to an empty dataset, the NoRecordsTemplate does not show. Is there a way to get this to show in this scenario?
2. If on the initial page load the RadGrid does not contain data I get the NoRecordsTemplate as expected. However, if I then bind it on the client to a dataset that contains data, I get exceptions because the grid appears to be reusing the row that was created from the NoRecordsTemplate which does not have the same Item templates as a data row. So in this scenario is it possible to get the DataRow "Template" so to speak from the Grid object on the client so that I can build new data rows when rebinding on the client?
3. If the intial page load has fewer records the a following client side data bind, then when new rows are created for the additional data items, the rows do not have any controls rendered for cells that are associated with a template column. So is there a way to get at the item template so that I can build these controls on the client?
Thanks in advance for your help.
Patrick