|
Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
I just downloaded EO controls and got a problem.
My page has Icon for partial postback and AJAX UpdatePanel with AJAX TreeView. After user selects some items and click on Icon, server side procedure modifies TreeView (delete unticked nodes) and calls Update method of UpadePanel and TreeView refreshes.
Now I replaced AJAX TreeView by EO TreeView, everything works as expected excluding refreshing page. What did I miss? Any advises will be appreciated.
Thanks Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Can you explain what exactly you mean by "everything works as expected excluding refreshing page"? Is that the TreeView not refreshing, or something else in your page not refreshing?
Thanks
|
|
Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
"everything works as expected " means that on a server I can check if node's checkbox ticked or not, delete unticked nodes and so on, but I don't know how to refresh TreeView on the page after partial postback. To do this for AJAX TreeView I called Update() method of AJAX UpdatePanel where TreeView is, but this way doesn't work for me for EO TreeView.
Thanks Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
We tested this and it worked fine for us. Can you provide a test page so that we can take a look? Please make sure the test page runs because we will need to run it at here so that we can see the problem.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
It's easy to say than to do. BTW I misslead you, sorry. UpdatePanel and TreeView are in CONTROL, not in PAGE. The page popup window with Control, which has Icon, UpdatePanel and TreeView in it. And my problem is inside that control, not page.
Sorry again. Thanks Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Michael, Whether it is inside a control or inside a page should not matter much. The situation is it works at here but does not work for you. So it got to have something to do with your project. That's why we need you to isolate the problem from the rest of your project first. See here for more information about this: http://www.essentialobjects.com/forum/postst3013_I-run-into-a-problem-can-I-send-over-my-code-so-that-you-can-take-a-look.aspxIf the problem requires multiple pages to demonstrate (for example, a control and a page), then enclose them in a project and you can send us the whole test project instead of a single test page. Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
Just did other test with my Control. Added AJAX TreeView into the same UpdatePanel, so it has two TreeViews (EO and AJAX) and on partial postback deleted 2 first nodes in every TreeView. Called Update method of UpdatePanel. AJAX TreeView updated on the page, but EO doesn't.
Thanks Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Michael,
We have nothing more to tell you except to ask you again to provide a test page. We don't look into claims about this works and that does not work, especially in this case we have already tested the feature and it works fine here. So please provide a test page, otherwise this issue is closed.
Thanks
|
|
Rank: Member Groups: Member
Joined: 10/28/2009 Posts: 15
|
Hi,
Finally I found the problem. I kept dynamically created TreeView in Session. Restoring it from it every postback and this approach leads to not refreshing page.
Thanks Best Regards Michael
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Glad that you found the problem. Generally you should not keep a control in the session because of serialization issues and the issue of updating/replicating data from the one in session and the one in page (You can not simply replace the one in your page with the one in the session). The TreeView automatically maintains states with through ViewState. So if ViewState is enabled, there is no need for you to do that. In case ViewState is not enabled, you can store a data structure in your session and rebuild the TreeView from that data every time.
Thanks
|
|