Resizing with [allowRowDragAndDrop]='true' is problematic

Hi,
I am using Grid control in Angular and i want to resize my columns with drag and drop option. Resizing works fine (as it should) without [allowRowDragAndDrop] set to true. When i have [allowResizing]='true' and [allowRowDragAndDrop]='true'
<ejs-grid #normalgrid id='Normalgrid' [dataSource]='newDocumentationControl.protocolDocumentationControlElements' [allowResizing]='true' [allowRowDragAndDrop]='true' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar' [allowFiltering]='true' [filterSettings]='filterOption' [allowSorting]='true'>
                  <e-columns>
                      <e-column field='documentName' headerText='Nazwa dokumentu' textAlign='Left' isPrimaryKey='true' clipMode='EllipsisWithTooltip' width='320'></e-column>
                      <e-column field='state' headerText='Stan' textAlign='Left' editType='dropdownedit' [edit]='stateParams' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='creationDate' headerText='Data wykonania' textAlign='Center' editType='datepickeredit' [format]='formatoptions' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='expirationDate' headerText='Data ważności' textAlign='Center' editType='datepickeredit' [format]='formatoptions' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='remarksAndObservations' headerText='Uwagi' textAlign='Left' clipMode='EllipsisWithTooltip' width='400'></e-column>                      
                  </e-columns>
                </ejs-grid>
in my grid, resizing is a little bit illogical and hard to control. Sometimes I am not changing the size of the column but only sliding it from left to right.

I am looking forward to hearing from You,
Karol Lasek.

7 Replies

KA Karol July 14, 2020 08:17 AM UTC

Hi,
I am trying to resolve this problem and maybe this happened because i am using <ejs-grid> in <e-accorditem>.
Full code looks like this:

<e-accordionitem expanded='true'>
              <ng-template #header>
                <div>
                  <h3>Elementy</h3>
                </div>
              </ng-template>
              <ng-template #content>
                <div class="row">
                  <div class="col-3 mb-2 pt-1">
                    <ejs-dropdownlist id='ddlElementTemplates' [dataSource]='elementsTemplates' [fields]='templatesDropdownFields'
                      placeholder='Wybierz szablon elementów' (select)="onProtocolTemplateSelect($event)">
                    </ejs-dropdownlist>
                  </div>
                  <div class="col-auto">
                    <button class="btn btn-info" [disabled]="submitInProgress"
                      (click)="onLoadProtocolTemplate()">Załaduj</button>
                  </div>
                  <div class="col-auto">
                    <button class="btn btn-secondary" [disabled]="submitInProgress"
                    (click)="onInfoClick(modal)"><i class="fas fa-info-circle"></i> Info</button>
                  </div>
                </div>
                <ejs-grid #normalgrid id='Normalgrid' [dataSource]='newDocumentationControl.protocolDocumentationControlElements' [allowResizing]='true' allowPaging='true' [pageSettings]='pageSettings' [editSettings]='editSettings' [toolbar]='toolbar' [allowFiltering]='true' [filterSettings]='filterOption' [allowSorting]='true'
                (actionBegin)="actionBegin($event)" (actionComplete)="actionComplete($event)">
                  <e-columns>
                      <e-column field='orderId' headerText='Nr' textAlign='Center' isPrimaryKey='true' clipMode='EllipsisWithTooltip' width='60' defaultValue='0'></e-column>
                      <e-column field='documentName' headerText='Nazwa dokumentu' textAlign='Left' clipMode='EllipsisWithTooltip' width='320'></e-column>
                      <e-column field='state' headerText='Stan' textAlign='Left' editType='dropdownedit' [edit]='stateParams' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='creationDate' headerText='Data wykonania' textAlign='Center' editType='datepickeredit' [format]='formatoptions' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='expirationDate' headerText='Data ważności' textAlign='Center' editType='datepickeredit' [format]='formatoptions' clipMode='EllipsisWithTooltip' width='100'></e-column>
                      <e-column field='remarksAndObservations' headerText='Uwagi' textAlign='Left' clipMode='EllipsisWithTooltip' width='400'></e-column>                     
                  </e-columns>
                </ejs-grid>
                <br>
                <div class="row">
                  <div class="col-auto pt-2">
                    <label class="text-primary">Zapisz powyższy układ elementów jako szablon: </label>
                  </div>
                  <div class="col-auto">
                    <input #newProtocolTemplateName class="form-control" type="text" placeholder="Nazwa szablonu">
                  </div>
                  <div class="col-auto">
                    <button class="btn btn-success" [disabled]="submitInProgress"
                      (click)="onSaveProtocolTemplate(newProtocolTemplateName.value)">Zapisz nowy szablon</button>
                  </div>
                  <div class="col-auto pt-2">
                    <label class="text-primary">lub</label>
                  </div>
                  <div class="col-auto">
                    <button class="btn btn-info" [disabled]="submitInProgress"
                      (click)="onUpdateProtocolTemplate()">Zaktualizuj obecny szablon</button>
                  </div>
                </div>
              </ng-template>
            </e-accordionitem>

And of course <e-accorditem> is inside <e-accordionitems> and <ejs-accordion>.
In Your example https://stackblitz.com/edit/angular-rowdd?file=app.component.html when i add [allowResizing]='true', everything works fine but in my project inside accorditems resizing doesn't work as it should.


VS Vignesh Sivagnanam Syncfusion Team July 14, 2020 02:32 PM UTC

Hi Karol  
  
Greetings from Syncfusion support 
  
We have validated your query and checked the reported problem by creating a sample based on your shared code snippets. But we could not reproduce the reported problem at our end. Find the below sample for your reference. 
  
  
Screenshot for your reference: 
 
  
We need some additional details to validate the reported issue at our end. So kindly share the following details.  
  
  1. Share your exact replication procedure of issue that you facing.
  2. Please share your issue scenario in video demonstration format.
  3. If possible try to reproduce the faced issue in the provided sample.
  4. Share the Hosted link for the sample.
  
Above requested details will be helpful for us to reproduce and analyze the reported issue at our end and provide solution as soon as possible.  
  
Regards, 
Vignesh Sivagnanam. 



KA Karol July 14, 2020 08:07 PM UTC

Hi,
Thanks for your response. Your sample works fine and i would like to see it works on my side. The problem is that in the end i've just copied all code from Your sample to my component and it  didn't work as it should (documented on first video in zip). When i remove DragAndDropOption from ejs-grid; resizing works fine (documented on second video in zip).
I was trying to reproduce the faced issue in the provided sample but there it just work.

Attachment: first_b220f77e.zip


KA Karol July 14, 2020 08:13 PM UTC

Second video in zip --> ejs-grid without [allowRowDragAndDrop]='true' but i really would like to use [allowRowDragAndDrop]='true' with
[allowResizing]='true'
It's look like next column is responsible for resizing the previous one.

Attachment: second_3dea0c21.zip


BS Balaji Sekar Syncfusion Team July 15, 2020 12:39 PM UTC

Hi Karol,   
   
We have created a new incident under your Direct trac account to follow up with this query. We suggest you to follow up with the incident for further updates. Please log in using the below link.      

   
Regards,   
Balaji Sekar 



KA Karol July 15, 2020 12:50 PM UTC

Hi,
Thanks for creating an incident for me. I will follow up with the incident for further updates.

Best regards,
Karol Lasek


BS Balaji Sekar Syncfusion Team July 16, 2020 10:45 AM UTC

Hi Karol, 
 
You are welcome. 
 
You can follow the incident for further updates. 
 
Regards, 
Balaji Sekar 


Loader.
Up arrow icon