I have a TemplateDataField column that contains an asp button. When you sort on any other column the button column doesn't sort with the rest of the grid. On InitializeRow I set the onclick event to open up a new WebTab passing the values of three other columns for the given row. Anytime you sort the grid the buttons get out of sync and you no longer are viewing the detail for the correct row. Has anyone come up against this? I don't really care to sort on this column, but I expect the column to sort with the rest of the grid. Any help is much appreciated as I haven't found this specific situation in the forums.
Thanks,
Karen
I found a workaround. Rather than setting the onclick event server side, I'm now doing it client side. That way I no longer have to worry about the grid sorting. I grab the data I need from the selected row to open the tab.
Hello Karen,
Thank you for posting the solution on our forums.
This is correct that sorting and filtering for templated columns of Webdatagrid are not supported.
Prabha,
Thank you for responding. That's good to know.