Error Show choose column

has already.

and is result: 



5 Replies

MS Monisha Saravanan Syncfusion Team July 27, 2023 09:40 AM UTC

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.


Sample: https://blazorplayground.syncfusion.com/embed/VDhgtchGMvsPsDPr?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


So for further validation kindly share us the below details from your end.

     

  1. Whether you are using Blazor server or WASM application.
  2. The Nuget version used at your end.
  3. The way you have referred scripts in your application
  4. Customized styles if any?
  5. Entire Grid code snippet.
  6. Video demonstration of the issue.
  7. 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



TT t truong July 28, 2023 01:27 AM UTC

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>



MS Monisha Saravanan Syncfusion Team July 28, 2023 09:50 AM UTC


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


TT t truong replied to Monisha Saravanan July 28, 2023 09:55 AM UTC

ok i run success when i copy link 



MS Monisha Saravanan Syncfusion Team July 31, 2023 03:29 AM UTC

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.



Loader.
Up arrow icon