2
votes

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.

1
It seems that the only way, at least until the react-data-grid team solves it, is to convert it to string: github.com/adazzle/react-data-grid/issues/882 - David Duran

1 Answers

0
votes

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.