Insert into first position

2 posts, 0 answers
  1. eboen
    eboen avatar
    9 posts
    Member since:
    Oct 2007

    Posted 29 Sep 2012 Link to this post

    Hi,

    I have a grid with a lot of data.  I notice that when I add a new row it load the grid and presents the editable section at the very end of the grid pagination.  This increases the amount of time required to add a record.  Whenever we are adding a record we are doing so on the first page so it is most desirable to have the insert happen in the 1st position instead of having to reload the grid and go to the end.  Hope that make sense and how can I accomplish this.

    Thanks

    Eric
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 30 Sep 2012 Link to this post

    Hello,

    Please try set below property in your RadGrid.
    // set insert item in First page
    RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnFirstPage;
    // set insert item in Current page
    RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnCurrentPage;
    // set insert item in Last page  // By default this property set in RadGrid
    RadGrid1.MasterTableView.InsertItemPageIndexAction =GridInsertItemPageIndexAction.ShowItemOnLastPage;


    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top