Hi
Iam using clr 3.5 9.1 webdatagrid, I have bound the grid to a dataset and used templated columns.
One of the columns is the a checkbox and it has a server side click event.
The data grid is put on WebAsyncRefreshPanel.
Now when I click on the check box , a post back happens and for some reason the data grid looses all the data ....
any help is appreciated
thanks
I would not recommend using the WebDataGrid inside of the WARP panel, but use the UpdatePanel instead.
Make sure you either have EnableDataViewState turned on, or supply the grid with its data so that it can regenerate its view on post back.
-Taz.
Hi Taz,
Can you please provide an example ion code?
only the button is in a warp and the grid outside (but inside an updatepanel), when I first open the form I show the records in the sqldatosource with a WHERE clause to show only 1 record and make it quick, then once loaded the user can click on a button to say show all the records. I don't want to use builtin filters but the filters I would to set them up myself on the datasource.
Many thanks.
Actually I got it to work, problem was the viewstate as you suggested, both grid and button inside updatepanel. thanks.