This is a migrated thread and some comments may be shown as answers.

Filtering Issue with disabled viewstate

2 Answers 132 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Vinod
Top achievements
Rank 1
Vinod asked on 16 Mar 2012, 08:21 PM
Hi All,

I am new to Telerik, please help me.
Rad filter doesn't work properly when I disable mastertableview's viewstate of the radgrid.But I need to create grid dynamically for diiferent profile in page so It is must to disable the mastertableview viewstate.

Please help me to resolve this issue. Thanks In advance!!

2 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 21 Mar 2012, 09:32 PM
Vinod:

If you need to turn off RadGrid viewstate, then, in order for advanced features such as sorting and filtering, you'll need to use Advanced data Binding. Take a look at the Grid/Google-Like Filtering online demo. It should provide you with the insights you'll need to accomplish your requirements.

Hope this helps!
0
Eyup
Telerik team
answered on 21 Mar 2012, 09:51 PM
Hello Vinod,

When ViewState is disabled,it is normal for  filtering not to behave correctly due to the fact that the grid data will reset on each postback.
Fortunately, here comes the RadControls NeedDataSource event. By using it, you can achieve the desired work condition of your filtering. Please take a look at these tutorials:
Advanced Data-binding
Advanced Data-binding demo

I hope this helps.

Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Filter
Asked by
Vinod
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or