Hi,
I have following code in my _DonationList.cshtml file and paging is not working here in this code please let me know where I am going wrong.
In fact When run this code it shows me Grid, but when i click on pages, it show me following URL in the Page
http://localhost:61122/Grid/FirstLook?Grid-page=2
It shouldn't do this but it should show me like
http://localhost:61122/Donation?Grid-page=2
Please Let me know is there any Problem in my code or there is any other problem.
@(Html.Telerik().Grid(Model)
.Name("Grid")
.DataKeys(keys => keys.Add(c => c.DonationID))
.Columns(columns =>
{
columns.Bound(o => o.ReceivedDate).Format("{0:MM/dd/yyyy}").Width(100);
columns.Bound(o => o.DepositDate).Format("{0:MM/dd/yyyy}").Width(90);
columns.Bound(o => o.ContactName).Width(160);
columns.Bound(o => o.DonationAmount).Width(115);
columns.Bound(o => o.DonationType).Width(100);
columns.Bound(o => o.ProjectName).Width(125);
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.Text);
commands.Delete().ButtonType(GridButtonType.Text);
}).Width(200);
})
.DataBinding(dataBinding =>
{
dataBinding.Server().Select("Edit", "Donation", new { ajax = ViewData["ajax"] });
dataBinding.Ajax().Select("Delete", "Donation").Enabled(true)
.Update("Edit", "Grid", new { mode = GridEditMode.InLine,type = GridButtonType.Text })
.Delete("Delete", "Donation", new { mode = GridEditMode.InLine, type = GridButtonType.Text });
})
.Scrollable(scrolling => scrolling.Enabled(true))
.Sortable(sorting => sorting.Enabled(true))
.Pageable(paging => paging.Enabled(true))
.Editable(editing => editing.Mode(GridEditMode.InLine))
.Footer(true)
)
Thank you