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

Grid shows new items on refresh, but not TreeView

4 Answers 84 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 09 Aug 2010, 10:10 PM
Hello,
I'm using FileExplorer with a custom DB content provider, and everything works beautifully with one small exception:  When I add directory items and do a refresh, the new child directories do not appear in the treeview, although they are correctly returned and displayed in the grid.  I have tried all manner of suggestions found in the forums here, but with no satisfaction.  The only thing that gets the new directories to display is a full refresh of the page containing the FileExplorer.  I am using version 2010.1.519.20 of the controls.  Any assistance would be appreciated.

--Derek Snyder

4 Answers, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 12 Aug 2010, 02:35 PM
Hello Derek,

I need to reproduce the problem on my side in order to provide a working solution. This is why, could you please open a new support ticket an send me a fully working project (including the database)? Once I have a better view over the implementation of the custom provider and the problem I can provide a solution.

Regards,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Derek
Top achievements
Rank 1
answered on 17 Aug 2010, 05:20 PM
Hi Fiko,
I've determined that the calls to ResolveDirectory and ResolveRootDirectoryAsTree are indeed getting called when I refresh the File Explorer, and child directories and files are getting populated correctly, the tree is just not adding new child nodes, or updating existing nodes to reflect changing attributes that are modified by the content provider.  I can't provide a DB sample as it contains confidential information. I think, however, that I could resolve my problem if there was a way to simply FORCE the tree to rebuild itself from root.  I have tried to use set_currentDirectory to set it to the root directory and then call refresh() on the fileexplorer, but this does not force the tree to rebuild itself.  Is there a method via Javascript to make the tree root clear child nodes and rebuild dynamically as nodes are expanded, as it behaves when the fileexplorer is first loaded?

Thanks,
Derek
0
Derek
Top achievements
Rank 1
answered on 18 Aug 2010, 11:19 PM
Hi Fiko,
The problem has been resolved.  I used Fiddler to take a look at all the ajax requests going back and forth, and noticed some 500 errors.  I have a dropdownlist on my page that contains javascript as values for some of the items, and this was prompting ASP.NET event validation to throw an error when those dropdownlist items were posted back in the viewstate.  Setting enableEventValidation="false" in the <Pages> element of web.config cleared up the error.  On a related note, I had followed some advice you gave in a thread (LINK) in order to add custom attributes to treeview nodes using a hidden <span> element.  I have a hunch that this was causing the server to reject requests due to event/request validation, due to the presence of HTML in the tree_ClientState portion of ajax requests.

Thanks,
Derek
0
Rohan
Top achievements
Rank 1
answered on 26 Oct 2012, 12:50 PM
Hi Fiko ,

I am also facing the same issues and provided solution of Derek is not working ..........
Tags
FileExplorer
Asked by
Derek
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Derek
Top achievements
Rank 1
Rohan
Top achievements
Rank 1
Share this question
or