May 16, 2011, 5:41 PM
[CLOSED] Add combobox in TasksTree (combination sample) exemple.
Hi,
I inserted a combobox in the Simple Tasks example, but the combobox is not rendered.
I need to change the js file in this example?
Create Combobox
Thanks.
I inserted a combobox in the Simple Tasks example, but the combobox is not rendered.
I need to change the js file in this example?
Create Combobox
private void BuildCbxRepositorio()
{
this.cbxCbxRepositorio = new ComboBox
{
Width = 260,
X = 10,
Y = 40,
LoadingText = "Carregando ...",
FieldLabel = "Repositório",
LabelAlign = Net.LabelAlign.Top,
ForceSelection = true,
DisplayField ="nome",
ValueField ="id",
TriggerAction = TriggerAction.All,
SelectOnFocus = true,
EmptyText = "... Selecione ... "
};
this.Controls.Add(this.cbxCbxRepositorio);
this.LazyItems.Add(this.cbxCbxRepositorio);
this.cbxCbxRepositorio.LazyMode = LazyMode.Instance;
}
call method:public TasksTree()
{
this.Title = "Unidades de arquivamento";
this.Collapsible = true;
this.Width = 260;
this.AutoScroll = true;
this.UseArrows = true;
this.X = 10;
this.Y = 70;
this.Mode = TreePanelMode.Remote;
this.Cls = "tasks-tree";
this.EnableDD = true;
this.AllowLeafDrop = true;
this.DDAppendOnly = true;
this.DirectEventConfig.Type = DirectEventType.Load;
this.DDGroup = "tasktree";
this.Editors.Add(new TreeEditor
{
CancelOnBlur = true,
Shadow = ShadowMode.None,
Field =
{
new TextField
{
AllowBlank = false,
BlankText = "Um nome é requerido",
SelectOnFocus = true
}
}
});
this.Loader.Add(new PageTreeLoader
{
PreloadChildren = true,
RequestMethod = HttpMethod.GET
});
this.Root.Add(new AsyncTreeNode
{
Text = "Todas Unidades",
NodeID = "1",
Leaf = false,
IconCls = "icon-folder",
Expanded = true,
Editable = false,
CustomAttributes =
{
new ConfigItem("isFolder", "true", ParameterMode.Raw)
}
});
this.Sorter.FolderSort = true;
this.SelectionModel.Add(new DefaultSelectionModel());
this.CriarStoreRepositorio();
this.BuildCbxRepositorio();
this.BuildBottomBar();
this.BuildCategoryMenu();
this.BuildFolderMenu();
this.InitLogic();
}
Any ideas?Thanks.
Last edited by geoffrey.mcgill; May 18, 2011 at 6:46 PM.
Reason: [CLOSED]