FNCDataGrid cell styling questions

Hi,

I would, ideally, like to have a column that displays an HTML input field, e.g.:

<textarea>
</textarea>

I know that something similar can be done by setting the column Editor to getMemo, but this only shows up when the cell is pressed (else it just looks unstyled).

Is there anyway to make the cell formatted to look like a textarea/input at all times?

Hi,

The cells are not real HTML elements, but in fact painted rectangles on a HTML5 Canvas. We do have the option to add HTML elements to cells, you can do this via the Controls[Col, Row] property. In TMS FNC UI Pack\Demo\WEB\DataGrid\Basic\Cell Controls you can find an application demonstrating how controls can be added.

Ah, didn't realise you could use the Controls property this way.

I'd inferred from the documentation one had to use the FNCGrid API to add controls, e.g. Grid.AddCheckBox().

Thanks Pieter!

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.