Open TreeNode navigate url in parent radpanel issue....

4 posts, 0 answers
  1. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 30 Jun 2011 Link to this post

    Hi All,
    i have a page in which i am using RadSplitter controls to design my page...
    it has two panes header and content panes....
    the content pane also has annother splitter which has left and right panes....
    the left and right panes has different conent url that will call different pages.

    in the left page i am using Rad treeview to get data from database....
    i need to load the corresponding navigate url of the node clicked in the right pane which is in the parent page.

    i tried to set the following code in the NodeClick event from code behined but nothing happene!!!

    e.Node.Target = "ContentPane";

    i don't know how to access the right RadPane of the parent page from the child left rad pane!!!

    i will be very gratefull for any help...

    Thanks
    Asa'ad

  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 30 Jun 2011 Link to this post

    Hi Asa'ad,

    You have to set the Target property when you create the Nodes. For example if you bind the Tree View to a dataSource, you can handle the NodeDataBound server event and set the Target property of the node there.

    It should be set for every node. Also, you shouldn't handle the NodeClick event if you want a navigation to happen in the iFrame of the content pane. With set Target and NavigateUrl it will automatically navigate in the iFrame.

    If you still are not able to resolve this, please, open a support ticket and send us a simple runnable sample project, in which we could implement it.


    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. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 03 Jul 2011 Link to this post

    Hi Telerik Admin,

    i tried what you said to set the e.Node.Target =  myContentPaneName or the iframe name and i tried to set the NavigateURL as the

    DataNavigateUrlField while binding the tree, the targeted page is opened in new window!!!
    and also when i tried to set the NavigateURL as an attribute for node instead of setting the DataNavigateUrlField but when i click the node nothing happened!!!

    I hope you notic that the iframe or the contentpane is resides in the parentpage that is not the same page of the treeview page!!!

    i don't know how to open a support ticket!!!

    thank you in advanced...

    Asa'ad

  4. Asa'ad
    Asa'ad avatar
    77 posts
    Member since:
    May 2011

    Posted 05 Jul 2011 Link to this post

    Hi all,

    i made a solution to my problem by changing my whole page structure...

    i put the treeview pane and the content pane in the same page...
    while binding the data to the treeview i didn't set the DataNavigateUrlField and instead; in treeview NodeDataBound event  i set an attribute called url to have the value of the navigate url from the database row.
    and when i click any node in the treeview i set the contentpane's ConentURL property to have this node attribute value...

    and now i have page works properly...

    Thanks
    Asa'ad
Back to Top