I'm trying to change root name in TreeGrid created from DataSource.
I need to see main root. I use showRoot:true property - it works.
I also need to change <icon:"icons/16/world.png"> and <title: "Favourites"> only for main root. I use <dataProperties>.
<Icon> was chenged, but <title> - Noway!
I see only standart title "root".
I'll show you this incident on standart example http://localhost:8080/isomorphic/system/reference/SmartClient_Explorer.html#treeLoadOnDemand
isc.TreeGrid.create({
ID: "employeeTree",
dataSource: "employees",
autoFetchData: true,
dataProperties: {root: {title: "Favourites", icon:"icons/16/world.png"} }, //My code
// customize appearance
width: 500,
height: 400,
nodeIcon:"icons/16/person.png",
folderIcon:"icons/16/person.png",
showOpenIcons:false,
showDropIcons:false,
closedIconSuffix:"",
showRoot:true, //My code
});
result in root_image .png
I tried to use <name:> instead <title:> but without any results. Please help to solve this problem.
I need to see main root. I use showRoot:true property - it works.
I also need to change <icon:"icons/16/world.png"> and <title: "Favourites"> only for main root. I use <dataProperties>.
<Icon> was chenged, but <title> - Noway!
I see only standart title "root".
I'll show you this incident on standart example http://localhost:8080/isomorphic/system/reference/SmartClient_Explorer.html#treeLoadOnDemand
isc.TreeGrid.create({
ID: "employeeTree",
dataSource: "employees",
autoFetchData: true,
dataProperties: {root: {title: "Favourites", icon:"icons/16/world.png"} }, //My code
// customize appearance
width: 500,
height: 400,
nodeIcon:"icons/16/person.png",
folderIcon:"icons/16/person.png",
showOpenIcons:false,
showDropIcons:false,
closedIconSuffix:"",
showRoot:true, //My code
});
result in root_image .png
I tried to use <name:> instead <title:> but without any results. Please help to solve this problem.
Comment