Any alternatives to resizing height of grid client size?

5 posts, 1 answers
  1. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 05 Jan 2012 Link to this post

    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?
  2. Galin
    Admin
    Galin avatar
    526 posts

    Posted 10 Jan 2012 Link to this post

    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
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 11 Jan 2012 Link to this post

    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?
  5. Answer
    Galin
    Admin
    Galin avatar
    526 posts

    Posted 16 Jan 2012 Link to this post

    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
    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
  6. msigman
    msigman avatar
    141 posts
    Member since:
    Apr 2008

    Posted 05 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017