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

[Solved] grid paging and filter (checkbox) problem

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Evgeny
Top achievements
Rank 1
Evgeny asked on 02 Feb 2011, 04:19 PM
I have checkbox that I use for filter.
Everything works fine until I enable filter and go to page 2, 3 etc 

code:
<%: Html.CheckBox("StatusError", ViewData["StatusError"])%>
...
.Filterable(filtering => filtering.Filters(filters =>
{
 if ((bool?) ViewData["StatusError"] == true)
 {
         filters.Add(o => o.Status).IsEqualTo(Status.Error);
 }
}
...
after set filter url parametr:
?StatusError=true
and after I go to page 2 (using grid pager) url parametr:
?StatusError=true%2Cfalse&Grid-page=2
?StatusError=true,false&Grid-page=2

and i have error:

Server Error in '/' Application.

String was not recognized as a valid Boolean.

<%: Html.CheckBox("StatusError", ViewData["StatusError"]??false)%>
Where is the problem?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Feb 2011, 08:31 AM
Hello Evgeny,

 We are not sure if this problem is caused by Telerik Grid for ASP.NET MVC. Does everything work if you remove the grid from the view? Could you attach a sample project?

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Evgeny
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or