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

[Solved] Custom Data Binding + Filter Issue

3 Answers 143 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.
Binu
Top achievements
Rank 1
Binu asked on 18 Oct 2010, 09:54 PM
My grid is within a tab strip control,
- I have custom data binding, Filterable is enabled. Now the issue is when it filters GridCommand is  not populated with the filter parameters passed in (same is the case when it sorts). I have followed documentation and some threads, and I believe I have all things setup as required.
Only one thing I notice from the sample project I downloaded from another similar thread, is this:
(from firebug output)
... ajax:{"selectUrl":"/Modeling/ListTabGridBinding?ListGrid-size=0 } ... (partial view of that JSON)
where as in sample application, it says
ajax:{"selectUrl":"/Home/_Index?Grid-size=10"}}

This definitely means that there is something wrong? But what ? 

Any help is appreciated.

Thanks,
-Binu

[Edited]
When i turned on the Paging, gridsize appeared in selectUrl, gridCommand gets populated with paging params, but still no filter or sort params !!!


3 Answers, 1 is accepted

Sort by
0
Binu
Top achievements
Rank 1
answered on 20 Oct 2010, 04:12 AM
How does a querystring in the request (or route values) map to gridcommand when you do custom data binding? I think my probelm described above has something to do with the fact that I am using Structuremap IoC container and it might be messing with my route values...(not sure, just a thought).

Anyone with similar issues? Anyone want to take a creative stab at this problem ? (Telerik gurus..I am calling out to you for help)
;)

Thanks,
Binu
0
Atanas Korchev
Telerik team
answered on 20 Oct 2010, 07:03 AM
Hi Binu,

 I am not sure what the problem is based on the description. I suggest you attach a sample project.

Kind 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
0
Binu
Top achievements
Rank 1
answered on 20 Oct 2010, 07:17 PM
I found my issue, it has to do with the parameter name I was using for the GridCommand, 
By default it uses command, if you use any other variable name, you need to specify it while you setup your GridAction attribute.
Ex:
[GridAction(EnableCustomBinding = true,ActionParameterName="gridCommand")]


Thanks!
Tags
Grid
Asked by
Binu
Top achievements
Rank 1
Answers by
Binu
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or