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

Grid Ajax on Action call sets to first page

0 Answers 14 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yeou
Top achievements
Rank 1
Yeou asked on 08 Oct 2012, 06:57 AM

Hi,

I am trying to implement Grid Ajax but when I click on page 2 the grid is set to 1st page.

following is the view:

@(Html.Kendo().Grid(Model).Name("baseUserInfoGrid")
.Columns(columns => {
columns.Bound(m => m.User_Id);
columns.Bound(m => m.Name);
columns.Bound(m => m.Email);
}).Pageable().Groupable().Sortable()
.DataSource(a => {
a.Server().Read("Index", "Admin");
a.Ajax().Read("_Index", "Admin"); })
)

and Actions: 

public ActionResult Index()
{
return View(GetBaseUserInfo());
}

[GridAction]
public ActionResult _Index()
{
return View(GetBaseUserInfo());
}

am I missing something?

Regards,

Yeou

No answers yet. Maybe you can help?

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