3

Pretty simple issue, I'd like to display boolean values in my react-data-grid. I honestly don't care how it's displayed: Checkbox, Radio, text... I just want it to appear so I can edit it.

I'd rather not convert my data to all strings, then have to reconvert them back but that may be the only way.

This is a related issue that was just simply closed: https://github.com/adazzle/react-data-grid/issues/722

There's also a similar question: Using CheckboxEditor with react-data-grid asked yesterday and completely silent.

Does anyone have any way to show and edit boolean values in React-Data-Grid, or should I be looking elsewhere.

Chris
  • 1,418
  • 2
  • 16
  • 34
  • It seems that the only way, at least until the react-data-grid team solves it, is to convert it to string: https://github.com/adazzle/react-data-grid/issues/882 – David Duran Feb 07 '18 at 11:31

1 Answers1

0

Since it's Boolean you can have a dropddown. I don't have a demo to show, but you can get the idea of what to do by looking at the following example. Link. There see the logic behind "Issue Type" Column.

Nimesha Kalinga
  • 262
  • 4
  • 17