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

Column Visible = false ignored after CRUD insert

Thread ID:

Created:

Updated:

Platform:

Replies:

151037 Jan 28,2020 07:35 PM UTC Jan 29,2020 02:31 PM UTC ASP.NET Core - EJ 2 1
loading
Tags: DataGrid
Patrick King
Asked On January 28, 2020 07:35 PM UTC

I have the below datagrid.  Using CRUD insert, when the list is added to, it appears the visible=false fields are no longer set to visible=false.  I do not have this problem on update, only insert.  If I remove visible=false all works fine. 



        <ejs-grid id="Grid" allowtextwrap="true" allowSelection="true" allowSorting="true" toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" allowPaging="true" actionBegin="actionBegin">
            <e-grid-editSettings allowAdding="true" allowDeleting="true" allowEditing="true" mode="Dialog"></e-grid-editSettings>
            <e-grid-selectionsettings mode="Row" enableToggle="false"></e-grid-selectionsettings>
            <e-grid-textwrapsettings wrapmode="Header" />
            <e-data-manager json="@ViewBag.Dist" adaptor="RemoteSaveAdaptor" insertUrl="/Admin/InsertDist" updateUrl="/Admin/UpdateDist" removeUrl="/Admin/RemoveDist"></e-data-manager>
              <e-grid-columns>
                        <e-grid-column field="ListName" headerText="List" isPrimaryKey="true" width="20"></e-grid-column>
                        <e-grid-column field="ProdLine" headerText="PL" width="10"></e-grid-column>
                        <e-grid-column field="EventTrig" headerText="Trigger"foreignKeyField="Trig" foreignKeyValue="Trig" dataSource="@ViewBag.Trig"  width="25"></e-grid-column>
                        <e-grid-column field="UserGroup" headerText="Destination" foreignKeyField="GroupName" foreignKeyValue="GroupName" dataSource="@ViewBag.UserGroup" width="25"></e-grid-column>
                        <e-grid-column field="Stat_From" headerText="From" foreignKeyField="Status" foreignKeyValue="Status" dataSource="@ViewBag.Status" width="25"></e-grid-column>
                        <e-grid-column field="Stat_To" headerText=" To " foreignKeyField="Status" foreignKeyValue="Status" dataSource="@ViewBag.Status" width="25"></e-grid-column>
                        <e-grid-column field="Interval" headerText="TM" width="10"></e-grid-column>
                        <e-grid-column field="TimeFrame" headerText="H/D" width="10"></e-grid-column>
                        <e-grid-column field="Subject" visible="false" ></e-grid-column>
                        <e-grid-column field="Body" visible="false" width="200"></e-grid-column>
                    </e-grid-columns>
        </ejs-grid>

Before Insert

After insert

Dhivya Rajendran [Syncfusion]
Replied On January 29, 2020 02:31 PM UTC

Hi Patrick, 
  
Thanks for contacting Syncfusion support. 
  
Query : Using CRUD insert, when the list is added to, it appears the visible=false fields are no longer set to visible=false.  I do not have this problem on update, only insert.  If I remove visible=false all works fine. 
 
We have validated the provided information and code example. Based on the code example, we have created a sample and tried to reproduce the problem but we are unable to reproduce the reported problem at our end. We have attached a sample for your reference. please refer the sample in the below link. 
 
 
If you still get the same problem, please get back to us with following details that will helpful for us to validate and provide a better solution as soon as possible. 
 
      1. In your code you are bound the actionBegin event. did you customize anything here, share the full grid code example .   
      2. Share the video demonstration of the reported problem. 
      3. Try to reproduce the reported problem in the given sample or share the issue reproduced sample. 
      4. Did you called refresh or refreshCoumns method anywhere? 
 
Regards, 
R.Dhivya 


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