I loaded the treeview from SQL on code behind and add custom attributes there,
<
telerik:RadTreeView ID="RadTreeView1" runat="server" OnNodeClick="RadTreeView1_NodeClick"
Skin="Default" Width="99%" Height="550px" OnClientContextMenuItemClicking="ContextMenuClick"
AllowNodeEditing="True" OnNodeEdit="RadTreeView1_NodeEdit" AccessKey="T" EnableDragAndDrop="True"
OnNodeDrop="RadTreeView1_NodeDrop" OnNodeExpand="RadTreeView1_NodeExpand" OnContextMenuItemClick="RadTreeView1_ContextMenuItemClick">
<ContextMenus>
<telerik:RadTreeViewContextMenu ID="treContextMenu" Skin="Vista" runat="server" CollapseAnimation-Duration="100">
<Items>
<telerik:RadMenuItem Text="Remote Desktop to Server" ImageUrl="Img/new.gif" ></telerik:RadMenuItem>
<telerik:RadMenuItem IsSeparator=true></telerik:RadMenuItem>
<telerik:RadMenuItem Text="New Node" ImageUrl="Img/new.gif" />
<telerik:RadMenuItem Text="Delete Node" ImageUrl="Img/delete.gif" />
<telerik:RadMenuItem Text="Rename Node" ImageUrl="Img/rename.gif" PostBack="false" />
<telerik:RadMenuItem Text="Copy Node" ImageUrl="Img/copy.gif" />
<telerik:RadMenuItem Text="Paste Node" ImageUrl="Img/paste.gif" />
</Items>
</telerik:RadTreeViewContextMenu>
</ContextMenus>
<NodeTemplate>
<asp:Image ID="imgSeverity" runat="server" ImageUrl="~/Images/greenfla.bmp" />
<asp:Image ID="ImgNode" runat="server" ImageUrl="~/Images/city.bmp" />
<asp:Label ID="lblNodeName" runat="server"></asp:Label>
<%
# DataBinder.Eval(Container.DataItem, "NodeName")%>
</NodeTemplate>
</telerik:RadTreeView>
serverNode.Attributes[
"Current_Severity"] = serverRow["Current_Severity"].ToString();
serverNode.Attributes[
"IP_Address"] = serverRow["IP_Address"].ToString();
when I tried to retrieve attrbitue from context menu client function,
function ContextMenuClick(sender, eventArgs)
{
var node = eventArgs.get_node() ;
alert(node.get_text()) ;
var ip_Address = node.get_attributes().getAttribute("IP_Address");
var NodeType = node.get_attributes().getAttribute("NoteType");
if (eventArgs.get_menuItem().get_text() == "Remote Desktop to Server")
{
runApp(ip_Address) ;
}
}
it told me that ip_address is undefined.
any Idea about it?
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" Skin="Web20" />
I have been recently working with Sliding panes and have noticed two issues.
1)When a sliding pane has a flash object and it is docked, it will overlap everything especially other sliding panes.
2) The next issue seems to only effect certain screen resolutions. Basically when I have three panes. The right pane has the sliding panes and the middle pane has the populated grid and the left pane has the menu. When docking the right pane the grid in the middle pane appears distorted. Viewing the same app on a higher resolution is much better and all looks like its supposed to.
Any ideas?
Hi,
I'm using RadControls 2008 Q1 and I'm trying to create a custom skin for the RADGRID.
According the papers "Basic of TELERIK RAD CONTROLS SKINNING" and "Create Skinning for Radstrip",
I follow the steps
Jéremie Pasquier