Author Topic: How to achieve some of free version feature in Pro version  (Read 1725 times)

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
How to achieve some of free version feature in Pro version
« on: June 03, 2019, 11:38:41 am »
Hello ,

I was using till now free version of PQGrid and recently purchase Pro version. After integration Pro version with couple of changes it still some of the functionalities not working as free version as below.


1. I want to disable the cross cursor sign for cell selection (Refer screenshot1.png), what it doing now when I drag that cursor then it copy all that items to other cells like Excel, I want it like it work as free version.
2. I want to disable the multiple delete cell functionality. for example when I select some of cell by mouse and click delete button it deleting all cell value. but I have requirement is like that it not needed, I want single cell delete functionality but not multiple delete. (Refer Screenshot2.png)
3. When click on cell it shows the editor width larger the cell value. In free version it works fine. What setting I should do so it looks like Free version (Please refer. screenshot cell-size.png)

What I have tried for API documentation is for 1 and 2 issue respectively.

1.  I have tried native selection it disabled that Cross cursor selection but it also disable the multiple selection of cells, I want that multiple selction of cell to select all row and copy and paste to excel.
selectionModel: { type: '', native: true },

2. I have tried to pressEdit = false in editorModel but it also stop delete single cell delete functionality, I want to disable only multiple selection delete functionality, just like In free version it works.


Can you please help me to how to achieve above 2 things

Thanks,
Nit
« Last Edit: June 03, 2019, 03:57:32 pm by npdev13 »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to achieve some of free version feature in Pro version
« Reply #1 on: June 04, 2019, 11:11:42 am »
1. Please set fillHandle: "" ( https://paramquery.com/pro/api#option-fillHandle )

2. Please use beforeCellKeyDown event to customize it.

Code: [Select]
beforeCellKeyDown: function(evt, ui){
    this.Range({r1:ui.rowIndx, rc: 1, c1: ui.colIndx, cc: 1}).clear();
    return false;
},

3. Looking into it.