I am defining a new column in a datagrid so as to add a text box
new_columns = [
{
"id": "col_text",
"title": "Notes",
"data_key": "user_note",
"width": 150
},
In the row template I create and add the text box
self.tb = TextBox(placeholder="Type something...")
self.tb.set_event_handler("change", self.textbox_change_handler)
self.tb.horizontal_alignment = "right"
# Add it to the panel
#id or key?
self.add_component(self.tb, column="col_text")
The textbox shows up in the datagrid on Run, but it is below the existing columns, ignoring the width specification and the reference to the column key or id.
How do I fix this? Thx.