Author Topic: How to Remove value from NumberCell  (Read 2870 times)

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
How to Remove value from NumberCell
« on: July 03, 2019, 02:32:21 pm »
Hello,

I have Pro version of PqGrid, what I have requirement is I want numberCell because need Drag & Drop functionality, But I not want number value in that cell as shown in screenshot. Can you please help me how to achieve it.

Thanks,

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to Remove value from NumberCell
« Reply #1 on: July 03, 2019, 06:10:09 pm »
Your screenshot is missing. Anyway you can use a normal empty column, any column can be use for drag & drop.

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to Remove value from NumberCell
« Reply #2 on: July 03, 2019, 06:13:11 pm »
I have attached screenshot again, If you see the screenshot you will get idea what we need.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to Remove value from NumberCell
« Reply #3 on: July 04, 2019, 05:29:09 pm »
Numbers can't be removed from number columns.

Drag handle are displayed in number cells by default, they can be displayed in other cells by dragModel.diDrag option.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: How to Remove value from NumberCell
« Reply #4 on: July 06, 2019, 09:05:46 am »
css workaround can be used to remove numbers from number columns.  :)

Code: [Select]
.pq-grid-number-cell{
font-size:0 !important;
}
« Last Edit: July 06, 2019, 09:07:55 am by paramvir »

npdev13

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to Remove value from NumberCell
« Reply #5 on: July 06, 2019, 11:37:55 am »
Yes it works, Thanks