Upload
tas-pro
View
19
Download
2
Embed Size (px)
DESCRIPTION
a
Citation preview
Tags: .NET, Frameworks (XAF & XPO), eXpressApp Framework
navigation-items-search.png
ID :T216455
Created O n :3/6/2015 1:12:16 PM
Mod if ied O n :3/10/2015 2:48:39 PM
B u ild :v2014 vo l 1.7 / 24-Sep-2014
O peratin g System:W in dow s 8.1 x64
IDE :M icroso ft Visu al Stu d io 2013
Related Questions
Search in g mu ltip le tab les
Navigation U sin g Men u in ASP.NetXAF
How to make th e "Too lB ar"Action Con ta in erHo lder w rap top reven t u n n eeded h o rizon ta lscro llbars sh ow in g
W h at cou ld cau se action s to n o tsh ow u p in an XAF app lication ?
Action Con ta in erHo lder can 't n o t bew rapped
Sh ow More
SUPPORT CENTER FAQTraining EventsLocalizationExamplesTickets
Submit a Support TicketSubmit a Support TicketType search string and press Enter
1solution
Search Navigation item on Quick Access Toolbar
0 Ivn P. 3 months agoHi,
I'm trying to add a new action on the Quick Access Toolbar. It will be a textbox to search inside my Navigation control items. I attach a sample of what I'mtrying to do.
Does XAF have a simple way to accomplish this task?, Do you think my proposal is possible?
Thank you in advance.
Leave a Comment
1 Solution
0 Alexey (DevExpress Support) 3 months ago
Hello Ivn,Yes, it is possible to implement such a control.You can create a WindowController, add ParametrizedAction and set the QuickAccess property to true. As a result, the Action will be added to the QuickAccess Toolbar.After that, you can use the How to: Customize Controls Associated with an Action approach to customize the Action's control or the How to create a customaction type with a custom control (BarCheckItem), associated with it approach to create a custom Action to display a drop-down control. For example, youcan use RepositoryItemLookUpEdit to display a drop-down control.You can use approaches described in the How to show a window ( View ) representing data in XAF article to show View via code.Please let me know if you need further assistance.
Hi Alexey, th an k you fo r an sw erin g .
O k I see, bu t h ow can I h ave a ll th e item action s from my Navigation con tro l?
It w ill be n ice if w e can lau n ch th e even ts o f th ese action s, o th erw ise w e n eed to create a ll op tion s man u ally an d attach th e sh ow a XAFw in dow even t, w h ich is n o t su itab le.
O n th e o th er h an d , is it possib le to f ilter Navigation con tro l items?
Ivn P. 3 months ago
You can access App lication Model in code th rou gh th e App lication .Model p roperty, iterate th rou gh a ll n avigation items an d co llect th erequ ired in fo rmation .
On the other hand, is it possible to filter Navigation control items?
Yes, it is a lso possib le. I recommen d you review th e How to a llow search in g n avigation items ? th read , w h ich illu strates h ow to imp lemen t it.Also it is possib le to en ab le a defau lt TreeList con tro l search fu n ction ality.See a lso :How to : Access Navigation Con tro l
Alexey (DevExpress Support) 3 months ago
I can n o t see Q508416 lin k : "You can 't view th is ticket"Ivn P. 3 months ago
It seems stran ge to me. Please try open it later.Also h ere is u sefu l code sn ippet:
public class NavBarViewChangingController : WindowController { private NavigationActionContainer navActionContainer; protected override void OnActivated() { base.OnActivated(); Window.ProcessActionContainer += Window_ProcessActionContainer; } protected override void OnDeactivated() { Window.ProcessActionContainer -= Window_ProcessActionContainer; UnsubscribeFromContainerEvents(); navActionContainer = null; base.OnDeactivated(); } void Window_ProcessActionContainer(object sender, ProcessActionContainerEventArgs e) { UnsubscribeFromContainerEvents(); if (e.ActionContainer is NavigationActionContainer) { navActionContainer = e.ActionContainer as NavigationActionContainer; SubscribeToContainerEvents(); SetupNavBar(); } } private void SubscribeToContainerEvents() {
Alexey (DevExpress Support) 3 months ago
Products Free Trials & Demos Buy Support My Account About Us
Log In
T216455 - Search Navigation item on Quick Access Toolbar | DevExpress Support Center 25-May-15
https://www.devexpress.com/Support/Center/Question/Details/T216455 1 / 2
DEVEXPRESSAbout UsNewsOur AwardsUpcoming EventsUser CommentsCase StudiesReviews and PublicationsLicensingPurchasingMVP ProgramContact UsLogos
.NET CONTROLSWinFormsASP.NETMVCWPFSilverlightWindows 8 XAML
CROSS PLATFORMReportingDocument Automation
MOBILEDevExtreme Mobile
ENTERPRISE TOOLSReport ServerAnalytics Dashboard
FRAMEWORKSeXpressApp Framework
CODE-DEBUG-REFACTORCodeRush for Visual Studio
HTML5 JS WIDGETSDevExtreme Web
iOS 7DataExplorer
FUNCTIONAL WEB TESTINGTestCafe
DELPHI C++BUILDERVCL
SUPPORTSearch the Knowledge BaseMy QuestionsCode ExamplesGetting StartedDemosDocumentationBlogsTrainingWebinars
Current Version/BuildVersion History
FOLLOW US
Your Privacy - Legal Statements Copyright 1998-2014 Developer Express Inc.All trademarks or registered trademarks are property of their respective owners
DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, BusinessApplication Frameworks, and Reporting Systems for Visual Studio, along with high-performanceHTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whetherusing WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help youbuild and deliver your best in the shortest time possible.
if (navActionContainer != null) { navActionContainer.NavigationControlCreated += navigationControlCreated; } } private void UnsubscribeFromContainerEvents() { if (navActionContainer != null) { navActionContainer.NavigationControlCreated -= navigationControlCreated; } } private void navigationControlCreated(object sender, EventArgs e) { SetupNavBar(); } private void SetupNavBar() { if (navActionContainer != null && navActionContainer.NavigationControl is TreeListNavigationControl) { TreeListNavigationControl treeListNavigationControl = (TreeListNavigationControl)navActionContainer.NavigationControl; treeListNavigationControl.OptionsBehavior.AllowIncrementalSearch = true; } } }
Leave a Comment
If you need additional product information, write to us at [email protected] or call us at +1 (818) 844-3383
T216455 - Search Navigation item on Quick Access Toolbar | DevExpress Support Center 25-May-15
https://www.devexpress.com/Support/Center/Question/Details/T216455 2 / 2
Search Navigation item on Quick Access ToolbarRelated Questions1Solution