pageindexchanged event is not getting fired

11 posts, 0 answers
  1. john
    john avatar
    21 posts
    Member since:
    Nov 2008

    Posted 06 Feb 2009 Link to this post

    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.
  2. john
    john avatar
    21 posts
    Member since:
    Nov 2008

    Posted 09 Feb 2009 Link to this post

    Hi,
    need help guys I'm on a deadline.



    Regards,
    John.
  3. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Feb 2009 Link to this post

    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
  4. john
    john avatar
    21 posts
    Member since:
    Nov 2008

    Posted 10 Feb 2009 Link to this post

    Hi,

    Enableviewstate is set to true but still i have the same problem.
  5. Quam
    Quam avatar
    3 posts
    Member since:
    Oct 2012

    Posted 11 Jan 2013 Link to this post

    Hi,
    I have the same problem. Please help.
    Thanks,
    Quam
  6. Kostadin
    Admin
    Kostadin avatar
    1733 posts

    Posted 16 Jan 2013 Link to this post

    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.
  7. Quam
    Quam avatar
    3 posts
    Member since:
    Oct 2012

    Posted 16 Jan 2013 Link to this post

    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
  8. Lalu
    Lalu avatar
    9 posts
    Member since:
    Jun 2012

    Posted 20 Aug 2013 Link to this post

    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.
  9. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Aug 2013 Link to this post

    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
  10. Cece
    Cece avatar
    2 posts
    Member since:
    Jun 2019

    Posted 30 Jul Link to this post

    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

  11. Eyup
    Admin
    Eyup avatar
    3857 posts

    Posted 02 Aug Link to this post

    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.

Back to Top