Material design focuses on the structural, aesthetic, and functional behavior of Combobox control. For standard ComboBox controls, the template is determined by the style applied to the ComboBox. Users can modify the ComboBox template by using the Material Design property in the new ComboBox control.
In this new feature, users can set up GroupName, ValueMember, DisplayMember, and n number of Attributes and also able to style the ComtboBox by providing HTML codes.
Fig 1: ComboBox Material Design UI
MATERIAL DESIGN CONFIGURATION
For applying Template in ComboBox, user need to configure material design property, which is available in the Style property panel.
Fig 2: Template Property
Fig 3 : Material Design Configuration Window
This feature provides 2 types of templates, default and Material design.
[ eg: fa fa-download ]
[ Eg: <h4 data-group=”{{GroupMember}}”>
{{DisplayMember}} – {{ValueMember}} <br>
<h6> {{A1}} </h6> </h4> ]
[Eg: GroupMember, DisplayMember, ValueMember ]
Fig 4: Maximum Item Count Field
DATA SOURCE CONFIGURATION
Material Design applied combobox can be configured as static, MS SQL, stored procedure, and RESTFul service DataSources. Web service DataSource is not available here. In the DataSource configuration window of ComboBox, we can configure GroupName, ValueMember, and DisplayMember. Users can also set the ValueMember and DisplayMember to the same value by using the option Both like normal ComboBox.
In Static DataSource configuration the GroupNames are provided inside the double curly braces.
Fig 5: Static Configuration window
MATERIAL PROPERTIES WINDOW
Material Properties options are available in all DataSource configuration windows. In this window, users can configure the Attributes value and able to manage the Group order.
Fig 6: Material Property Button
Attribute Configuration
Fig 7: Material Design Advanced Properties Window
Fig 8: Attribute Configuration
In Attribute Setting user can add any name and configure with a column name. These Attribute names are used in the Display Template, which is present in the Material Design configuration window.
Group Order Management
Fig 9: Group Order Management window
Users are able to set the order of the Groups.
The Attribute and Group order are not applicable to Static DataSource.
Conclusion
Material Design is effectively an entire design ecosystem, rather than just a set of style guidelines. Using the ComboBox material design property, it is possible to design a highly organized combobox very quickly and efficiently.