jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Problem while using selectionmode and editmode together
This topic contains 6 replies, has 2 voices, and was last updated by aravindtrue 12 years, 6 months ago.
-
Author
-
Hi,
I am using a grid control where it has the following options,
$(“#jqxgrid”).jqxGrid({
width: ‘98%’,
source: dataAdapter,
theme: ‘darkblue’,
autoheight: true,
sortable: true,
filterable: true,
autoshowfiltericon: true,
pageable: true,
columnsresize: true,
selectionmode: ‘singlerow’,
editable: true,
editmode: ‘dblclick’,
columns: [
{ text: ‘Name’, columntype: ‘dropdownlist’, datafield: ‘name’, width: 250 },
{ text: ‘Email’, datafield: ’email’, width: 250 },
{ text: ‘IP Addr’, datafield: ‘ip_addr’, width: 180 },
]
});According to the above options, when I click on any cell, it has to select the whole row whereas when I double click any cell, it has to show the editor for the particular cell.
But what happening here is,
* It gives hover effect for the whole row.
* When I single click on any cell it turns to editor (Actually, It has to be double click).Am I doing something wrong?
Regards,
AravindHi Avarind,
As the Grid supports only cells editing and popup editing, the selection mode is expected to be set to any of the available cells selection modes, if you use cells editing.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks for the quick response.
so the selection mode is for the cells when editable is true.
Is it possible to achieve, what I’m expecting?
* When I hover on a row or cell, it should highlight the whole row.
* When I single click on a row or cell, the whole row should be marked as selected.
* When I double click on a cell, it turns to editable textbox or dropdown.Please correct me, if I’m wrong.
Thanks & Regards,
AravindHi Aravind,
Regarding your questions:
– For 1 and 2 the selectionmode should be set to ‘singlerow’.
– This is not supported for now by design. We’ll consider changing that behavior for the next version.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks a lot for the response.
Regards,
AravindI would like to thank you for the valuable feedback and please feel free to contact us, if you have any questions.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comYeahh.. I think it has to be changed, this seems like a disadvantage. Apologize, if I’m wrong.
http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/masterdetails.htm?classic
This is an awesome example to display the master and salve details. When I include the editable here, the behavior changes i.e. the slave list and updating the text in cell, happens at the same time (single click).
Regards,
Aravind -
AuthorPosts
You must be logged in to reply to this topic.