This is a migrated thread and some comments may be shown as answers.

closeCell grid equivalent for TreeList?

4 Answers 25 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Labhesh
Top achievements
Rank 1
Labhesh asked on 15 Sep 2015, 07:26 PM

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

 ‚Äč

4 Answers, 1 is accepted

Sort by
0
Labhesh
Top achievements
Rank 1
answered on 16 Sep 2015, 02:38 PM

Kendo Admins - can you please reply to this? 

Thanks,

Labhesh

0
Nikolay Rusev
Telerik team
answered on 17 Sep 2015, 07:50 AM

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!
 
0
Labhesh
Top achievements
Rank 1
answered on 17 Sep 2015, 01:23 PM

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

0
Nikolay Rusev
Telerik team
answered on 18 Sep 2015, 02:57 PM

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!
 
Tags
TreeList
Asked by
Labhesh
Top achievements
Rank 1
Answers by
Labhesh
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or