Hi,
I resize my grid when the window load. It works well for every browser except Internet Explorer. The grid is always "null".
I tried what they say in this thread, but this is not working, so I guess I got something different.
Here is my code (jQuery):
What am I missing?
I don't want to use pageLoad because it fire before Pictures are load, that's why I'm using $(window).load().
Thanks
I resize my grid when the window load. It works well for every browser except Internet Explorer. The grid is always "null".
I tried what they say in this thread, but this is not working, so I guess I got something different.
Here is my code (jQuery):
$(window).load(function(){ Resize(); $(window).resize(function() { Resize(); });});function Resize() { var grid = $find("<%= mygrid.ClientID %>"); if (grid != null) { grid.get_element().style.height = $("#form1").height() + "px"; grid.repaint(); } }What am I missing?
I don't want to use pageLoad because it fire before Pictures are load, that's why I'm using $(window).load().
Thanks