Resizing GridView in Dynamically created Toolwindow

4 posts, 0 answers
  1. Boneshaker
    Boneshaker avatar
    5 posts
    Member since:
    Mar 2015

    Posted 05 May 2015 Link to this post

    I have a raddock where I dynamically create a new toolwindow which has a dynamically created gridview on it.  When the user resizes the toolwindow I would like to gridview to automatically resize to the new toolwindow size.  I cannot seem to figure out how to generate a dynamic resize event for the toolwindow.

     

    Thanks in advance...

  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 08 May 2015 Link to this post

    Hi Corey,

    Thank you for writing.

    The easiest way will be to either Dock or Anchor the grid hosted in the ToolWindow, and it will get automatically resized.

    Let me know how this works for you.

    Regards,
    Stefan
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. Boneshaker
    Boneshaker avatar
    5 posts
    Member since:
    Mar 2015

    Posted 08 May 2015 in reply to Stefan Link to this post

    Thank you for your reply....

    The docked gridview ONLY resizes horizontally, not vertically when the parent form resizes.  Also, if the user manually resizes the toolwindow once again, only horizontal refresh of gridview occurs.  I need to know how to trap the resize event of a toolwindow that was created at runtime.

     

    Thanks!

  4. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 11 May 2015 Link to this post

    Hi Corey,

    The behavior on my end differs from what you describe. The docked grid resizes in all directions as expected. Attached you can find a video how it works.

    As to an event, perhaps you can use the SizeChanged event of ToolWindow to capture changes in the size.

    I hope this helps.

    Regards,
    Stefan
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top