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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Inline editing after grouping

Thread ID:

Created:

Updated:

Platform:

Replies:

129700 Mar 29,2017 12:23 PM UTC Mar 30,2017 08:50 AM UTC ASP.NET MVC 1
loading
Tags: Grid
CLAUDIO RICCARDI
Asked On March 29, 2017 12:23 PM UTC

I have defined the following grid:

    @(Html.EJ().Grid<SlimHub.Models.Equipment>("EquipmentGrid")
          .Datasource(ds => ds.Json((IEnumerable<object>) ViewBag.dataSource).UpdateURL("NormalUpdate").InsertURL("NormalInsert").RemoveURL("NormalDelete").Adaptor(AdaptorType.RemoteSaveAdaptor))
          .EditSettings(edit => { edit.AllowAdding().AllowDeleting().AllowEditing(); })
          .Locale("it-IT")
          .ToolbarSettings(toolbar =>
          {
              toolbar.ShowToolbar().ToolbarItems(items =>
              {
                  items.AddTool(ToolBarItems.Add);
                  items.AddTool(ToolBarItems.Edit);
                  items.AddTool(ToolBarItems.Delete);
                  items.AddTool(ToolBarItems.Update);
                  items.AddTool(ToolBarItems.Cancel);
              });
          })
          .AllowResizing()
          .AllowTextWrap(true)
          .EnableHeaderHover()
          .AllowFiltering()
          .FilterSettings(filter => { filter.FilterType(FilterType.Excel); })
          .AllowGrouping()
          .Columns(col =>
          {
              col.Field("EquipmentId").HeaderText("ID").HeaderTextAlign(TextAlign.Center).IsPrimaryKey(true).TextAlign(TextAlign.Right).Width(5).Visible(false).Add();
              col.Field("EquipmentCode").HeaderText("Codice").HeaderTextAlign(TextAlign.Center).Width(5).Add();
              col.Field("EquipmentDesc").HeaderText("Descrizione").HeaderTextAlign(TextAlign.Center).Width(20).Add();
              col.Field("EquipmentDetails").HeaderText("Dettagli").HeaderTextAlign(TextAlign.Center).Width(20).Add();
              col.Field("UnitPrice").Format("{0:c2}").HeaderText("Prezzo Unitario").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Right).Width(5).Add();
              col.Field("EquipmentCategory").HeaderText("Categoria").EditType(EditingType.Dropdown).HeaderTextAlign(TextAlign.Center).Width(10).Add();
              col.Field("TechDocFileName").HeaderText("Scheda Tecnica").HeaderTextAlign(TextAlign.Center).Visible(false).Width(10).Add();
              col.Field("SecurityDocFileName").HeaderText("Scheda Sicurezza").HeaderTextAlign(TextAlign.Center).Visible(false).Width(10).Add();
              col.Field("isAV").HeaderText("AV").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isDE").HeaderText("DE").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isDB").HeaderText("DB").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isDI").HeaderText("DI").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isDR").HeaderText("DR").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isDS").HeaderText("DS").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isFO").HeaderText("FO").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isMO").HeaderText("MO").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.Field("isVA").HeaderText("VA").HeaderTextAlign(TextAlign.Center).TextAlign(TextAlign.Center).Width(5).EditType(EditingType.Boolean).Add();
              col.HeaderText("Scheda Tecnica").AllowFiltering(false).HeaderTextAlign(TextAlign.Center).Template(true).TemplateID("#TechDocColumnTemplate").Width(10).IsUnbound(true).Add();
              col.HeaderText("Scheda Sicurezza").AllowFiltering(false).HeaderTextAlign(TextAlign.Center).Template(true).TemplateID("#SecurityDocColumnTemplate").IsUnbound(true).Width(10).Add();
              col.HeaderText("Gestione").AllowFiltering(false).Commands(command =>
              {
                  command.Type("Dettagli")
                      .ButtonOptions(new Syncfusion.JavaScript.Models.ButtonProperties()
                      {
                          ContentType = ContentType.ImageOnly,
                          PrefixIcon = "fa fa-pencil-square-o",
                          Click = "onDetailsClick"
                      }).Add();
              }).IsUnbound(true).Width(10).Add();
          })
          .ClientSideEvents(eve => { eve.ActionComplete("complete").ActionBegin("begin").EndEdit("endEdit").EndAdd("endAdd"); })
          )

When the grid is loaded, everything is ok.
If I group, for example, the Category column and then I double click on the EquipmentDesc for inline modification, the content of the textbox changes its value assuming one of another row.

If I remove grouping everything is ok.

Is inline editing not allowed after grouping?

Tnahks

Claudio

Jayaprakash Kamaraj [Syncfusion]
Replied On March 30, 2017 08:50 AM UTC

Hi Claudio, 

Thank you for contacting Syncfusion support. 

We have grouping with inline editing support. We have created a sample with your code example but we were unable to reproduce the issue at our end. Please share the following information to serve you better    
1.       Issue replication procedure   
2.       Share the Full Grid rendering code example both client and server side. 
3.       Please open the console window in browser and check whether any script error throws. 
4.       Is there any script error or exception thrown in your project? If so, attach the screenshot of your stack trace.    
5.       Share the video to show the issue. 
6.       Essential studio and browser version details. 
7.       An issue reproducing sample if possible or hosted link or replicate the issue in the attached sample.   


Regards, 

Jayaprakash K. 


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.

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

;