WebService Load with Server Side Refresh

4 posts, 0 answers
  1. David Beck
    David Beck avatar
    38 posts
    Member since:
    Jun 2010

    Posted 11 Mar 2011 Link to this post

    Hello,

    I have a Treeview that is loadonDemand via a webservice and works fine. I have PersistLoadOnDemandNodes Set to TRUE as i need to do some server side things when a user clicks the Node.

    All works fine separately but not together.

    If a user clicks the expand Icon the Nodes are loaded just fine.
    If the User click the Node my server side code renders fine.

    However is a user doesnt expand and just click the node the Server side code is execute and you see the Webservice load the Nodes and then they disappear.

    I think this has to do with the AjaxPanel its wrapped in from the Masterpage. Any ideas
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 12 Mar 2011 Link to this post

    Hi David,

    I tried the scenario that you describe in the following way:
    I expand the tree using client-side code (OnClientNodeclicking event) and at the same time use a server-side event (OnNodeClick). In the case when I use both events the page will inevitably postback and the expanded nodes will not be visible. However, when I use each of the events separately both work fine. To avoid this behaviour you can explicitly set the ExpandMode property of RadTreeNode either to "ClientSide" or to

    "ServerSideCallback" as described in this help article. Is this your scenario or am I missing something? In case this does not help, you can open a support ticket and send us a sample project demonstrating the issue.


    Greetings,
    Kate
    the Telerik team

    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. David Beck
    David Beck avatar
    38 posts
    Member since:
    Jun 2010

    Posted 14 Mar 2011 Link to this post

    I was hoping there was a way to keep the ExpandMode as a Webservice.

    Basically all i want is when the user clicks the NODE it to ALSO call the webservice to expand and build the child items.. is this possible?
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 17 Mar 2011 Link to this post

    Hi David Beck,

    Unfortunately you can not achive this from the server. I believe that the following help article will bring more light to the matter.

    Kind regards,
    Kate
    the Telerik team
Back to Top