We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridMultiColumnDropDownList missing ItemsSourceSelector

Hi,
I'm missing ItemsSourceSelector in GridMultiColumnDropDownList. I need to filter items source values based on some other row value. (something you have in your docs - filter cities by country).
Is there some other way how to do it?

Thanks
Ondřej Svoboda 

4 Replies

SP Shobika Palani Syncfusion Team June 21, 2019 01:30 AM

Hi Ondrej, 

Thank you for contacting Syncfusion Support. 

We have analyzed your query to have ItemsSourceSelector behavior for GridMultiDropDownList column type. Currrently we do not have support to achieve the behavior. We have already logged this requirement as a feature request to our database. You can now track the status of the reported feature with the below link 


Also we have scheduled this feature request to our upcoming release – 2019 Volume 2 which is expected to be available by end of June 2019.

Please let us know if you have any other questions on this.
 
 
Regards, 
Shobika. 



OS Ondrej Svoboda June 21, 2019 03:02 AM

OK, in the mean time I've solved it using advice provided here: https://www.syncfusion.com/forums/131482/how-to-correctly-manage-filtered-combo-boxes-on-sfdatagrid.


JP Jagadeesan Pichaimuthu Syncfusion Team June 23, 2019 10:25 PM

Hi Ondrej, 
 
Thanks for your update. 
 
As we promised earlier, we have scheduled this feature request to our upcoming release – 2019 Volume 2 which is expected to be available by end of June 2019. 
 
We appreciate your patience until then. 
 
Regards, 
Jagadeesan 



FP Farjana Parveen Ayubb Syncfusion Team June 28, 2019 02:48 AM

 Hi Ondrej,

We are glad to announce that our Essential Studio 2019 Volume 2 Beta Release version 17.2.0.28 is rolled out with the mentioned feature “ItemSourceSelector for GridMultiColumnDropDownList” and is available for download under the following link. 
  
Please refer the below code example and sample location, 
 
C#: 
    public class ItemsSourceSelector : IItemsSourceSelector 
    { 
        public IEnumerable GetItemsSource(object record, object dataContext) 
        { 
            if (record == null) 
                return null; 
  
            var orderinfo = record as OrderDetails; 
            var countryName = orderinfo.ShipCountry; 
  
            var viewModel = dataContext as ViewModel; 
  
            //Returns ShipCity collection based on ShipCountry. 
            if (viewModel.ShipCities.ContainsKey(countryName)) 
            { 
                ObservableCollection shipCities = null; 
                viewModel.ShipCities.TryGetValue(countryName, out shipCities); 
                return shipCities.ToList(); 
            } 
            return null; 
        } 
    } 
  
XAML: 
<Window.Resources> 
        <local:ItemsSourceSelector x:Key="itemSourceSelector" /> 
    Window.Resources> 
  
<syncfusion:GridMultiColumnDropDownList AllowEditing="True"  HeaderText="ShipCity" DisplayMember="ShipCityName" 
                                        ItemsSourceSelector="{StaticResource itemSourceSelector}" 
                                        MappingName="ShipCityID" ValueMember="ShipCityID"/> 
  
  
Note: This issue fix will be included in our main release as well, which is expected to be available by mid of July 2019. 
  
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards,
Farjana Parveen A 


Loader.
Live Chat Icon For mobile
Up arrow icon