This is a migrated thread and some comments may be shown as answers.

Problem after previous/next from browser

0 Answers 32 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 09 Aug 2010, 02:24 PM
Hi everybody !

I am confronted to a problem with previous/next buttons of my browser.

Indeed, when the user click on previous and then next button of the browser, Page_Load isn't called another time, so my treeview is broken.

When the user arrives on the page with the treeview, it isn't visible. The user needs to click on a button, then it makes a process in order to get values to put in the treeview.  During this process I make some tests like this one :
if (!treePanel.Visible)
                    return;

or

if (radTreeView.Nodes.Count == 0)
                        showCurrentPerim();

And I realized that when user clicks on next button, radTreeView.Nodes.Count > 0 so this makes my process wrong :(

In mozilla, the first time I click to display the treeview, nothing happens. Second time, it displays the treeview withou checkboxes and I need to refresh page to make it work again.

In IE7, the first time I click to display the treeview, nothing happens. Second time, it shows me a javascript error :
An error occured.
Do you want to debug ?
 
Ligne : 1223746
Error : 'Telerik.Web.UI.RadTreeView' is null or is not an object
I need to refresh.

I think that the best solution is to catch the event when user clicks on next browser button and then to refresh page. The problem is that it doesn't call Page_Load...

Please give me some solutions :)

Thanks

No answers yet. Maybe you can help?

Tags
TreeView
Asked by
Jean
Top achievements
Rank 1
Share this question
or