Grid scroll on edit

6 posts, 0 answers
  1. Angie
    Angie avatar
    99 posts
    Member since:
    Jan 2008

    Posted 08 Feb 2012 Link to this post

    I am trying to set up my grid so that when a user clicks "Edit" on a row, the same position of the row is retained when the grid is reloaded in edit mode.

    I tried implementing the code from http://www.telerik.com/help/aspnet-ajax/grid-scroll-to-selected-item.html, but when I did so, my grid ended up only two rows high.

    I would like the height of the grid to be variable, based on however high the total number of rows are.  How can I keep my grid the entire height of the page and still be able to retain the scrolling position on edit?

    Thank you.


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Feb 2012 Link to this post

    Hello Angie,

    Take a look at the following code library.
    Setting 100% height and resize on container resize for grid with scrolling and static headers.

    -Shinu.

  3. Angie
    Angie avatar
    99 posts
    Member since:
    Jan 2008

    Posted 14 Feb 2012 Link to this post

    Thanks for the reply, Shinu, but I was unable to get the example to work for me.

    Generally, I am never sure what threads and examples to follow because I am never sure what information is out dated.

    Is there a relatively straightforward way to do this?

    Thanks.

  4. Pavlina
    Admin
    Pavlina avatar
    5287 posts
    Member since:
    Sep 2012

    Posted 14 Feb 2012 Link to this post

    Hello Angie,

    You can examine the grid_100_width_height.zip project from the code library pointed in the previous post and see if it helps to achieve your goal.

    Regards,
    Pavlina
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  5. Angie
    Angie avatar
    99 posts
    Member since:
    Jan 2008

    Posted 15 Feb 2012 Link to this post

    Thanks for the reply.  As I said, I could not get the example to work for me, both in viewing the attached example as a running project, and in trying to set up my grid code the same way.

    However, once I tried setting the div height to a specific height rather than to 100%, I was able to get the scrolling to work properly.  I think that is good enough for now.

    Thanks.

  6. Pavlina
    Admin
    Pavlina avatar
    5287 posts
    Member since:
    Sep 2012

    Posted 20 Feb 2012 Link to this post

    Hello,

    To be able to provide a better support for your case I will ask you to open a formal support ticket and send us a sample runnable project where the described problem can be observed. We will examine it locally and get back to you with a solution/fix.

    Looking forward for your reply.
     
    Regards,
    Pavlina
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

Back to Top