Grid shows new items on refresh, but not TreeView

5 posts, 0 answers
  1. Derek
    Derek avatar
    3 posts
    Member since:
    Aug 2010

    Posted 09 Aug 2010 Link to this post

    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
  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 12 Aug 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Derek
    Derek avatar
    3 posts
    Member since:
    Aug 2010

    Posted 17 Aug 2010 Link to this post

    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
  5. Derek
    Derek avatar
    3 posts
    Member since:
    Aug 2010

    Posted 18 Aug 2010 Link to this post

    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
  6. Rohan
    Rohan avatar
    94 posts
    Member since:
    Jul 2012

    Posted 26 Oct 2012 Link to this post

    Hi Fiko ,

    I am also facing the same issues and provided solution of Derek is not working ..........
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017