本文整理汇总了C#中Tree.DropList方法的典型用法代码示例。如果您正苦于以下问题:C# Tree.DropList方法的具体用法?C# Tree.DropList怎么用?C# Tree.DropList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tree
的用法示例。
在下文中一共展示了Tree.DropList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: testDroplist
public void testDroplist()
{
List<Node> nodes = getNodesAll();
Tree<Node> tree = new Tree<Node>( nodes );
String rthml = tree.DropList( "myDrop", 0 );
Console.WriteLine( rthml );
}
示例2: bindForm
private void bindForm( Page data, Tree<Page> tree )
{
set( "category", data.Category.Name );
set( "p.Title", data.Title );
set( "p.Logo", data.Logo );
String drop = tree.DropList( "ParentId", data.ParentId, data.Id, "---" );
set( "dropParent", drop );
set( "IsAllowReply", data.IsAllowReply == 1 ? "checked=\"checked\"" : "" );
editor( "Content", data.Content, "300px" );
}
示例3: bindForm
private void bindForm( Page data, Tree<Page> tree ) {
set( "category", data.Category.Name );
set( "p.Title", data.Title );
set( "p.Logo", data.Logo );
String drop = tree.DropList( "ParentId", data.ParentId, data.Id, "---" );
set( "dropParent", drop );
set( "Content", data.Content );
String chk = "checked=\"checked\"";
set( "IsAllowReply", data.IsAllowReply == 1 ? chk : "" );
set( "chkIsCollapse", data.IsCollapse == 1 ? chk : "" );
set( "chkIsTextNode", data.IsTextNode == 1 ? chk : "" );
}