Unplanned
Last Updated: 18 Aug 2021 11:37 by ADMIN
Manbir
Created on: 02 Aug 2021 10:16
Category: DataGrid
Type: Bug Report
0
DataGrid: Picker's selected item is reset when pick an item from another picker column
1. Create a data grid with 2 picker columns

2. Bind each picker column to a different ItemsSource

3. Add some empty rows to the Datagrid 

4. Start the app

5. Select a picker value from the first column

6. Open a second picker from the other column

 First picker's selection disappears


1 comment
ADMIN
Didi
Posted on: 18 Aug 2021 11:37

Workaround: 

Use TemplateColumn and add Picker inside the CellContentTemplate.

<telerikDataGrid:DataGridTemplateColumn HeaderText="Picker Column 1" SizeMode="Fixed">
                        <telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
                            <DataTemplate>
                                <Picker ItemsSource="{Binding BindingContext.Items, Source={x:Reference DataGrid}}""/>
                            </DataTemplate>
                        </telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
                    </telerikDataGrid:DataGridTemplateColumn>

                    <telerikDataGrid:DataGridTemplateColumn HeaderText="Picker Column 2" SizeMode="Fixed">
                        <telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
                            <DataTemplate>
                                <Picker ItemsSource="{Binding BindingContext.Items2, Source={x:Reference DataGrid}}"/>
                            </DataTemplate>
                        </telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
                    </telerikDataGrid:DataGridTemplateColumn>

 

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.