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

"Highlight rad tree node on node click"

3 Answers 165 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 11 May 2009, 02:41 PM
HI,

I am using Rad Tree view where i want to highlight the selected node.
Here is my code.On each rad tree node i have a navigation URL.

 <telerik:RadTreeView ID="TreeMail" runat="server" Skin="Vista" OnNodeClick="TreeMail_NodeClick"  CausesValidation="false" >
                                                <Nodes>
                                                    <telerik:RadTreeNode  Value="_New" AllowEdit="false"  NavigateUrl="../WebsiteManagement/AddRegistration.aspx" ImageUrl="../Images/new.gif"
                                                        Text="New Mail" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode  Value="_Private_Drafts" AllowEdit="false"  NavigateUrl="../MailFolders/Drafts.aspx" ImageUrl="../Images/Drafts.gif"
                                                        Text="Drafts" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_DeletedItems"  NavigateUrl="../MailFolders/DeletedItems.aspx" ImageUrl="../Images/Deleted Items.gif"
                                                        AllowEdit="false" Text="Deleted Items" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_Inbox" AllowEdit="false" Text="Inbox"  NavigateUrl="../MailFolders/Inbox.aspx" ImageUrl="../Images/Inbox.gif"
                                                        Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                    <telerik:RadTreeNode Value="_Private_SentItems" AllowEdit="false" Text="Sent Items" NavigateUrl="../MailFolders/SentItems.aspx"
                                                        ImageUrl="../Images/Sent Items.gif" Font-Bold="true">
                                                    </telerik:RadTreeNode>
                                                </Nodes>
                                            </telerik:RadTreeView>
How can i do this? Plz help as early as possible.
Thanks.

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 12 May 2009, 09:19 AM
Hello Rahul Khinvasara,

Please check this help topic:

How To > General > Site Navigation

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 12 May 2009, 09:46 AM
Hi,

Thanks a lot.It helped me a lot.
0
Aarsh
Top achievements
Rank 1
answered on 19 Sep 2012, 10:09 PM
Hi Veselin, it does work as expected, But I would like to request a couple more things to make it perfect.

I am using rad tabs to navigate back on forth


( Mine is more like a customer management portal where the user can log-in and can see her transcriptions, deliveries , search items, her product history. And I have a rad tree on right hand side for Transaction, Account Holders etc.
In plain English,
simply assume that under Transaction's radNode I am displaying last 5 invoices, customer details underneath Account Holders I am displaying users' details - this is for a community store where only members are allowed and one account may be shared by > 1 members )

Now, if I click on some invoice I the the invoice will open in a new radTab and I want to highlight the invoice the user has opened in a new tab to let her know which of those invoices she is on. I tried your solution and did the same on the parent page, I want to do it on the newly opened tab.

PS: I am using nested master pages.

My version : 2012.1.411.40


Thanks
Tags
TreeView
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Rahul Khinvasara
Top achievements
Rank 1
Aarsh
Top achievements
Rank 1
Share this question
or