closeCell grid equivalent for TreeList?

5 posts, 0 answers
  1. Labhesh
    Labhesh avatar
    23 posts
    Member since:
    Sep 2015

    Posted 15 Sep 2015 Link to this post

    Hi, 

    I am trying to make specific cells of the treelist editable based on some condition. 

    Following some websearch and kendo documentation, I figured that grid allows this via closeCell functionality. 

    I could not find anything similar for treelist. Is there a way to make a cell editable conditionally? i.e. via onEdit or editor: property on the specific field? 

     

    Thanks a lot, 

     

    Labhesh

     ​

  2. Labhesh
    Labhesh avatar
    23 posts
    Member since:
    Sep 2015

    Posted 16 Sep 2015 Link to this post

    Kendo Admins - can you please reply to this? 

    Thanks,

    Labhesh

  3. Kendo UI is VS 2017 Ready
  4. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 17 Sep 2015 Link to this post

    Hello Labhesh,

     

    The TreeList widget doesn't have analogous method as it doesn't support InCell editing as the Grid does.

     

    Regards,
    Nikolay Rusev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Labhesh
    Labhesh avatar
    23 posts
    Member since:
    Sep 2015

    Posted 17 Sep 2015 in reply to Nikolay Rusev Link to this post

    Thanks, so instead of putting something like below in the editor of each column,is there a better way to get "hold of" a particular cell within a treelist widget? i.e. what if I want to control a particular cell for formatting, erase borders, merge cells etc?

     

    function numericEditor(container, options) {
        //console.log(options);
        if ((options.field === "<<some field>>") && (options.model.strategyDisplayName ==="<<some other field>>")) {
            $('<label></label>')
                .appendTo(container);
        }
        else {
            $('<input data-bind="value:' + options.field + '"/>')
                .appendTo(container)
                .kendoNumericTextBox({
                    format: "n4",
                    decimals: 4
                });
        }
      
      
    }//end of numeric editor

  6. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 18 Sep 2015 Link to this post

    Hello Labhesh,

     

    You can still use columns.editor as in the Grid. Am I missing something?

     

    Regards,
    Nikolay Rusev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready