Nov 18, 2009, 10:30 AM
[CLOSED] ComboBox inside a Grid (editor)
Hi all,
I have a grid with a combobox inside it:
I need to set a "default" value to be displayed inside the grid cell until the user clicks on it; once a value has been selected, I need it to be displayed inside that cell.
I give you an example:
---
1. Initial state
combo: [default value is displayed]
2. User clicks on it and the combo expands:
combo: [value 1]
[value 2]
[value n]
3. User selects value 2:
combo: [value 1]
[value 2]
[value n]
4. value2 is displayed inside the grid cell :
combo: [value2 is displayed]
---
From the code above, after selecting a value nothing is displayed inside the cell and the cell is still empty.
Maybe I should use a renderer, but I don't know how to access the combo's selected value, if there's any.
Any help would be appreciated,
thanks in advance,
ps. I am using coolite 0.8.2 and .net framework 2.0
I have a grid with a combobox inside it:
<ext:Column Header="Foo" Width="150">
<Editor>
<ext:ComboBox Mode="Local" StoreID="MyStore" DisplayField="Name" ValueField="Value"
ID="MyCombo" ReadOnly="true" runat="server" ForceSelection="true" TriggerAction="All"
Shadow="Drop" />
</Editor>
</ext:Column>
I'm loading some data from a store inside the combobox; the data is loaded correctly, but nothing is displayed inside the combo until I click on it.I need to set a "default" value to be displayed inside the grid cell until the user clicks on it; once a value has been selected, I need it to be displayed inside that cell.
I give you an example:
---
1. Initial state
combo: [default value is displayed]
2. User clicks on it and the combo expands:
combo: [value 1]
[value 2]
[value n]
3. User selects value 2:
combo: [value 1]
[value 2]
[value n]
4. value2 is displayed inside the grid cell :
combo: [value2 is displayed]
---
From the code above, after selecting a value nothing is displayed inside the cell and the cell is still empty.
Maybe I should use a renderer, but I don't know how to access the combo's selected value, if there's any.
Any help would be appreciated,
thanks in advance,
ps. I am using coolite 0.8.2 and .net framework 2.0