Hi there,
I'm trying to get SelectItems to work in the TreeGrid. Using the same logic like in a ListGrid seems to duplicate the selected value. In the example the selected value is represented and also the values from the valuemap. (Screenshot from Chrome)
Tested with the latest nightly SmartClient_v100p_2015-04-13_Pro and i't's reproducable in chrome/firefox/IE.
In IE (tested with IE 11.0.9600.17691) there seems also be a visual bug, whenswitching to edit-mode of the SelectItem the value of the SelectItem jumps few pixels down. Also there seems to be no need for the scrolling-bar in the picklist. See here:
There seems to be no example for SelectItems in the TreeGrid, but it makes sense for working with same elements under a node.
Edit:
After selecting one of the other shown values, there are only 2 elements shown. Afterwards it is working correct. So it seems to be only a initialization issue?
With this code you can reproduce this issue:
Best regards
I'm trying to get SelectItems to work in the TreeGrid. Using the same logic like in a ListGrid seems to duplicate the selected value. In the example the selected value is represented and also the values from the valuemap. (Screenshot from Chrome)
Tested with the latest nightly SmartClient_v100p_2015-04-13_Pro and i't's reproducable in chrome/firefox/IE.
In IE (tested with IE 11.0.9600.17691) there seems also be a visual bug, whenswitching to edit-mode of the SelectItem the value of the SelectItem jumps few pixels down. Also there seems to be no need for the scrolling-bar in the picklist. See here:
There seems to be no example for SelectItems in the TreeGrid, but it makes sense for working with same elements under a node.
Edit:
After selecting one of the other shown values, there are only 2 elements shown. Afterwards it is working correct. So it seems to be only a initialization issue?
With this code you can reproduce this issue:
Code:
isc.TreeGrid.create({ "width" : "100%", "height" : "100%", "fields" : [{ "name" : "reasonTreeGridField", "title" : "Reason", "type" : "text", "canEdit" : true, "editorProperties" : { "ID" : "reasonTreeGridField_5Editor" } }, { "name" : "fruitSelectItemTreeGridField", "title" : "select fruit", "canEdit" : true, "editorType" : "SelectItem", "valueMap" : { 1 : "banana", 2 : "peach" } } ], "selectionProperty" : "isSelected", "members" : [], data : isc.Tree.create({ "modelType" : "children", "openProperty" : "isOpen", "root" : { "isOpen" : true, "id" : "1", "children" : [{ "isFolder" : true, "isOpen" : true, "id" : "2", "_canEdit" : false, "reasonTreeGridField" : "theParentNode", "fruitSelectItemTreeGridField" : "", "children" : [{ "isFolder" : false, "isOpen" : false, "id" : "3", "_canEdit" : true, "reasonTreeGridField" : "child", "fruitSelectItemTreeGridField" : "peach" } ] } ] } }) })
Comment