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

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

3 Answers 136 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Asa'ad
Top achievements
Rank 1
Asa'ad asked on 30 Jun 2011, 12:33 PM

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

3 Answers, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 30 Jun 2011, 03:06 PM
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.

0
Asa'ad
Top achievements
Rank 1
answered on 03 Jul 2011, 08:32 AM
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

0
Asa'ad
Top achievements
Rank 1
answered on 05 Jul 2011, 07:15 AM
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
Tags
TreeView
Asked by
Asa'ad
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Asa'ad
Top achievements
Rank 1
Share this question
or