Dialogedit - select all

Hi - I have a grid, where i want to use either dialog-edit for many rows or inline-edit for single rowedits. 

When I choose the dialog-edit I have a problem with selecting all rows.

In the attched project, go to 'multiselect data' page. select all from headerfield checkbox and then press edit : No dialogbox - this must bee an error in the grid?

If I click a row checkbox and then press the edit toolbar buton everything works as expected, but first page-load and then headercheckbox does not trigger a dialogbox. 


Can you fix the bug or do you have an suggestion for a workarround? 



Attachment: multiselect_with_dialogbox_d82189e5.zip

3 Replies

VN Vignesh Natarajan Syncfusion Team December 3, 2021 06:34 AM UTC

Hi Soren,  
 
Thanks for contacting Syncfusion support.  
 
Query: “select all from headerfield checkbox and then press edit : No dialogbox - this must bee an error in the grid? 
 
We have analyzed your query and we would like to inform you that we do not have support for multiple row editing with Dialog edit type. Only one needs to be selected and based on that selected record only Edit dialog will show. We do not have support for multi row edit while using the dialog / normal edit model. Hence dialog is not shown when multiple records are selected. This is default behavior of the Grid not a bug.  
 
We are quite unclear about your requirement. So kindly share the more details about your requirements along with the following.  
 
  1. If all rows are selected, which record details you want to display in edit dialog?
  2. Share more details about your requirement.
  3. How you want to display edit dialog with multiple selected records.
  4. If possible share pictorial representation of your requirement with multiple selection.
 
Above requested details will be very helpful for us to validate the reported query at our end and provide solution as early as possible.  
 
Regards, 
Vignesh Natarajan 



SM Soren M December 3, 2021 10:56 AM UTC

HI Vignesh, until now I made single-edit with inline in a single cell and used the drag to multicell-edit, but this can only be used if the users makes a good filter and the correct rows are ordered under each other. Users have had issues with this.

 

Therefore I have made a new column with chechboxes so the users can choose the rows they want to have same values in one or more cells. Customers should set a new value in one cell in popup, resulting in changes to new value in the selected rows, in the corrected column.

 

 

If it is not possible out-of-the-box, then - How can I show the dialogbox with code? 

I have the toolbar-click event to 



VN Vignesh Natarajan Syncfusion Team December 4, 2021 04:38 AM UTC

Hi Soren,  
 
Thanks for sharing the requested details.  
 
Query: “Customers should set a new value in one cell in popup, resulting in changes to new value in the selected rows, in the corrected column. 
 
We understood your requirement and we would like to inform you that it is not possible to achieve your requirement using built in edit dialog of the Grid. So we suggest you to achieve your requirement by rendering a custom dialog when multiple records are selected and update the records externally using UpdateRowAsync method.  
 
We have modified the attached sample which can be downloaded from below. We have rendered a custom dialog with AutoComplete component similarly to GridEditSettings and update the record in the Grid.  
 
 
Please get back to us if you have further queries.    
 
Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon