Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

RadGrid Excel-Like Filtering

$
0
0

Good day,

I was trying to use the FilterType="HeaderContext"

It works fine but whenever I have a GridDateTimeColumn I get an error just before the check list items requested event fires.

 

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request

My column is like this:

 

<telerik:GridDateTimeColumnDataField="FechaSolicitud"
                                                    DataFormatString="{0:yyyy-MM-dd hh:mm:ss tt}"
                                                    DataType="System.DateTime"
                                                    EditDataFormatString="{0:yyyy-MM-dd}"
                                                    FilterControlAltText="Filter FechaSolicitud column"
                                                    HeaderStyle-Width="200px"
                                                    HeaderText="Fecha de solicitud"
                                                    SortExpression="FechaSolicitud"
                                                    ReadOnly="true"
                                                    UniqueName="FechaSolicitud">
                            <HeaderStyleWidth="200px"/>
                        </telerik:GridDateTimeColumn>

If I comment out that column, everything works fine, but I need that column, I think I can change all the columns to a bound column and use an edit item template to get what I need, but there are lots of columns and grids in different pages where I would like to use this kind of filters, is it possible to make it work without having to change a lot in each grid??

 

thanks

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>