
| if (!this._getElement("AllDayEvent").checked) |
| range.set_recursUntil($DateTime.add(range.get_recursUntil(), timePerDay)); |
I want to use jQuery to assign an event handler for MouseUp on nodes in the treeview, like this:
$("div.issuesTree span.issueTitle").mouseup(handleMouseup);
[I gave the tree a css class of "issuesTree" and the nodes a css class of "issueTitle"]
In the handleMouseup function, I want to be able to access the attributes of the node, similar to this example, from:
http://www.telerik.com/help/aspnet-ajax/tree_attributesclientside.html
| function onNodeClicked(sender, args) |
| { |
| var node = args.get_node(); |
| alert(node.get_attributes().getAttribute("ScientificName")); |
| //you can also set attributes, like: |
| //node.get_attributes().setAttribute("ScientificName"); |
| } |
The above example includes setting the RadTreeView property, OnClientNodeClicked, in which the Telerik RadTreeNode is in the args object.
Within my mouseup handler, is there a way to access this node, so that I can access its attributes?
Also note: My page already has jQuery 1.3.2 referenced directly, and I read that including the RadTreeView will also include jQuery, but with $telerik.$ as the default alias. Trying to use $telerik.$(“selector”).mouseup(…) didn’t seem to help… $telerik.$ is shown as undefined in my debugger.
I got the idea to try the $telerik.$ alias from reading, "Using jQuery," here:
http://www.telerik.com/help/aspnet-ajax/using-jquery.html
I’m using Visual Studio 2008.
Telerik.Web.UI.dll
File/product version: 2008.2.1001.20
Thanks in advance for any help or tips to accomplish what I need, by whatever method you might suggest.
| function WindowMoved(sender, args) { |
| window.setTimeout(function() { |
| SaveSizeAndPosition(sender, args); |
| }, 10); |
| } |
| function SaveSizeAndPosition(sender, args) { |
| var oWnd = $find("<%= RadWindowRealMcCoy.ClientID %>"); |
| if (oWnd != undefined) { |
| debugger; |
| createCookie('RealMcCoyManagerWindowTop', oWnd.getWindowBounds().y, 365); |
| createCookie('RealMcCoyManagerWindowLeft', oWnd.getWindowBounds().x, 365); |
| createCookie('RealMcCoyManagerWindowHeight', oWnd.getWindowBounds().height, 365); |
| createCookie('RealMcCoyManagerWindowWidth', oWnd.getWindowBounds().width, 365); |
| } |
| } |
| function ShowDialog() { |
| var oWnd = $find("<%= RadWindowRealMcCoy.ClientID %>"); |
| if ((oWnd != null) && (oWnd != undefined)) { |
| var x = readCookie('RealMcCoyManagerWindowLeft'); |
| var y = readCookie('RealMcCoyManagerWindowTop'); |
| var height = readCookie('RealMcCoyManagerWindowHeight'); |
| var width = readCookie('RealMcCoyManagerWindowWidth'); |
| if (x) { |
| if (oWnd._firstShow == undefined) { |
| oWnd.setSize(width, height); |
| oWnd.moveTo(x, y); |
| } |
| } |
| oWnd.show(); |
| } |
| } |
_onTextBoxMouseOverHandler:
function(b){var a=Telerik.Web.UI.RadInputManager.getTarget(b);
if
(!a){return;
}
this._inputs[a]._hovered=true;
Any help on this one with be greatly appreciated!
Thanks
mtoori
