If a user has resized a control, is there a way to make the control stay that size after a postback?
I got it to work. Here is my handler function:
function myhandler() { var grid = $find('<%=WebDataGrid1.ClientID%>'); document.getElementById('<%=gHeight.ClientID%>').value = grid.get_element().style.height; document.getElementById('<%=gWidth.ClientID%>').value = grid.get_element().style.width; }
Is there a trick to make this work when using a master page? I've modified your sample to use a master page and it has very strange side effects.
Hello Peggy,
Please take a look at the attached from me sample which contains WDG and resizer and keeps the WDG size after postback. The second page is in VB. Please in future responses to us try to explain your scenario in details in order to receive helpful answers fast
Also, I'm a VB programmer. Is it possible to get sample code in VB?
Thanks for the sample. That's sort of what I had but I want to attach the handler to the onclientresize event of the webresizingextender. I can't seem to get that to work right. how do I attach the handler to that event?