Page 1 of 1

Table Text Input Type highlighting cell contents on focus

Posted: Wed Jul 14, 2010 12:48 pm
by Carl Johnson
Is there a way in Jade to highlight the contents of a table cell that has an input type of TextBox when that cell has focus without using a cell control?

The scenario that I have is that my table cell has the text "Enter field here", and I want this to be highlighted when that cell has focus so it gets removed when the User starts typing.

Re: Table Text Input Type highlighting cell contents on focus

Posted: Wed Jul 14, 2010 3:16 pm
by BeeJay
If you know that the current cell for the table has an inputType = Table.InputType_TextBox, then you can access the TextBox "cellControl" that has been automatically created to handle the Table.InputType_TextBox with code along the lines of the following:

Code: Select all

table.accessCell( table.row, table.column ).cellControl.TextBox
Cheers,
BeeJay.

Re: Table Text Input Type highlighting cell contents on focus

Posted: Wed Jul 14, 2010 5:08 pm
by Carl Johnson
Thanks, that works perfectly.