jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Double-click to edit the cell and SelectedRow selection combo
This topic contains 5 replies, has 3 voices, and was last updated by Hristo 4 years, 5 months ago.
-
Author
-
Clicking any cell in this example selects the entire row:
https://www.jqwidgets.com/angular/angular-grid/#https://www.jqwidgets.com/angular/angular-grid/angular-grid-rowselection.htmNow, if I make the grid editable by setting the
[editable]="true"
clicking the cell selects the row, but the cell that was clicked enters the editing state (the cell text is highlighted). I want the cell to enter the editing mode only when the user double-click the cell.
So, I go ahead and set the grid propertyeditmode
todblclick
.
Unfortunately, it doesn’t make any difference as a single click on a cell still turns the cell into to editable cell.Is it possible to have the grid selection mode to be
multiplecellsadvanced
orsinglerow
and double-clicking to enter the editing mode of the cell?It turns that we have to use the single quotes inside of the double quotes wen we set the
dblclick
property.
Setting the grid with:<jqxGrid #myGrid [editable]="true" [editmode]="'dblclick'" [selectionmode]="'multiplerowsextended'" > </jqxGrid>
configured the grid with row selection and double-click to enter the cell editing.
But there is now another problem. Double-clicking the cell located in the row 0, selects the cell in the row 1.
Double clicking the cell in row 1 turns the cell in row 2 editable and so on. Looks like the cell index used is off by one. If it is a bug how long it would take to fix it?Removing the
[showfilterbar]="true"
from the grid definition has solved the issue! Most likely, with theshowfilterbar
enabled it becomes an index 0 offsetting all other row indexes by one. That could result to a cell editing row number mismatch.Hello jqwidgetuser,
Thank you for the feedback and for the details.
I will create a work item for this case.Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.comHi Any idea if the above was already fixed? as I intend to use the showfilterbar a lot Thanks… I downloaded the latest version of jqw and using the jQuery
Hello pincusgl,
The work item mentioned that this is fixed.
I try to create one simple example with theshowfilterbar
property and it seems to work fine.
Below you could look at the code snippet that I try:<jqxGrid [selectionmode]="'checkbox'" [source]="source" [theme]="'material'" [autoheight]="true" [pageable]="true" [altrows]="true" [filterable]="true" [showfilterbar]="true" [sortable]="true" [columns]="columns" #grid> </jqxGrid>
Best Regards,
Hristo HristovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.