If a user has resized a control, is there a way to make the control stay that size after a postback?
Hello Peggy,Please take a look at the created from me sample. Sample contains WDG and two buttons under it. The first button is an HTML one and resizes the grid saving his width/height into two hidden fields. Second button is making postback and then in code behind is taken values for width and height from those hidden fields and set to the WDG.
Sorry about posting twice. My browser didn't indicate that it had been posted...
All I really want to do is persist the height and width on a webdatagrid. I'm not sure how to do that. Do you have a simple example (in VB) that shows how to do that in the postback?
All I really want to do is persist the height and width of a webdatagrid. I'm not sure how to do that. Do you have a simple example (in VB) that shows how to do that in the postback?
Hello Peggy
Please take a look at our online documentation regarding Persistance framework here - http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=PersistenceFramework_Landing_Page.html Another helpful place is our online sample browser - http://samples.infragistics.com/aspnet/ComponentOverview.aspx?cn=persistence-framework Where can be found 10 samples. Another option if you just want to persist X and Y of that control is to use hidden input elements and to save in their value the X and the Y. Every time in onLoad page to check if (isPostback) and to set the width and height of the control.