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.
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.
5 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 09 Feb 2012, 06:50 AM
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.
Take a look at the following code library.
Setting 100% height and resize on container resize for grid with scrolling and static headers.
-Shinu.
0
Angie
Top achievements
Rank 1
answered on 14 Feb 2012, 06:39 PM
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.
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.
0
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
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 >>
0
Angie
Top achievements
Rank 1
answered on 15 Feb 2012, 05:30 PM
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.
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.
0
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
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 >>