Devexpress control library ---- ComboBoxEdit, MRUEdit, SearchContrl control comparison, devexpress paging Control

Source: Internet
Author: User

Devexpress control library ---- ComboBoxEdit, MRUEdit, SearchContrl control comparison, devexpress paging Control

Devexpress control library ---- ComboBoxEdit, MRUEdit, and SearchContrl control comparison

Prepare the list data:

Public List <string> GetList () {List <string> list = new List <string> () {"Janurary", "February", "March", "Limit L ", "May", "June", "July", "August", "September", "October", "November", "December", "Zhang San", "Zhang Sanfeng ", "Xiao Zhang", "Toyota Taro", "sanlin oilfield", "Li Si Zhang San", "Zhang Guan Li Dai", "Monday", "Tuesday", "Wednesday", "Thursday ", "Friday", "Saturday", "Sunday"}; return list ;}

 

1: Control ComboBoxEdit. Bind The data list. I have not found the attribute for DataSource. I personally think this binding method is very troublesome. Who has a quick binding method please point out

 List<string> list = GetList();            foreach (var item in list)            {                comboBoxEdit1.Properties.Items.Add(item);            }

Simple Property setting: the automatic search function of this control is not very practical.

ComboBoxEdit1.Properties. autoComplete = true; // automatically searches for comboBoxEdit1.Properties. immediatePopup = true; // display the drop-down list // double-click the edit box to display the drop-down list comboBoxEdit1.Properties. showDropDown = DevExpress. xtraEditors. controls. showDropDown. doubleClick; // by default, the number of rows displayed in the drop-down list is comboBoxEdit1.Properties. dropDownRows = 12; // whether ComboBoxEdit allows you to edit comboBoxEdit1.Properties. textEditStyle = DevExpress. xtraEditors. controls. textEditStyles. standard;

Second: MRUEdit controls and comboBoxEdit controls are very useful. However, the automatic search function is friendly.

This control has the function of dynamically deleting data entries bound to the list.

 

            foreach (var item in list)            {                mruEdit1.Properties.Items.Add(item);            }

Simple settings:

// Display the drop-down list mruEdit1.Properties. immediatePopup = true; // by default, the number of rows displayed in the drop-down list displays the scroll bar mruEdit1.Properties. dropDownRows = 12; // double-click the edit box to display the drop-down list mruEdit1.Properties. showDropDown = DevExpress. xtraEditors. controls. showDropDown. doubleClick; // whether MruEdit allows you to edit mruEdit1.Properties. textEditStyle = DevExpress. xtraEditors. controls. textEditStyles. standard; // whether mruEdit1.Properties can be used to delete the bound data source. allowRemoveMRUItems = true;

Third: Use of the SearchControl control.

Foreach (var item in list) {searchControl1.Properties. items. add (item) ;}// set the automatic filtering method searchControl1.Properties. filterCondition = DevExpress. data. filtering. filterCondition. contains; // The specific delete button does not have much use for searchControl1.Properties. showClearButton = false; searchControl1.Properties. showDropDown = DevExpress. xtraEditors. controls. showDropDown. doubleClick; searchControl1.Properties. showMRUButton = false; searchControl1.Properties. allowRemoveMRUItems = false; // The search icon searchControl1.Properties. showSearchButton = true; searchControl1.Properties. dropDownRows = 12; searchControl1.Properties. textEditStyle = DevExpress. xtraEditors. controls. textEditStyles. standard;

Specific results:

 

My overall feeling is:

1. If only three controls are selected, the functions can be well completed.

2. Use MRUEdit and SearchControl to filter data.

3. Using SearchControl is a good choice if Baidu's search is similar.

I personally prefer the SearchControl control.

The specific DevExpress control library should be separated for specific purposes. I have not found any special purposes for the moment. Please let me know their special features.

 

 

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.