ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: pqgridprouser1 on July 12, 2018, 02:44:42 am

Title: Using Single click to edit a drop down in paramquery grid.
Post by: pqgridprouser1 on July 12, 2018, 02:44:42 am
Hi PQGrid Team,

We have a pro account and we are stuck with below issue.

Issue Description:

We are using PQGrid library to create a data grid which has a drop down inside a cell. We want that on single click the drop down in the grid cell should be editable but drop down is opening on second click. How to avoid multiple clicks to open drop down in edit mode?
We tried below options but none of them worked. Please suggest some option as this is important for our application to have single click dropdown edit.

1. We used the PQGrid clickToEdit property and assigned 1 as value.

2. We also tried fixing with jQuery by binding click event on parent element like below:
$('.superparentclass').on('click','selectdropdowncontainerclass',function() {
$('.pq-editor-outer').find('select').trigger('click');});

We tried with 'change' and 'open' event too but did not work.
Title: Re: Using Single click to edit a drop down in paramquery grid.
Post by: paramvir on July 12, 2018, 11:04:33 pm
Please share your Pro credentials so that your account can be upgraded.

pqSelect can be used as editor if you want to get the dropdown created and open in single click.