Forum  Commercial Foru...  Commercial Foru...  Updating whole form instead of panel
Previous Previous
 
Next Next
New Post 7/27/2011 2:46 PM
Unresolved
  asowles
85 posts
www.lathem.com
No Ranking


Updating whole form instead of panel 
Modified By asowles  on 7/27/2011 5:47:25 PM)

We have a form with two panels on it.  In the first panel, we have a custom label control that displays the time.  The initial time for this control is set using an InvokeMethod so once the page loads, the control starts after given a "seed time" and then keeps time on it's own.  This means that the server is unaware of the control's value.  The seed value is established in the form load of our main form.

We use the second panel to load user controls that provide different functions for the user.  Each user control is "replaced" in the panel with the next control in the flow by calling a method on the main form to load the next control (this is for a mobile application).  This method "removes" the calling control and replaces it with the next one in the sequence.

The problem that we have is that when we load a new user control in the second panel, the entire main form is being redrawn, including the first panel.  Since the server does not know about the value in the custom label, it gets reset to the original value.

To work around this problem, we call the javascript via the InvokeMethod each time we load a user control in the main form, but this causes the value in the custom label to disappear for a second or two, then reappear. 

Is there a way to prevent the whole form from redrawing and resetting our custom label?  I thought only the "changed" section of the screen would update (ie. the loading of the user control), but it appears that the entire form is refreshing. 

Thanks,

Allen

 

 
New Post 7/27/2011 5:09 PM
  palli
14416 posts
1st Level Poster




Re: Updating whole form instead of panel 

Hi Allen,

I am not convinced that I understand all the details, and then the customization of the Label might possibly be an issue also, but I'm sure there is a way to make this work.

To speed things up, I think it's the quickest and best way for everyone if you can assemble a simple reproducing application that includes your custom label and a few (two or more) such "paged" controls, clean the applicaton, zip it and then email it to the support email address (see my signature). Please remember to include the full Http reference to this thread and also please post here when you have sent the email.

I hate guessing when doing support, and that's the reason for the sample application request. The closest I would get in my gessing though is that due to the (guessed) fact that you have those "paged" controls docked to fill within the panel, they will trigger recursive layouting effects that would escalate all the way up to the form, and then the whole form would be redrawn. If this is the case, you may want to experiment with a panel customization I made a while ago and you can find here. This is what I would personally look into first, should I receive your sample application.

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Updating whole form instead of panel
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS