future-architect/cheetah-grid

Working with a single cell

Closed this issue · 4 comments

Hello.
I was faced with the task, when I click on a cell, I need to display that it is clicked, but c-grid has no borders, so the standard selection will be useless.
When working with c-grid, is it possible to affect a single cell when it is selected?
Maybe it's possible to display the borders at the time of selection or change the background?
I tried various options, but it stood out at once the entire column or row.

Thank you for posting this issue.
But, I still don't quite understand what you want to do. (Maybe it's because I don't know English very well.)
I think the selected cell is indicated by a border or something.

image

What do you want to do?
Could you explain again what you want to do, using images etc.?

My table has no borders and no selection.
Maybe there's a way to highlight the background of a cell when it's selected, to show the user that it's selected.
Roughly speaking, I need to fill the background of the first selected cell. If you do it through a property or somehow change ".grid-focus-control", then the first area will remain unchanged, but the active cell will be highlighted.
image
image
As you can see in the screenshots presented, the first cell does not have any selection. Even if it is, it is clearly not noticeable to the user. This is the task. Highlight the selected cell by filling the background, then leave it.

Are you using your own theme? If so there may be a problem with your implementation of it.
https://future-architect.github.io/cheetah-grid/documents/api/js/theme.html

Also, could you please share your source code for further investigation?

That's what I need. My problem is solved, I was extremely inattentive to the documentation. Thank you very much for the help!