jQuery UI Widgets › Forums › Grid › Issue with multiplecellsadvanced
Tagged: Cell, column, enablebrowserselection, grid, jqxgrid, multiplecellsadvanced, percent, percentage, select, selection, width
This topic contains 6 replies, has 2 voices, and was last updated by mithilsrivastav 9 years, 11 months ago.
-
Author
-
Hi,
I am displaying a grid while allowing the user to select multiple cells at a time.
Am facing a problem where if I select a particular cell, the adjacent cell gets selected.
Please find the respective code below:selectionmode: ‘multiplecellsadvanced’,
source: dataadapter,
theme: theme,
editable: true,
autoheight: true,
pageable: true,
showfilterrow: true,
filterable: true,
sortable: true,
columnsmenu: false,
sorttogglestates: 1,
virtualmode: true,
clipboard: false,
rendergridrows: function(obj)
{
return obj.data;
},Is this an issue with the combination of properties that I am using?
Regards,
Mithil.Hi Mithil,
Please make sure you are using the latest version of jQWidgets (3.7.1). As you can see from the demo Cells Selection (with the “multiple cells advanced” option selected), there is no such issue in the current version.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
I am using the latest version (3.7.1).
I have created a fiddle for your reference:
http://jsfiddle.net/4zAHJ/121/Steps:
Try to select two first names.Note:
1. Cells left to the names also get selected.
2. Focus selects all the cells to the right and bottom of these cells.Do let me know if any additional details are needed.
Regards,
MithilHi Mithil,
Thank you for your feedback. We confirm the issue, which occurs only when a column’s with is set to a percentage value and the selectionmode is ‘multiplecellsadvanced’. As a workaround, set the column’s width to a pixel value instead, i.e.: http://jsfiddle.net/Dimitar_jQWidgets/1d3cgm4j/.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks for the analysis and yes, it fixes the issue with adjacent selection but as mentioned, focus is transferred to other cells too if you try to select multiple cells. If you notice, they go blue in color.
This is a major issue since the display is affected.Any pointers on this?
Regards,
Mithil.Hi Mithil,
To fix this, please set enablebrowserselection to false.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
I tried the enablebrowserselection property on your fiddle and my code too.
It works for the fiddle but sadly fails for my code.
I will try to check if any other property or so is preventing the fix.Any further pointers will be appreciated.
Regards,
Mithil. -
AuthorPosts
You must be logged in to reply to this topic.