I have read quite a few posts on this topic, but just can't seem to get this to work. I found this somewhere, but it seems to tell me what the max width I can possibly have every time:If Windows.Forms.Screen.PrimaryScreen.Bounds.Width = 1680 ThengridMembers.Height = 500ElseIf Windows.Forms.Screen.PrimaryScreen.Bounds.Width = 1920 ThengridMembers.Height = 850End IfWhen I step through the code, it says the Windows.Forms.Screen.PrimaryScreen.Bounds.Width is 1920 every time even if I change the resolution before running the code.
Thanks. This definately got me started. I ended up using grid.resize() and it is working perfectly now. THank you for your help.
Hello Fred,
You can set the height of the grid using javascript like this:
grid.get_element().style.height = "850px";
Hope this helps.
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Can you tell me how to change the height of the grid via javascript?
I don’t think you would be able to take this information on the server. You can take the screensize on the client, using javascript, and pass it to the server via, for example, hidden field:
var width = screen.width;var height = screen.height;