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

Navigation Events

1 Answer 71 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Pat
Top achievements
Rank 1
Pat asked on 04 May 2011, 07:33 PM
I am using  RadGrid1_ItemCommand() to capture the buttons in my RadGrid and use it to trigger some additional functions. 

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
  {
      if (e.CommandName == "Select")
      {
          btn1AuseLink_Command(e);
      }
      else if (e.CommandName == "Print")
      {
          btn1AusePrint_Command(e);
      }
      else if (e.CommandName == "Page")
      {
          if (e.CommandArgument == "Prev")
          {
              LoadFreeTextBox1A();
          }
          else if (e.CommandArgument == "Next")
          {
              LoadFreeTextBox1A();
          }
          else if (e.CommandArgument == "First")
          {
              LoadFreeTextBox1A();
          }
          else if (e.CommandArgument == "Last")
          {
              LoadFreeTextBox1A();
          }
      }
      else if (e.CommandName == "ChangePageSize")
      {
          SpeechRecords.SessionHandler.DispRow = (((GridPageSizeChangedEventArgs)(e)).NewPageSize).ToString();
      }
  }

My problem is that the Functions are called before the Navigation buttons move the record.  Is there a function I can use to trigger a function after the navigation buttons have moved to the new record?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 06 May 2011, 01:18 PM
Hi Pat,

A suitable event for your goal is the NeedDataSource event which fires after the ItemCommand event for commands that invoke implicit rebind. Another possible option is the grid PreRender event.

Try it out and let me know if further questions arise.

All the best,
Iana
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Pat
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or