See attached example.
This very basically mimics what we are doing on our page. The problem here is that, while the cell images (for the individual rows) are retained (due to the .databind / row initialize being fired each time on Page_Load), the Header image that was created when the template data column was created does not reappear after postback.
The header (image) template needs to be able to be created programmatically on Load as the information about that image, etc is stored in the DB. How can I get the template data field's header template to re-appear on postback?
Is there a way to programmatically add the template to the grid (like you can with dataproviders) and have the grid retain those on postback and just "reference" the template like you do with the providers?
Hi greghendricks,
Thank you for posting in the community.
From what I can understand you need to dynamically instantiate a template for your WebDataGrid. I suggest that you refer to the following resources for more information and instructions on using programmatically created templates in WebDataGrid:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.1/CLR4.0/html/WebDataGrid_Column_Templates.html
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1?page=WebDataGrid_Using_Item_Template.html
Note that when creating templates programmatically, they need to be reinstantiated on every postback (prefferably at the PreInit or Init stage).
Please let me know if this helps.