Author Topic: Using Single click to edit a drop down in paramquery grid.  (Read 2752 times)

pqgridprouser1

  • Newbie
  • *
  • Posts: 6
    • View Profile
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.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Using Single click to edit a drop down in paramquery grid.
« Reply #1 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.