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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

150680 Jan 15,2020 11:06 PM UTC Jan 17,2020 11:11 AM UTC Blazor 1
loading
Tags: Grid
Ricky Brooks
Asked On January 15, 2020 11:06 PM UTC

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>

Logesh Rajappa [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon