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

[Solved] Grid not loading when calling ViewResult that is not index

0 Answers 96 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.
Mark Shortt
Top achievements
Rank 1
Mark Shortt asked on 30 May 2011, 05:25 PM
Hi

I am using the mvc grid on a number of different views (e.g. View1, View2, View3 etc.). These views are called from the one controller AdminController

If I call the initial Index ViewResult and then navigate to the relevant ViewResult (eg. Admin/View1, Admin/View2 etc.) the grids populate correctly.

My problem is is I navigate directly to the view, such as Admin/View1, the grid does not populate and I have to navigate to Admin and then back to Admin/View1 to get the grid to populate.

For all the grids I'm using ajax binding on the grids such as :

.DataBinding(dataBinding => dataBinding.Ajax().Select("View1Binding", "Admin"))

Can you tell me how to populate the grids when called directily such as Admin/View1 without having to do to Admin first?

Thanks

Mark
Tags
Grid
Asked by
Mark Shortt
Top achievements
Rank 1
Share this question
or