Hi,
I have a problem with attributes add from server-side and access from client-side:
Into nodeBound event i set a attributes i set an attributes ID
Private Sub rtvTagAvailable_NodeBound(ByVal o As Object, ByVal e As Telerik.Web.UI.RadTreeNodeEventArgs) Handles rtvTagAvailable.NodeDataBound |
Dim node As RadTreeNode = e.Node |
node.Attributes.Add("ID", orgTag.ID.ToString) |
End Sub |
from client-side function (not connected on OnClientNodeClicked) i try to get this attribute value and it's always undefined (idTag)
var treeView = $find("<%= rtvTagAvailable.ClientID %>"); |
var selectedNode = treeView.get_selectedNode(); |
if(selectedNode) |
{ |
var idTag = selectedNode.get_attributes().getAttribute("ID"); |
if (idTag) |
{ |
<%=RadAjaxPanel1.ClientID%>.ajaxRequest("Delete;" + idTag ); |
} |
} |
but, into my code-behind i have access to this same attribute, but not client-side??
ty