We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

AllowEditing="false" appears not to work for all columns if the first column is set to "true"

It appears that in an EjsGrid with AllowEditing set to true (through GridEditSettings), if the first column is left empty or set to AllowEditing="true", all following columns become editable, even if they have AllowEditing="false". Things appear to function correctly if the first column is set to AllowEditing="false".

Here's an example of my code that does not work (all columns, including the last, are editable):
                <EjsGrid ID=@($"CardOnFileGrid-{this.version}") Toolbar="this.toolbarItems" TValue="CardOnFileModel" @ref="this.cofGrid"
                         ShowColumnChooser="true" AllowPaging="true" AllowReordering="false" AllowResizing="true" AllowSorting="true" EnablePersistence="false"
                         Height="100%" Width="100%">
                    <EjsDataManager Url=@this.gridUrl CrossDomain="true" Adaptor="Adaptors.UrlAdaptor"></EjsDataManager>
                    <GridPageSettings PageSize="20" PageSizes="this.pageSizes" />
                    <GridFilterSettings Type="Syncfusion.EJ2.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
                    <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
                    <GridSelectionSettings CheckboxOnly="true"></GridSelectionSettings>
                    <GridColumns>
                        <GridColumn Field=@nameof(CardOnFileModel.Description) HeaderText="Description" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="true">
                    [...]
                        <GridColumn Field=@nameof(CardOnFileModel.Amount) HeaderText="Amount" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="false"></GridColumn>
                        <GridColumn Field=@nameof(CardOnFileModel.Status) HeaderText="Status" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="false"></GridColumn>
                    </GridColumns>
                </EjsGrid>
If the order is changed around as such, then all of the AllowEditing sections appear to work:

                <EjsGrid ID=@($"CardOnFileGrid-{this.version}") Toolbar="this.toolbarItems" TValue="CardOnFileModel" @ref="this.cofGrid"
                         ShowColumnChooser="true" AllowPaging="true" AllowReordering="false" AllowResizing="true" AllowSorting="true" EnablePersistence="false"
                         Height="100%" Width="100%">
                    <EjsDataManager Url=@this.gridUrl CrossDomain="true" Adaptor="Adaptors.UrlAdaptor"></EjsDataManager>
                    <GridPageSettings PageSize="20" PageSizes="this.pageSizes" />
                    <GridFilterSettings Type="Syncfusion.EJ2.Blazor.Grids.FilterType.Menu"></GridFilterSettings>
                    <GridEditSettings AllowAdding="true" AllowEditing="true" AllowDeleting="true"></GridEditSettings>
                    <GridSelectionSettings CheckboxOnly="true"></GridSelectionSettings>
                    <GridColumns>
                        <GridColumn Field=@nameof(CardOnFileModel.Status) HeaderText="Status" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="false"></GridColumn>
                        <GridColumn Field=@nameof(CardOnFileModel.Description) HeaderText="Description" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="true">
                    [...]
                        <GridColumn Field=@nameof(CardOnFileModel.Amount) HeaderText="Amount" TextAlign="TextAlign.Left" AutoFit="true" AllowEditing="false"></GridColumn>
                    </GridColumns>
                </EjsGrid>

1 Reply

LR Logesh Rajappa Syncfusion Team January 17, 2020 11:11 AM UTC

Hi Ricky, 
 
Thanks for contacting Syncfusion support 
 
Query: my code that does not work (all columns, including the last, are editable) 
 
We tried to reproduce the reported issue, but the grid editing behaves appropriate to the configuration. So we would like to get more information about the issue. Also please find the below working sample for your reference. 
 
 
Regards, 
Logesh R 


Loader.
Live Chat Icon For mobile
Up arrow icon