Showing posts with label UpdatePanel. Show all posts
Showing posts with label UpdatePanel. Show all posts
Tuesday, 14 August 2012
ASPxPage Control Cannot unregister UpdatePanel - Post 2
Just had this issue again, this time without using tab pages.
it looks like there are issues redirecting from an ASPxGridView row command.
The only hack Devxpress can provide so far is re-registering the controls when they are unloaded. this obviously relies on microsoft never changing their code.
To sort, all update panels need to reregister when unloaded!
I added a method to my base page as follows:
then this can be called on ALL updatepanel unloads
Labels:
DevExpress,
UpdatePanel
Friday, 3 August 2012
ASPxPage Control Cannot unregister UpdatePanel
I recently had a problem when using the Devexpress Page control wiht update panels in the pages.
I have code to hide/show tabs based on certain settings, but the error:
Cannot unregister UpdatePanel with ID 'upLoginActivityGrid' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.
Parameter name: updatePanel
was shown by the .net runtime.
after a little investigation this can easily be solved by hiding the tabs client side rather than server side.
so changing the code from this:
to this:
solves the problem
Labels:
ASPxPageControl,
DevExpress,
UpdatePanel
Wednesday, 1 August 2012
ASPxButton in RoundPanel used as an Update Panel trigger
Controls in a Dev Express round panel are renamed due to being in an INamingContainer.
This means that the Ajax update panel cannot find the controls.
to work around this issue, triggers can be added when the update panel is initialised.
If this does not work then you can register the control for postback directly with the current Script Manager
Labels:
ASP,
ASPxButton,
DevExpress,
UpdatePanel
Tuesday, 13 March 2012
Error: Sys.ParameterCountException: Parameter count mismatch.
I had a gridview inside an update panel with a checkbox set to auto postback but every time it was clicked the parameter count mismatch error was being thrown by the ajax framework.
To get this working it was simply a case of setting the ScriptManager script mode to release so this error did not get thrown.
eg:
To get this working it was simply a case of setting the ScriptManager script mode to release so this error did not get thrown.
eg:
Labels:
ASP,
UpdatePanel
Thursday, 12 January 2012
Restoring focus to a control after an UpdatePanel Update
Using Ajax update panels can sometimes cause issues with restoring the focus of the control after the update panel updates.
This can be achieved with a little jQuery and hooking the begin and end request events of the PageRequestManager.
This can be achieved with a little jQuery and hooking the begin and end request events of the PageRequestManager.
Labels:
Ajax,
jQuery,
UpdatePanel
Friday, 2 December 2011
Showing a modal dialog while page is updating
If you want to show a modal dialog while an update panel is updating it can be achieved with the following code:
Markup:
Javascript
Markup:
Javascript
Labels:
ASP,
jQuery,
jQuery UI,
UpdatePanel
Subscribe to:
Posts (Atom)