Rank: Newbie Groups: Member
Joined: 9/18/2008 Posts: 9
|
I have four colorpicker control in one single screen, controlling the fore an back color of different elements of a menu control. All controls are inside an AJAX updatepanel and they all update the menu every time a user changes any value on any control. My problem is that, if the colorpicker control is set to autopostback=true, then the whole page is posted back, compromising the navegability of the application and its performance. Is there any way a colorpicker control can send the color information to the server and update the panel without the need to make a sync postback?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We have looked into this issue. The UpdatePanel rely on DOM parent-child relationship to determine whether a control can be a trigger. In most case, when a control is placed inside the UpdatePanel, the corresponding DHTML is also rendered inside the UpdatePanel. However this is not the case for ColorPicker. Since ColorPicker is a popup, it is actually rendered outside of the UpdatePanel.
An easy workaround for this is to explicitly set the ColorPicker as a trigger. To do this, you would edit the UpdatePanel's trigger property, then add ColorPicker controls as triggers there.
Thanks!
|