I have a error with grid when filter. when i no do the filter, I can put the focus in the filed and edit the value without problem, but when i filter and try to edit the second o other distinct to the first, throw a exception.
The code of grid is this:
<syncfusion:SfTextBoxExt x:Name="txtSearch" Grid.Column="0"
TextChanged="txtSearch_TextChanged" Watermark="Escriba texto a buscar..." VerticalAlignment="Center" ShowClearButton="True" />
<syncfusion:SfDataGrid x:Name="gvPersons" HorizontalContentAlignment="Center"
ScrollMode="Async" CanMaintainScrollPosition="True" LiveDataUpdateMode="AllowDataShaping"
AddNewRowPosition="Top" AddNewRowText="Inserte nueva persona"
AllowResizingColumns="True" AllowFiltering="True" ColumnSizer="Star"
AutoGenerateColumns="False" EditTrigger="OnTap" ShowRowHeader="True"
<syncfusion:SortColumnDescription ColumnName="name" SortDirection="Ascending"/>
<syncfusion:GridTextColumn MappingName="id" IsHidden="True" />
<syncfusion:GridTextColumn MappingName="name" HeaderText="Nombre" />
then the code of filter is this:
private void txtSearch_TextChanged(object sender, TextChangedEventArgs e)
gvPersons.SearchHelper.AllowFiltering = true;
finally the error is this:
System.InvalidOperationException: ''System.Windows.Documents.Run' no es un Visual ni un Visual3D.'
We are a little unclear about your replication procedure. We have prepared a sample based on our understanding and your code snippet, but we were unable to replicate the reported issue. Could you please share the exact replication procedure and error call stack along with the video illustrations?. This will be helpful for us to check on it and provide you with a solution at the earliest.
Please find the attached sample that we have prepared.
I have created a example, I'm working with C# WPF core, in the example, i create a database in sqlite, you can follow the next steps:
1 Run app
2 search merca
3 click on row mercadona
4 click on row mercafruta goyo
5 if it works, try to click on others rows
I attach screens
Thanks for contacting Syncfusion support.
The reported issue "SfTextBoxExt throws System.InvalidOperationException: 'System.Windows.Documents.Run' is not a Visual or Visual3D" in WPF is a known issue. We already fixed this issue. This fix will be included on May 9th, 2023. We appreciate your patience until then.
Kindly get the fixed Assembly and Nuget using the link provided below. If you require any further information, please do not hesitate to let us know.
Assembly version: 21.1.35
Please note that we have created this patch for version 21.1.35 specifically, to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.
Note: Please refer to the below link to apply the custom assembly
Note: Please clear the NuGet cache, before using the latest one.
Thanks for your patience.
We have included the fix in our latest weekly NuGet release v21.2.8 which is available for download ( https://www.nuget.org/ ). We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.