Error Show choose column
Hi Truong,
Greetings from Syncfusion.
We have prepared a sample as per your shared code snippet. But we could not able to replicate the reported issue at our end. Kindly refer the below sample for additional information.
So for further validation kindly share us the below details from your end.
- Whether you are using Blazor server or WASM application.
- The Nuget version used at your end.
- The way you have referred scripts in your application
- Customized styles if any?
- Entire Grid code snippet.
- Video demonstration of the issue.
- If possible kindly share us a simple issue replicating sample at your end.
The above requested details would be very helpful for us to validate the reported issue at our end.
Regards,
Monisha
i run is error!
i using Blazor Webassembly , nuget 6.0.20
code is here:
var Tool = (new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel", "Search", "ColumnChooser", "Print", "ExcelExport" });
<SfGrid @ref="Grid" DataSource="@VatTus" TValue="TaskDto" AllowSelection="true" AllowPaging="true" AllowFiltering="true" ShowColumnChooser="true" AllowExcelExport="true" Toolbar=@Tool @onkeydown="@KeyDown">
<GridEvents OnActionBegin="ActionBeginHandler" OnActionComplete="ActionCompleteHandler" TValue="TaskDto"></GridEvents>
<GridColumnChooserSettings Operator="Operator.Contains"></GridColumnChooserSettings>
<GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true" Mode="EditMode.Normal"></GridEditSettings>
<GridSelectionSettings Type="SelectionType.Multiple"></GridSelectionSettings>
<GridFilterSettings Mode="FilterBarMode.Immediate" ImmediateModeDelay="300"></GridFilterSettings>
<GridPageSettings PageCount="10" PageSizes="true"></GridPageSettings>
<GridColumns>
<GridColumn Type="ColumnType.CheckBox" Width="50"></GridColumn>
<GridColumn Field=@nameof(TaskDto.VatTu_Id) HeaderText="ID" TextAlign="TextAlign.Center" Width="20%" IsPrimaryKey="true"></GridColumn>
<GridColumn Field=@nameof(TaskDto.VatTu_ud) HeaderText="Code" TextAlign="TextAlign.Center" Width="30%"></GridColumn>
<GridColumn Field=@nameof(TaskDto.VatTu_nm) HeaderText="Thông tin" TextAlign="TextAlign.Center" Width="70%"></GridColumn>
<GridColumn Field=@nameof(TaskDto.DonViTinh) HeaderText="Đơn vị tính" TextAlign="TextAlign.Left" Width="15%"></GridColumn>
</GridColumns>
</SfGrid>
Hi Truong,
We could not able to replicate the reported issue with the shared details. Please check the attached sample for your reference.
We suspect that the issue might be due to the incorrect script reference. So please upgrade to our latest Nuget version and comment out all the scripts used at your end and try using the below highlighted script.
Also try clearing bin, obj and Nuget cache and check the reported issue at your end.
|
<link rel='nofollow' href=https://cdn.syncfusion.com/blazor/22.2.5/styles/bootstrap5.css rel="stylesheet" /> <script src=https://cdn.syncfusion.com/blazor/22.2.5/syncfusion-blazor.min.js type="text/javascript"></script> |
If you still face issue then kindly share us a simple issue replicating sample or try to reproduce the reported issue on the below attached sample.
Attachment: DataGrid_901737a3.zip
ok i run success when i copy link
Hi Truong,
We are glad to hear that the reported issue has been resolved at your end. Kindly get back to us if you have further queries. As always we will be happy to help you.
- 5 Replies
- 2 Participants
-
TT t truong
- Jul 26, 2023 08:29 AM UTC
- Jul 31, 2023 03:29 AM UTC