This is a migrated thread and some comments may be shown as answers.
Multiple Grids, Ajax Binding
3 Answers 68 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
lmf232s
Top achievements
Rank 1
lmf232s asked on 05 Nov 2010, 03:12 PM
I have 2 grids on 1 page that are both being bound via ajax. The issue im having is that only the first grid on the page actually makes a call to get its data.

I have moved the order of grids to verify that they both work so my question is, should I be able to have multiple grids on a page and use ajax to populate them?

If needed here are the 2 grids:
<%= Html.Telerik().Grid<BatchViewModel>()
    .Name("Grid")
    .DataBinding(dataBinding => dataBinding.Ajax()
        .Select("SelectFiltered", "Home")
    )
    .Columns(columns => { ....... })
    .Footer(false)
%>
 
<%= Html.Telerik().Grid<BatchViewModel>()
    .Name("Grid")
    .DataBinding(dataBinding => dataBinding.Ajax()
        .Select("SelectAll", "Home")
    )
    .Columns(columns => { ....... })
    .Footer(false)
%>

Any Ideas?

3 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 05 Nov 2010, 03:57 PM
Hello lmf232s,

 The grids need to have unique name. Now your both grids have the same name.

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
lmf232s
Top achievements
Rank 1
answered on 05 Nov 2010, 04:42 PM
Damn the obvious, lol!
0
scubakiz
Top achievements
Rank 1
answered on 17 Apr 2011, 04:12 PM
The evil "copy and paste" got me too.  :)

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