PDA

View Full Version : [CLOSED] Grid Panel Editor Combobox



Tonic
Jan 23, 2013, 10:39 AM
Hi There

am using a grid-panel with editor plugin for updating, deleting inserting records,

i have a comobox editor in one of the columns of the grid-Panel every thing is working fine,

I just want to update the comobox value in the database instead of text what r the steps for that

below is the sample code




<ext:GridPanel ID="GridPanel1" runat="server" Title="List Of Employees" StoreID="Store1"
Border="false" Icon="UserEarth">
<ColumnModel ID="ColumnModel3" runat="server">
<Columns>
</ext:Column>
<ext:Column DataIndex="newEmpgrade" runat="server" Text="Grade">
<Editor>
<ext:ComboBox ID="cbEmpGrade" *runat="server" />
</Editor>
</ext:Column>
</ColumnModel>
<Buttons>
<ext:Button ID="btnSave" runat="server" Text="Save" Icon="Disk">
<Listeners>
<Click Handler="#{Store1}.sync();" />
</Listeners>
</ext:Button>

Daniil
Jan 23, 2013, 12:21 PM
Hi @Tonic,

Please look at the DEPARTMENT column in this example.
http://examples2.ext.net/#/GridPanel/Data_Presentation/Editor_Field_Mapping/

You should organize the thing in a similar way.