Welcome Guest Search | Active Topics | Sign In | Register

CallbackPanel Options
Marco
Posted: Tuesday, May 10, 2011 10:40:04 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Hi, i come from "populate data from DB" topic.

Adding CallbackPanel outside the treewiew cause the entire page refresh.
I isolate the problem, so if you want i can send you the page.
If i click on plus button, only the treeview panel is refreshing, while pressing on node all page is refreshing.
eo_support
Posted: Tuesday, May 10, 2011 10:43:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Please see your private message as to where to send the test code. We will look into it as soon as we receive it.

Thanks!
eo_support
Posted: Tuesday, May 10, 2011 11:02:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have received your email, but there was NO attachment. Please check whether it has been filtered out by your email program. If so you may want to rename the file extension and send it again.

Thanks
eo_support
Posted: Tuesday, May 10, 2011 11:55:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

We have received the new email with the attachment. The root of the problem is ChildrenAsTrigger should be ChildrenAsTriggers, we incorrectly wrote ChildrenAsTrigger in our original reply. Sorry about that!

To avoid further problems, you can also check with our reference (go to Start -> All Programs -> EO.Web Controls xx -> Documentation -> Server API Reference). That section is automatically generated from the source code, so it is always accurate.

Thanks

Marco
Posted: Wednesday, May 11, 2011 8:00:29 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Thanks, it works perfectly.
Just last questions:

I need to use a callback panel that refresh other controls outside the panel.
In the other topic you told me:

Code: HTML/ASPX
<eo:CallbackPanel runat="server" id="CallbackPanel1"
   Triggers="{ControlID:TreeView1;Parameter:}">
   .......
</eo:CallbackPanel>


In this case, TreeView1 has to stay inside another eo:callbackpanel? Can i, for example refresh this TreeView if it's in asp:updatepanel?
And how can i trigger more than one control?
I think next code is not correct:

Code: HTML/ASPX
<eo:CallbackPanel runat="server" id="CallbackPanel1"
   Triggers="{ControlID:TreeView1;Parameter:;ControlID:TreeView2;Parameter:}">
   .......
</eo:CallbackPanel>
eo_support
Posted: Wednesday, May 11, 2011 8:20:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Triggers define what triggers the update. The CallbackPanel's boundary defines what to be updated. These two usually have nothing to do with each other at all. So adding TreeView2 as a trigger does not work for your case.

In order to update multiple regions at the same time, you can use multiple CallbackPanels, but set their GroupName property to the same value. Once they are in the same "group", triggering one would trigger them all.

Thanks
Marco
Posted: Wednesday, May 11, 2011 8:25:34 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Ok, now everything is clear.

Thanks!
eo_support
Posted: Wednesday, May 11, 2011 9:04:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great! Glad to hear that everything is working for you!
Marco
Posted: Wednesday, May 11, 2011 9:13:12 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Just for know, what was the syntax for adding multiple triggers?
For example how to set that the update of a callbackpanel is triggered by 2 different controls without using groups?
eo_support
Posted: Wednesday, May 11, 2011 9:16:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
I believe your previous syntax is correct (the one that you have both TreeView1 and TreeView2 as a trigger). However if you use Visual Studio you should never worry about the syntax at all. Just edit the control's Triggers property in property window and it should automatically generate the correct syntax for you.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.