|
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.
|
|
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!
|
|
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
|
|
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
|
|
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>
|
|
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
|
|
Rank: Member Groups: Member
Joined: 4/15/2011 Posts: 19
|
Ok, now everything is clear.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great! Glad to hear that everything is working for you!
|
|
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?
|
|
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
|
|