or
| telerik:RadTreeView Skin="Web20" runat="server" ID="radTVBranches" CheckBoxes="true" |
| OnClientNodeChecked="AfterCheck"> |
| my ActerCheck function is written as this: |
| Format Code Block( |
| function |
| AfterCheck(sender, eventArgs) ( |
| var childNodes = eventArgs.get_node().get_nodes(); //get all the child nodes |
| var isChecked = eventArgs.get_node().get_checked(); //get all nodes that are checked |
| var node = eventArgs.get_node(); // get the parent node |
| // uncheck the parent if any child is unchecked. |
| if (!node.get_checked()) { |
| while (node.get_parent().set_checked != null) { |
| node.get_parent().set_checked( |
| false); |
| nodenode = node.get_parent(); |
| } |
| } |
| UpdateAll(childNodes, isChecked, node); |
| //update all nodes after check |
| } |
| ) |
Can you provide or point me to an example of adding a RadToolTip to a RadGrid:GridImageColumn.
The sample code I have seen finds the target control using e.Item.FindControl to find the control by Id name but I don’t know how to find the GridImageColumn since it doesn’t have an Id attribute.
Thanks,
-Chip
| function radGrid_Command(sender, e) { |
| showloadingpanel(true); |
| e.set_cancel(true); |
| var commandName = e.get_commandName(); |
| switch (commandName) { |
| case 'Sort': |
| case 'Page': |
| case 'PageSize': |
| //if the page has unsaved changes etc etc |
| if (confirm("changes not saved, continue?")){ |
| //pagemethod get my data using the grid pagesize, pageindex, sortcolumn, sort direction, rebind the grid on callback etc etc |
| } |
| else{ |
| //revert the sort, page or pagesize that was changed |
| showloadingpanel(false); |
| default: |
| break; |
| } |
| } |
| <asp:ScriptManager ID="ScriptManager" runat="server"> |
| </asp:ScriptManager> |
| <script type="text/javascript"> |
| (function() { |
| var oldDispose = Telerik.Web.UI.RadMultiPage.prototype.dispose; |
| Telerik.Web.UI.RadMultiPage.prototype.dispose = function() |
| { |
| Telerik.Web.UI.RadMultiPage.callBaseMethod(this, "dispose"); |
| oldDispose.call(this); |
| } |
| })(); |
| </script> |