Hi,
When I filter data by column and then edit a value in some row, the filter is automatically cleared.
I use IQueryable Datagrid.
Could someone give me some idea ?
Thanks!
A.
Hi,
When I filter data by column and then edit a value in some row, the filter is automatically cleared.
I use IQueryable Datagrid.
Could someone give me some idea ?
Thanks!
A.
Hi @korchev
I'm not sure what is different, please, look the screenshots :
Just when I press edit button the selection is clear.
Thanks,
A.
Unfortunately I can't determine the cause from the screenshots. It looks however that the entire grid is empty. Check what the edit button is doing.
Hi @korchev ,
The datagrid is not empty but in the screenshot you only see the last columns and they are.
I don't know how can I show you better the issue, the limit of screenshot I can send you is only 2 and the maximun size for video is only 4 MB (too little).
A.
Hi @korchev,
Please, check out the piece of code to define datagrid :
<RadzenDataGrid @ref="ordersGrid" AllowFiltering="true" AllowPaging="true" AllowSorting="true" AllowColumnResize="true" FilterCaseSensitivity="FilterCaseSensitivity.CaseInsensitive"
EditMode="DataGridEditMode.Single"
ExpandMode="DataGridExpandMode.Single"
Data="@(orders.Where(o =>
(System.Convert.ToInt32(o.Status) < 66) [...])"
TItem="CustomerOrderAnalysis"
SelectionMode="DataGridSelectionMode.Multiple"
@bind-Value=@selectedOrders
RowUpdate="@OnUpdateRow"
ColumnWidth="200px">
Any idea about it ? I'm really stucked ...
Thanks,
A.
This could be a problem. Try not setting the Data property to an expression like this - use a separate field or property for that.
@korchev What do you mean ? I use an expression like this to filtering data using multiple dropdowns. Is there another way to do that ? I do not know how can I implement it using a separate field or property.
Please, could you give me some idea ?
You can check this implementation: radzen-blazor/DashboardPage.razor at master · radzenhq/radzen-blazor · GitHub
Basically handle the change event of the dropdowns and assign a new field to which the DataGrid is bound to (in this case filteredIssues).