Hi,
I am trying to have a SelectItem's picker opened at the startup of my application. I tried to simulate the "click" event, or to call "showPicker", but neither of them works. Is there any built-in way or any hack to achieve this?
To clarify: It is not important, that the whole tree is unfolded, I just want to see the first level of elements.
My SmartClient version is v11.1p_2018-02-11/LGPL Deployment (built 2018-02-11).
I'm testing with Chrome 64.0.3282.140 (64-Bit)
Thanks a lot in advance!
Slartidan
I am trying to have a SelectItem's picker opened at the startup of my application. I tried to simulate the "click" event, or to call "showPicker", but neither of them works. Is there any built-in way or any hack to achieve this?
To clarify: It is not important, that the whole tree is unfolded, I just want to see the first level of elements.
My SmartClient version is v11.1p_2018-02-11/LGPL Deployment (built 2018-02-11).
I'm testing with Chrome 64.0.3282.140 (64-Bit)
Code:
isc.DynamicForm.create({
fields: [
isc.SelectItem.create({
ID: "sel",
type: "pickTree",
title: "cat",
valueTree: isc.Tree.create({
modelType: "children",
root: {
name: "root", children: [
{name: "a"},
{
name: "b", children: [
{name: "b1"},
{name: "b2"}
]
}
]
}
})
})
]
});
sel.showPicker();
Slartidan
Comment