iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
my TreeView is loosing its viewstate although I have set it to:
- ViewStateStorage="Session"
- ViewStateItems="BehaviorAndCollection"
- <ClientSideEvents OnNodeSelect="tvMainTree_OnNodeSelect" />- <AutoPostBackSettings OnNodeSelectChanged="True" />
The client side event only executes a small javascript function that sets a value of a hidden field. Postback is done correctly and the event on the server is also fired correctly. but then it looses its state. The Tree is inside an AJAX Panel but this doesn't get updated at this stage. After the postback some other AJAX Panels are updated but not this one.
It's a LoadOnDemand Tree.
Any ideas?
Thank you.
Hello,
We do have some settings for our control when running inside Ajax Panel. I also tested with the settings you gave but not too sure if I am also facing the same thing. So, could you please guide me more detail about your issue such as in simple sample that replicates your issue?
Regards,Handy
Hi Handy,
which properties should I look at?
Find attached the code for the TreeView. The LoadOnDemand is done with the function InitializeChildNodes.
Thank you
Matthias,
In server side you can apply these following settings.
WebTreeView1.AspNetAjaxSettings.CreatedAtRuntime = true; WebTreeView1.AspNetAjaxSettings.UpdateControlScripts = true; WebTreeView1.AspNetAjaxSettings.UpdateControlStyles = true;
Also, you haven't let me know in detail about your issue. Which part that showed View state lost in WebTreeView?
I've tried the proposed settings but they are already set to True at that stage. I didn't set them explicitly again to True. Any way the viewstage of the treewas not kept.
I have attached a video of the behaviour. I will explain what we do:
1. We add a node when an item in the upper combo is selected. Nothing special here
2. When the plus in the tree is clicked the event InitializeChildNodes is used to pull data from the database
3. then when we click a node that will update an ajax panel.
the treeview itself is also in another ajax panel so there is no reason why it should be updated at all as it forces an update of the other ajax panel.
hope this helps and i'm looking forward to your solution.
Matthias
Thank you for your video. But unfortunately, i could not replicate your issue in here. Here is my attahched sample. Please let me know what is missing on my sample. You can also try to replicate the issue and send it back to me.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname