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.
Hello Fred,
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;
Regards,
Lyuba
Developer Support Engineer
Infragistics
www.infragistics.com/support
Can you tell me how to change the height of the grid via javascript?