document.style.cursor = "hand". Essentially I would like the cursor to change when moused over the treeview. Any ideas?
4 Answers, 1 is accepted
You can set the CssClass property on each RadTreeNode and then set a style rule to change the cursor type.
The default class for the RadTreeNode is 'rtIn', so if you find the process of adding the CssClass property to each element too tedious, you can simply make a style rule for that class instead.
You should note that the 'hand' cursor is not supported in Firefox. Please check out this link for information on which browsers support which cursors.
I hope this was helpful. If you have any further questions, please let me know.
I am genarting RAD Tree View programatically.
dsCategoryCards = Database Call;
if (dsCategoryCards.Tables != null && dsCategoryCards.Tables.Rows.Count > 0)
tvCategories.MaxDataBindDepth = 3;
tvCategories.DataSource = dsCategoryCards.Tables;
- Node 1
- Node 2
I wish to have cursor=Hand for the last child of main parent node i.e. in above example Node 3 Can this be done?
You can do this pretty easily. If you know exactly what node you want to assign the style to, simply navigate to that node during the RadTreeView.OnPreRender event and set its CssClass property. Here is an example which sets the first parent node's last child to the to have a cursor mouse icon. Of course, you can modify this to suit your own needs.
Also, in the future I recommend starting a new thread when you have a new question (rather than putting your question at the end of a related thread). Usually new threads get attention quicker than old ones with a new response, so it might you receive an answer quicker.
I hope my answer helped you. Let me know if you have any further questions.
Thanks for the inputs.
My requirement is that i need cursor=hand for last node of each main node.
I wish to have hand curson on Node 13, Node 14 and Node 23, Node 24. Your code gives hand option on Node 14 only. I wish to have hand option on both.