Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

I am using DataGridComboBoxColumn to dynamically select sizes for my material.  Each material type has a different set of sizes, that are obtained using ItemSourceSelector.

This works fabulously in old xamarin code, but in maui, not so good.

the first time a dropdown button is clicked,  it will show the correct list.

On the second click, on another row, (or any subsequent click) the dropdown will show the contents of the first click, and will have appended the values intended for the second click.  

Subsequent clicks keep adding the values, rather than replacing them with row specific values.  Methinks you guys forgot to clear the list before appending the values.

my ItemsSourceSelector looks like this, and works a charm...(in xamarin)

public class MaterialDimensionSelector : IItemsSourceSelector

{

    public IEnumerable GetItemsSource(object record, object dataContext)

    {

        if (record == null) {

            return null;

        }

        Guid lookupId = Guid.Empty;

        if (record is TapFormOrderMaterial tf)

        {

            lookupId = tf.MaterialId;

        }

        if (record is OrderMaterial om)

        {

            lookupId = om.MaterialId;

        }

        var result = ListValues.MaterialDimensions.Where(t => t.MaterialId == lookupId).OrderBy(t=>t.SortOrder).Select(t=>t.DimensionDescription).ToList();

        return result;

    }

}