Hi,
As per my requirement, I need to disable treetable so that user should not be able to delete any row from treetable.
treetable is defined in a layout as :
body : {
multi : true,
view : "accordion",
type : "space",
rows : [
{
// contains buttons to add row to below treetable...
},
{
body : {
view : "treetable",
select : true,
css : "my_style",
id : "treeId",
columns : [
// columns in tree table
],
editable : false,
autoheight : false,
autowidth : false,
data : dataJSON,
threeState : true,
scheme : {
$group : {
by : "group",
map : {
open : [
"1",
"string" ],
name : [
"group",
"any" ]
}
}
}
},
height : 250
} ]
}
Below is the code I am using to disable the above layout (treetable and Buttons row) :
$$('treeId').getParentView().getParentView().define("disabled", true);
But the above code is disabling the horrizontal scrollbar of treetable, that is not required. Its not disabling vertical scrollbar which is fine.
Can anyone please suggest how to avoid disabling the horrizontal scrollbar of treetableā¦