8 Answers, 1 is accepted
I suppose you are using Simple databinding. In order to achieve this, use advanced databinding techniques using NeedDataSource event. This event fires whenever a paging operation occurs. Check the following help documentation which explains more about this.
Advanced Data-binding (using NeedDataSource event).
This is my code and the page did not get refresh when i did a page navigation. thanks
Protected Sub RadGrid1_NeedDataSource(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource
RadGrid1.DataSource = Session("sessiondataset")
Sorry, i need to rephase my intention.
I have got it wrong when i used the word refresh a page, instead it should be forcing a postback of a radgrid when paging.
Do you mean that you want to make a postback instead of AJAX request when paging? If so, you could wire the client OnRequestStart event of the RadAjaxManager/Panel and cancel the request on certain condition. You could recognize the Page command in the client OnCommand event of RadGrid and raise a flag to use for checking in the OnRequestStart event handler.
the Telerik team
Yes i want the a postback when users do page navigation
I have gone through some of the forums and have taken this code and i am still wonder how should i go about it.
function RequestStart(sender, eventArgs)
var eventTarget = eventArgs.get_eventTarget();
if (eventTarget.indexOf("Button1") != -1)
function RaiseCommand(sender, args)
if (args.get_commandName() == 'Page')
What should i replace with on the eventTarget.indexOf("Button1") != -1 since i am not using a button and how do i go about "You could recognize the Page command in the client OnCommand event of RadGrid and raise a flag to use for checking in the OnRequestStart event handler" Thanks and sorry for any inconvenience cause.
Here is sample code that you could try. The OnCommand event checks whether the command is Page and raises a flag indicating to turn off AJAX for the current request which is done in OnRequestStart handler:
the Telerik team
The Telerik ASP.NET AJAX controls are not designed and intended for use in MVC environment. Please check the following article on the matter:
We recommend using the UI for ASP.NET MVC, the Telerik product built from the ground up to support the principles of MVC development in your MVC projects. The MVC suite is pretty mature and offers a similar amount of ASP.NET MVC components (100+).
You can play with the MVC Grid demos at https://demos.telerik.com/aspnet-mvc/grid.
On a side note, version 2013.2.611 of Telerik.Web.UI.dll is pretty old and does not support the latest browsers.
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.