I noticed that the SelectionChanged event fires the first time a selection is made, but not on subsequent selections.
1) Start with no selections
2) Select an item. SelectionChanged gets fired
3) Select more items. SelectionChanged does not fire.
6 Answers, 1 is accepted
This problem should be resolved with Q1 2019 SP1. If you are using a previous version, I would suggest downloading the latest SP and giving it a try. In case you still experience a problem, I would like to ask you to open a new support ticket and to attach a sample project reproducing the issue.
Regards,
Vera
Progress TelerikWant to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Hello Vera,
Updating to Q1 2019 fixed my issue. Thanks.
I have one more. I'm following the example in WPF Controls Examples, namely the Products MultiColumnComboBox. I'm binding the selected items, as in the example. If I start with no selected items, the MCCB works as I'd expect. But, if I have selected items, they aren't selected when I click on the combobox. I've attached a screenshot. Notice that "foo" and "bar" are selected, but not in the grid view. Here's the xaml. MultiColumnComboBoxSelectedItemsBehavior is just a rename of SelectedItemsBehavior in you sample.
<telerik:RadMultiColumnComboBox x:Name="tagsCombo" Grid.Row="1" Margin="5" MaxHeight="105" KeepDropDownOpen="False"
NullText="Select the tags for these fonts..."
CloseDropDownAfterSelectionInput="True"
AutoCompleteMode="Search" SelectionMode="Multiple"
DropDownMinHeight="200"
DropDownHeight="350"
DropDownWidth="400"
DropDownMinWidth="{Binding RelativeSource={RelativeSource Self}, Path=ActualWidth}"
DropDownMaxWidth="500"
uibehaviors:MultiColumnComboBoxSelectedItemsBehavior.SelectedItems="{Binding SelectedTags}"
DisplayMemberPath="Name">
<telerik:RadMultiColumnComboBox.ItemsSourceProvider>
<telerik:GridViewItemsSourceProvider ItemsSource="{Binding Tags}" AutoGenerateColumns="False">
<telerik:GridViewItemsSourceProvider.Columns>
<telerik:GridViewSelectColumn Width="35" />
<telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}" />
</telerik:GridViewItemsSourceProvider.Columns>
</telerik:GridViewItemsSourceProvider>
</telerik:RadMultiColumnComboBox.ItemsSourceProvider>
</telerik:RadMultiColumnComboBox>
hiii when i am selecting an item from RadMultiColumnComboBox in RadGridview..the selected item getting null after scroll...whats the reason behind this ?
Item Source
---------------------------
public class StatusList : List<PurchaseItemList>
{
public StatusList()
{
//Data.EmployeeListUsingLinq();
//new List<DataRow>(MainWindow.pdAll.Tables[0].Select());
AddRange((from DataRow row in MainWindow.pdAll.Tables[0].Rows
select new PurchaseItemList
{
product_name = row["product_name"].ToString(),
product_code = row["product_code"].ToString(),
alternate_name = row["alternate_name"].ToString(),
product_Id = Convert.ToInt64(row["product_Id"].ToString()),
}).ToList());
}
}
<
telerik:GridViewDataColumn
Width
=
"200"
IsReadOnly
=
"True"
IsFilterable
=
"False"
IsGroupable
=
"False"
DataMemberBinding
=
"{Binding ourItemName, Mode=TwoWay}"
CellStyle
=
"{StaticResource GridViewCellStyle}"
Header
=
"Item Name"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadMultiColumnComboBox
AutoCompleteMode
=
"Search"
Tag="{Binding product_Id,Source={StaticResource
StatusList}}"
SelectedItem
=
"{Binding ourItemName,Source= {StaticResource StatusList}}"
DisplayMemberPath
=
"product_name"
SelectedValue
=
""
SelectedValuePath
=
"product_Id"
DropDownWidth
=
"400"
SelectionChanged
=
"RadMultiColumnComboBox_SelectionChanged"
GotFocus
=
"RadMultiColumnComboBox_GotFocus"
>
<
telerik:RadMultiColumnComboBox.ItemsSourceProvider
>
<
telerik:GridViewItemsSourceProvider
ItemsSource
=
"{StaticResource StatusList}"
/>
</
telerik:RadMultiColumnComboBox.ItemsSourceProvider
>
</
telerik:RadMultiColumnComboBox
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
</
telerik:GridViewDataColumn
>