Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

TableView - show Customised Combox Control in TableCell  RSS feed

 
Ally Cavs
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

I have a custom control called AutoCompleteComboBox which extends ComboBox. If I have a tableview how can i get this AutoCompleteComboBox to display in a cell when clicked?

Thanks
Alan
 
John Damien Smith
Ranch Hand
Posts: 350
21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a ComboBoxTableCell.

"By default, the ComboBoxTableCell is rendered as a Label when not being edited, and as a ComboBox when in editing mode."

And if you need more control over customization of the cell (e.g. to choose your specific custom auto complete combobox instance), then, look at the ComboBoxTableCell source code to see how you may customize it to fit your requirements.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!