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

tree view control not keeping style.

1 Answer 25 Views
Dock
This is a migrated thread and some comments may be shown as answers.
anand
Top achievements
Rank 1
anand asked on 29 Dec 2008, 10:15 AM
hi,

I am using telerik treeview control, on each node i am adding context menu. on one of the menu i am opening rad window.
when i open window, node of treeview not keeping  font in bold they  taking normal font.  i am not getting what is happning.

wating for your replay
anand gole

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 30 Dec 2008, 09:58 AM
Hello Anand,

I suggest you subscribe to OnClientContextMenuItemClicking event and in its handler est selected state of the clicked node like this:

<script type="text/javascript">  
    function contextMenuItemClicking(sender, args)  
    {  
        args.get_node().set_selected(true);  
    }  
</script> 

Hope this helps.

Best regards,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
anand
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or