[CLOSED] Add combobox in TasksTree (combination sample) exemple.

  1. #1

    [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
    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]
  2. #2
    Hi,

    I am not sure where do you expect to see the combobox.
    TreePanel doesn't know about your combobox and don't render it

Similar Threads

  1. Ext.NET and Ribbon combination
    By UserClarion in forum 1.x Help
    Replies: 6
    Last Post: May 28, 2012, 1:05 PM
  2. [CLOSED] create event to TasksTree
    By stoque in forum 1.x Legacy Premium Help
    Replies: 19
    Last Post: May 26, 2011, 1:27 PM
  3. Replies: 10
    Last Post: May 18, 2011, 8:37 AM
  4. Replies: 0
    Last Post: Feb 03, 2011, 9:11 AM
  5. [CLOSED] Simple Tasks Combination Sample Broken
    By logicspeak in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 15, 2010, 5:50 PM

Tags for this Thread

Posting Permissions