Hi,
I have a XamComboEditor as one of the column editor of a XamDataGrid. To select any item from this drop down, user has to specifically click on the value. In case of numbers it gets difficult since there is a small area for the user to click on the number. Is there any property which selects the item by selecting the row (of that item in the combo box drop down), something like selecting with hot-tracking enabled?
Hello,
I am just checking if you require any further assistance on the matter
Hello Arpita,
I have used the provided by you XAML code in my application in order to reproduce your issue and it seems that everything goes as expected. When I hover over an item from the drop down list of the XamComboEditor, the particular item becomes highlighted. Please modify my sample application(DataGridComboModified.zip) in order to reproduce your issue.
Looking forward to hearing from you.
here is the style I have for that data column in the xamdatagrid. It is a xamcomboeditor + button. Below is the style that I am using, you can ignore the converters actually which is just used for enabling or disabling the buttons, and here for the dropdown I dont see the hot-tracking. In order to select an item I am click on that specific item itself, and not at any point on the row. If I take the mouse over the items then it is not highlighted (hottracked) too so I am not able to select it.
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="cColStyle">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=DataItem.Type, Converter={StaticResource DTChecker}}" Value="True">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<DockPanel>
<Button Style="{StaticResource btnStyle}" IsEnabled="{Binding Path=DataItem.Behavior, Converter={StaticResource BehChecker}}"
DockPanel.Dock="Right" Focusable="False" BorderThickness="0" FontWeight="Bold" ToolTip="Add New">
<Button.DataContext>
<Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type igDP:CellValuePresenter}}" Path="DataContext"/>
</Button.DataContext>
<ContentControl>
<DatePicker x:Name="datepicker" BorderBrush="Transparent" BorderThickness="0">
</DatePicker>
</ContentControl>
</Button>
<ContentPresenter Content="{TemplateBinding Content}"/>
</DockPanel>
</DataTemplate>
</Setter.Value>
</Setter>
</DataTrigger>
<DataTrigger Binding="{Binding Path=DataItem.Type, Converter={StaticResource DTChecker}}" Value="False">
DockPanel.Dock="Right" BorderThickness="0" Content="+" FontWeight="Bold" ToolTip="Add ew" >
</Style.Triggers>
</Style>
I have been looking into your post and I have created a sample application(XamDataGridCombo.zip) following your scenario and I have no issue with the width of the items in the XamComboEditor. I can suggest changing the width of the appropriate field of the XamDataGrid. If I have misunderstood you in any way, please modified my sample application or provide me with your own isolated sample application that shows your issue.