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

pageindexchanged event is not getting fired

10 Answers 870 Views
Grid
This is a migrated thread and some comments may be shown as answers.
john
Top achievements
Rank 1
john asked on 06 Feb 2009, 11:17 AM
Hi,
I have paging enabled in my radgrid and a pageindexchanged event defined.But on clicking on the next page button the pageindex doesn't change and the pageindexchaged event doesn't get fired.

10 Answers, 1 is accepted

Sort by
0
john
Top achievements
Rank 1
answered on 09 Feb 2009, 06:49 AM
Hi,
need help guys I'm on a deadline.



Regards,
John.
0
Shinu
Top achievements
Rank 2
answered on 09 Feb 2009, 12:00 PM
Hi John,

Have you enabled ViewState in Grid ? If not try Setting the EnableViewState property of the Grid to true and see whether the Paging is working well.

Shinu
0
john
Top achievements
Rank 1
answered on 10 Feb 2009, 12:33 PM
Hi,

Enableviewstate is set to true but still i have the same problem.
0
Quam
Top achievements
Rank 1
answered on 11 Jan 2013, 02:34 PM
Hi,
I have the same problem. Please help.
Thanks,
Quam
0
Kostadin
Telerik team
answered on 16 Jan 2013, 08:33 AM
Hello John and Quam,

I was not able to reproduce the issue. I prepared a small sample where you could see that everything work properly. Could you please give it a try and let me know how it differs from your real setup? Sending us your code declaration with the related code behind will help us to pinpoint the reason for that behavior.

Regards,
Kostadin
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Quam
Top achievements
Rank 1
answered on 16 Jan 2013, 02:55 PM
Hi Kostadin,
In my project, I create an new instance of event handler in Page_Load in order to make it work. Ex:

protected void Page_Load(object sender, EventArgs e)
        {          
           RadGrid1.PageIndexChanged += new GridPageChangedEventHandler(RadGrid1_PageIndexChanged);
        }

Thanks,
Quam
0
Lalu
Top achievements
Rank 1
answered on 20 Aug 2013, 06:57 AM
I have a problem while using Item command event and PageindexChanged event  together.Is there any way to use these two properties together.I am using Item command for filtering.
0
Princy
Top achievements
Rank 2
answered on 22 Aug 2013, 11:01 AM
Hi Lalu,

There is no issue as such when using Item command event and PageIndexChanged event  together.Then if you want to access the paging in ItemCommand,please try the following code snippet.

C#:
protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
   {
     if (e.CommandName == RadGrid.PageCommandName)
     {
      // Your Code
     }      
  }

Thanks,
Princy
0
Cece
Top achievements
Rank 1
answered on 30 Jul 2019, 05:55 PM

Hi,

Is there a way for my pageindexchanged to be called without relying on my submit button to get my data to show in my grid when i click on the next icon in my grid?

Thanks,

Cece

0
Eyup
Telerik team
answered on 02 Aug 2019, 03:31 PM
Hello Cece,

Generally, you should let the grid handle paging automatically:
https://www.telerik.com/support/kb/aspnet-ajax/grid/details/how-to-bind-radgrid-properly-on-server-side

The page events can be used in Custom Paging for instance:
https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/functionality/paging/custom-paging

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.

Tags
Grid
Asked by
john
Top achievements
Rank 1
Answers by
john
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Quam
Top achievements
Rank 1
Kostadin
Telerik team
Lalu
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Cece
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or