Author Topic: PQ Grid : Show dropdown in Single click on cell  (Read 2249 times)

sriram

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 2
    • View Profile
PQ Grid : Show dropdown in Single click on cell
« on: September 16, 2019, 10:25:46 am »
Dear Sir,

We are using PQgrid in our web application and we have successfully loaded data in grid in page.

The default behavior of the PQ-Grid as follows,
1.     All cell values are loaded as label in grid
2.     On first click, cell will be changed to edit mode
3.     On Second click, pulldown is loaded as dropdown
4.     On 3rd click, user can select the value.
 
With this user has to make 3 clicks to select single user input value.

This is costing bit high with number of editable cells ( 400 rows , each row has 7 editable cells ) . Hence we have asked to reduce number of clicks 3 to 2 for user input selection. ( User selections are loaded in dropdown ).

Requesting your technical support on above issue description.

Thanks & Best Regards,
Girish ( Sriram )


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: PQ Grid : Show dropdown in Single click on cell
« Reply #1 on: September 16, 2019, 11:11:00 am »
Girish

The number of clicks can be reduced by use of pqSelect and opening it just after initialization using setTimout.

Code: [Select]
editor: {
type: 'select',
init: function (ui) {
        ui.$cell.find("select").pqSelect();//.pqSelect('open');
setTimeout(function(){
ui.$cell.find("select").pqSelect('open');
})
},
        .....
}

Best  Regards
Param