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

[Solved] Ajax binding with IEnumerable

1 Answer 178 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.
Qwizdom
Top achievements
Rank 1
Qwizdom asked on 02 Nov 2010, 11:18 PM
I have a model which has parameters that I need passed on the query string when I click sort, filter, etc on a grid.  Normally when I put something like this on the query string with mvc it can take a property such as:

class Test
{
public List<int> Ids {get;set;}
}

and when I call something like Url.Action("route", "controller", Model) where model is of type Test, it generates:

/controller/route?Ids=1&Ids=2&Ids....

When I try to use ajax binding: 

.DataBinding(databinding => databinding.Ajax().Select("Grid","Controller", Model))

it generates

Ids=System.Collections.Generic.List[int]

or something like that for the query string on my route I bound to the Ajax Select.
Am I doing something incorrect? Is this a bug? Do I need to explain myself better?

Thanks

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 03 Nov 2010, 08:25 AM
Hi Qwizdom,

 I tried this with Url.Action and Html.ActionLink and they both behave as the Grid. I am attaching my test 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
Qwizdom
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or