Focus on GridTemplateColumn cell doesn't set selected row and leaves previous cell in focus state


Column Name is of type GridTemplateColumn


Focus (and edit) for name.
Notice: Row is not set


Focus Salary cell (GridNumericColumn)
Notice: row is set.


Focus set to Name cell 'Lucy'.
Notice: Previous salary cell and row remain set.

Expected behavior: Focus should go only to 'Lucy'. Active row/cell should change.



2 Replies

AK Arthur Kater March 29, 2022 04:10 AM UTC

Found out this happens only when there is a CellTemplate without also implementing the DataTemplate.


So, the correct way is to implement both the CelTemplate and the DataTemplate.


for example: 


<sf:GridTemplateColumn.CellTemplate>

     <DataTemplate>

          <TextBlock Text="{x:Bind Name, Mode=OneWay}" />

     </DataTemplate>

</sf:GridTemplateColumn.CellTemplate>

<sf:GridTemplateColumn.EditTemplate>

     <DataTemplate>

          <TextBlock Text="{x:Bind Name, Mode=TwoWay}" />

     </DataTemplate>

                                        </sf:GridTemplateColumn.EditTemplate>



VS Vijayarasan Sivanandham Syncfusion Team March 29, 2022 05:53 AM UTC

Hi Arthur Kater,


We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊.


Regards,

Vijayarasan S



Loader.
Up arrow icon