This is a migrated thread and some comments may be shown as answers.

SelectionChanged event not firing on more than 1 selection

6 Answers 760 Views
MultiColumnComboBox
This is a migrated thread and some comments may be shown as answers.
gordon
Top achievements
Rank 1
gordon asked on 22 Feb 2019, 10:14 PM

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

Sort by
0
Accepted
Vera
Telerik team
answered on 25 Feb 2019, 09:34 AM
Hello Gordon,

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.
0
gordon
Top achievements
Rank 1
answered on 25 Feb 2019, 09:34 PM

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>

 

0
gordon
Top achievements
Rank 1
answered on 25 Feb 2019, 11:10 PM
Never mind.  I figure out the problem.  Tags and SelectedTags were different instances of database entities, i.e. SelectedTags was not populated from Tags.
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 25 Jun 2019, 09:21 AM

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>

 

0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 25 Jun 2019, 09:22 AM
please check the attached image 
0
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 28 Oct 2019, 01:12 PM
how to filter RadMultiComboBox In "Contains" format... ?
Tags
MultiColumnComboBox
Asked by
gordon
Top achievements
Rank 1
Answers by
Vera
Telerik team
gordon
Top achievements
Rank 1
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or