Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Dynamically Set Grid Height
posted

I have a couple grids one for phone numbers and another for addresses.  With the default height of the grids, I'm seeing a little bit too much white space and my customer isn't thrilled.  Can anyone tell me how to dynamically set the height of the grids to be to fit of the number of rows?

Much Appreciated!

Parents
  • 28464
    posted

    Hello, 

    Yes, the problem with fitting the grid on the screen is that the grid does not know at runtime (at the server) the settings in the browser, hence cannot do that automatically. You can however do this on the client-side with javascript.

    Please, take a look at the following forum thread

    Change height of ultrawebgrid to the height of the browser 

    http://forums.infragistics.com/forums/p/9961/38411.aspx#38411 

    for details on how this can be implemented (it's a little bit long thread and we are having progress there in the last few posts, but still it's a good learning resource).

    Hope this helps. 

Reply Children
No Data