Fill form after clicking Treeview

6 posts, 0 answers
  1. Bruno
    Bruno avatar
    20 posts
    Member since:
    Sep 2012

    Posted 03 Aug 2011 Link to this post

    Hi,

    How can I fill a web form with values from the database, based on the selected item of a RadTreeView (Telerik.Web.UI - ASP.NET AJAX ) ... must I do a Server Request of the page or can I do it with AJAX?

    Tks, rgds
    BSC 
  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 04 Aug 2011 Link to this post

    Hello Bruno,

     You can handle the NodeClick server event of RadTreeView and in the handler to query your data source and populate the Form. The clicked node you can get from the event arguments (e.Node).

    I hope this helps.

    Regards,
    Nikolay Tsenkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Bruno
    Bruno avatar
    10 posts
    Member since:
    Aug 2011

    Posted 05 Aug 2011 Link to this post

    Perfect! Thanks...

    Now I just need to keep the node selected because it seems that the Treeview is somehow rendered again, and the selection is lost (or not visible). Can you please help me?

  5. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 10 Aug 2011 Link to this post

    Hi Bruno,

    If it's the same page the TreeView should persist its state.
    Perhaps you put the TreeView on a MasterPage?
    If this is the case - I have wrote on this forum thread (check my last response) about persisting state in cookie.

    If this isn't the case - could you, please, post an example of that page.

    Regards,
    Nikolay Tsenkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. Bruno
    Bruno avatar
    10 posts
    Member since:
    Aug 2011

    Posted 10 Aug 2011 Link to this post

    Hi Nikolay,

    I was missing the HideSelection attribute set to false. And yes, I am using a master page.

    It's solved. 

    Regards
    Bruno
  7. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 11 Aug 2011 Link to this post

    Hello Bruno,

     I am glad that the problem is solved.

    Regards,
    Nikolay Tsenkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017