Академический Документы
Профессиональный Документы
Культура Документы
25-May-15
Log In
Products
SUPPORT CENTER
Buy
Support
Tickets
My Account
Examples
About Us
Localization
FAQ
solution
Training Events
ID:
T216455
Created O n :
3/6/2015 1:12:16 PM
Mo dified O n :
3/10/2015 2:48:39 PM
B u ild:
v2014 vo l 1.7 / 24-Sep -2014
Hi,
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'm
trying to do.
O p eratin g System:
W in do w s 8.1 x64
IDE:
Micro so ft Visu al Stu dio 2013
Does XAF have a simple way to accomplish this task?, Do you think my proposal is possible?
Thank you in advance.
Related Questions
navigation-items-search.png
Search in g mu ltip le tab les
Leave a Comment
1 Solution
0
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 Quick
Access 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 custom
action type with a custom control (BarCheckItem), associated with it approach to create a custom Action to display a drop-down control. For example, you
can 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.
W h at co u ld cau se actio n s to n o t
sh o w u p in an XAF ap p licatio n ?
Actio n Co n tain erHo lder can 't n o t b e
w rap p ed
Sh o w Mo re
https://www.devexpress.com/Support/Center/Question/Details/T216455
1/2
T216455 - Search Navigation item on Quick Access Toolbar | DevExpress Support Center
25-May-15
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
DEVEXPRESS
About Us
News
Our Awards
Upcoming Events
User Comments
Case Studies
Reviews and Publications
Licensing
Purchasing
MVP Program
Contact Us
Logos
.NET CONTROLS
WinForms
ASP.NET
MVC
WPF
Silverlight
Windows 8 XAML
CROSS PLATFORM
Reporting
Document Automation
MOBILE
DevExtreme Mobile
HTML5 JS WIDGETS
DevExtreme Web
ENTERPRISE TOOLS
Report Server
Analytics Dashboard
iOS 7
DataExplorer
FRAMEWORKS
eXpressApp Framework
CODE-DEBUG-REFACTOR
CodeRush for Visual Studio
SUPPORT
Search the Knowledge Base
My Questions
Code Examples
Getting Started
Demos
Documentation
Blogs
Training
Webinars
Current Version/Build
Version History
FOLLOW US
If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383
https://www.devexpress.com/Support/Center/Question/Details/T216455
2/2