ShowAsTree - Expanded
mihail_kolev
Member Posts: 379
Hello,
I'm making a treeview (Repeater -> ShowAsTree) of some data. The only problem i have is that the treeview is always collapsed by default. Is there any way to show the tree Expanded by default or expand it after data is loaded by some code? Thank you for any suggestions.
I'm making a treeview (Repeater -> ShowAsTree) of some data. The only problem i have is that the treeview is always collapsed by default. Is there any way to show the tree Expanded by default or expand it after data is loaded by some code? Thank you for any suggestions.
-Mihail- [MCTS]
0
Answers
-
Did you come up with a solution to this? I have the same requirement to manipulate the expanded/collapsed states.Rob Hansen
http://www.epimatic.com0 -
not yet
-Mihail- [MCTS]0 -
Have you looked at page Chart of Accounts Overview (634). In the AL function
OnPageAll it says
IF ISSERVICETIER THEN
ExpandAll
ELSE
InitTempTable;
Does that solve your problem?Eric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Sorry that just build the rows in depth. The view is still collapsed (underneith it is in fact fully expanded but there is a view on top of that - that is collapsed). There is only the runtime functionality that can expand all and collapse all.Eric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
what type is the page, how you run the page...?-Mihail- [MCTS]0
-
Have anyone managed to resolve this problem ?
I have a similar situation, I want to modify Page 6520 Item Tracing so when to user hits button Trace the results will be shown in Expand All. It works in Classic Client but in RTC the code for Expand All, Collapse All is not available.0 -
Thank you for answering so quickly.deV.ch wrote:SendKeys
I thought about SendKeys but seems complicated since the shortcut Ctrl + Shift + Q is only for one line not for expand All. I didn't see any shortcut for Expand All. If I use this shortcut I would have to move from main page, after pushing Trace button, to the first line an then to all the other lines. I don't know if this is even possible, I must admit I'm quite new with pages.0 -
I noted this small issue in our books. When it comes out to the market is a good question?Eric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
Hi!
We tried a long time, but finally we found a workaround for it!
Add this code to the OnOpenPage()-Trigger. The variable WshShell is an automation of the type "Windows Script Host Object Model.WshShell".
IF (ISCLEAR(WshShell)) THEN BEGIN
CREATE(WshShell, FALSE, TRUE);
END;
WshShell.SendKeys('+{F10}E{ENTER}');
// menu key + E + Enter
CLEAR(WshShell);
Note:
The keys to send depends on the language. This is working for ENU.
Derk0 -
wow, nice tip :thumbsup: this could be useful not only for expanding a tree view. Thanks for sharing
EDIT: the topic is now [solved]
-Mihail- [MCTS]0 -
works fine =D>
as long as the filter pane is not visible :-k0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
