on 04-20-2007 12:05 PM
hello
i have a tree table inside a scroll container to provide scrollbar instead of footer of a table. i achieved it already.
i have a search functionality also in this i.e. when the user search for a name in this tree table , the searched item in treetable row gets highlighted but it doesnot become visible on the screen. i have to scroll to see that time (if the item is not in the visible area)
is there any idea to achieve this?
thanks
kaushik
hi,
whichever leaf you are searching, I hope some value attribute of node is mapped with that,
if it so then it will work
IWDAttributeInfo attribute = wdContext.getNodeInfo().getAttribute(IPrivateItemListBoxCompView.IContextElement.VAL);
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attribute);
here i have defined value attribute "VAL" in the context of view, replace it with relevant value attribute(may be a child of node, get its attribute properties), and write the code above, this will get focus to that context attribute.
write this code in condition where your search is successful, here get the relevant attribute from context and put the code for that.
hope it helps
regards
Message was edited by:
Abhijeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.