Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section

Working with CanUserSort Property

UXPageableComboBox columns also comes with sorting capability. This feature can be enabled by set the CanUserSort property to True. If you prefer to disable sorting on certain columns, set the CanUserSort property of the column to False.

Image Added

Working with Header Property

By default, column header will be displayed in multiple column mode. But if you want to hide the column header, simply set the ColumnHeaderVisibility property to Collapsed.

Image Added

The following code will explain how to implement it on UXPageableComboBox control.

Code Block
titleXAML
languagexml
<Intersoft:UXPageableComboBox.Columns>
        <Intersoft:UXDataComboBoxTextColumn Header="Customer ID"
			Binding="{Binding CustomerID}" DisplayMode="Image" ImageHeight="64"
			ImageWidth="64" ImageStretch="Fill" ImageBinding="{Binding PhotoPath}"/>
        <Intersoft:UXDataComboBoxTextColumn Header="Contact Name"
			Binding="{Binding ContactName}"/>
        <Intersoft:UXDataComboBoxTextColumn Header="Company Name"
			Binding="{Binding CompanyName}"/>
</Intersoft:UXPageableComboBox.Columns>

Definition

public abstract class UXDataComboBoxColumn : DependencyObject

...

public Binding HeaderBinding { get; set; }

Gets or sets column header binding.

Remarks

UXPageableComboBox column also support column header binding. This feature can be used to localize the column header text, suppose you want to make your application available in multi language. To use this feature, simply bind your localized resources to each column's UXDataComboBoxColumn property. To learn more about Localization, see Localization Overview.

 

Anchor
P:Intersoft.Client.UI.Data.UXDataComboBoxColumn.HeaderStyle
P:Intersoft.Client.UI.Data.UXDataComboBoxColumn.HeaderStyle

...

public string SortMemberPath { get; set; }

Gets or sets the column sort path.

Remarks

When sorting is enabled, you can specify the SortMemberPath property of UXPageableComboBox column to a value that represents the member path for sorting. If not specified, the SortMemberPath property will be automatically set to the member path defined in the UXDataComboBoxBoundColumn property.

 

Anchor
P:Intersoft.Client.UI.Data.UXDataComboBoxColumn.VerticalCellAlignment
P:Intersoft.Client.UI.Data.UXDataComboBoxColumn.VerticalCellAlignment

...