I've implemented the solution described here already: http://www.telerik.com/help/aspnet-ajax/grid-resizing-in-splitter.html.
However there are a number of drawbacks. Are there any other options for implementing a resizable RadGrid?
However there are a number of drawbacks. Are there any other options for implementing a resizable RadGrid?
4 Answers, 1 is accepted
0
Hello Matthew,
Could you please give us more details on what you are trying to achieve and also information about the drawbacks you had during the implementing of this solution? This will help us provide better support.
Additionally you can try the solution in this code library.
Looking forward to your reply.
All the best,
Galin
the Telerik team
Could you please give us more details on what you are trying to achieve and also information about the drawbacks you had during the implementing of this solution? This will help us provide better support.
Additionally you can try the solution in this code library.
Looking forward to your reply.
All the best,
Galin
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
0
msigman
Top achievements
Rank 2
answered on 11 Jan 2012, 05:55 PM
Hello,
What we would like is for the user to be able to resize the RadGrid's height by dragging the RadGrad to make it bigger/smaller. Right now we are using a RadSplitter to achieve this, however it has a number of drawbacks. Since there is other content on the page below the RadGrid, we had to wrap that in a RadPane of its own and use Javascript to maintain the size. This is cumbersome and sometimes has glitches.
There is also an issue that when the page is first rendered, before JavaScript executes, that the RadPane that contains the RadGrid only renders in a 400px x 400px div. It then uses JavaScript to resize itself to fit the RadGrid. This looks clunky to the user and is slow. I have not been able to find a way to hard code the starting size of the RadPane. Even by explicitly setting Height and Width properties on the RadPane, RadSplitter, and RadGrid it still does not respect the size.
Is there any other way to achieve client-side resizable RadGrid height?
What we would like is for the user to be able to resize the RadGrid's height by dragging the RadGrad to make it bigger/smaller. Right now we are using a RadSplitter to achieve this, however it has a number of drawbacks. Since there is other content on the page below the RadGrid, we had to wrap that in a RadPane of its own and use Javascript to maintain the size. This is cumbersome and sometimes has glitches.
There is also an issue that when the page is first rendered, before JavaScript executes, that the RadPane that contains the RadGrid only renders in a 400px x 400px div. It then uses JavaScript to resize itself to fit the RadGrid. This looks clunky to the user and is slow. I have not been able to find a way to hard code the starting size of the RadPane. Even by explicitly setting Height and Width properties on the RadPane, RadSplitter, and RadGrid it still does not respect the size.
Is there any other way to achieve client-side resizable RadGrid height?
0
Accepted
Hello Matthew,
To make the RadGrid occupy the full space of its container, you should to set Width="100%" and Height="100%". Also, in case you want to place it in the resizable container you have to repaint it after every resize.
Additionally, I have made a sample web page, where I used Resizable jQuery plugin. You can find it in the attached file. Please check it out and let me know how it goes.
I hope this helps.
All the best,
Galin
the Telerik team
To make the RadGrid occupy the full space of its container, you should to set Width="100%" and Height="100%". Also, in case you want to place it in the resizable container you have to repaint it after every resize.
Additionally, I have made a sample web page, where I used Resizable jQuery plugin. You can find it in the attached file. Please check it out and let me know how it goes.
I hope this helps.
All the best,
Galin
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
0
msigman
Top achievements
Rank 2
answered on 05 Apr 2012, 09:47 PM
Does this work for the height of the grid though? I see it works for the width, but the height appears fixed.
Admittedly I wasn't able to get your example working, but I did duplicate the code.
Admittedly I wasn't able to get your example working, but I did duplicate the code.