Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Autoscrolling with Treegrid

$
0
0
Be sure your post includes:

1. SmartClient Version 8.2p

2. IE9 (or Chrome)

3. N/A

4. N/A

5. N/A

6. We have the following smartclient object structure (stripped down for ease) on a page:
var userDetailWindow = isc.VLayout.create({
members:[
isc.VStack.create({
width:"100%",
overflow:"auto",
layoutMargin:5,
autoDraw:false,
members:[
isc.DynamicForm.create({
width: "100%",
autoDraw: "false",
isGroup: "true"
});
isc.DynamicForm.create({
width: "100%",
height:20,
overflow:"visible",
autoDraw: "false"
});
isc.TreeGrid.create({
width: "99%",
height: "100%",
overflow:"visible",
autoDraw: "false",
isGroup: "true"
data: isc.Tree.create({});
});
]
});
]
});

After the page loads (which is a fairly long page consisting of 3 sections...the 2 forms and the treegrid with many records that are all fully expanded out) we have a scrollbar that encompasses everything contained in the members of the VLayout. The FIRST time someone tries to collapse one of the folder nodes on the treegrid, instead of it doing that action, it instead merely scrolls the treegrid up to the top of the page (the two dynamic forms are no longer visible) and a user is forced to then re-click on a +/- folder node to interact with the treegrid in the desired manner (to expand or collapse a folder).

I think what is happening is that the scrolling action is taking priority/redrawing the page and botching the original intent. I don't know it's stopping the propagation or bubbling of the original event, as if a user (by specific chance) clicks on a certain node folder down in the list, if upon a redraw a node folder happens to be in the exact screen spot, it will trigger the collapse.

What we would like/prefer would be for the auto scrolling at the VLayout member level to NOT take effect/interrupt/redraw, and just allow the collapse of the folder node. Any thoughts, ideas or help would be much appreciated.

Viewing all articles
Browse latest Browse all 4756

Trending Articles