May 16, 2017, 3:09 PM
[CLOSED] Combobox shows Valuefield and no Display field when is dirty.
Hello,
I have a grid with combobox editor. When I change value in the combobox displays the SiteId instead of Site, until I refresh the grid. I changed column's DataIndex to "SiteId" and tried to use a Renderer but with no success.
Grid Column:
I have a grid with combobox editor. When I change value in the combobox displays the SiteId instead of Site, until I refresh the grid. I changed column's DataIndex to "SiteId" and tried to use a Renderer but with no success.
Grid Column:
<ext:Column
runat="server"
Text="Site"
DataIndex="SiteId" //old DataIndex="Site"
Flex="3">
<Filter>
<ext:StringFilter />
</Filter>
<Editor>
<ext:ComboBox
ID="cmbSites"
runat="server"
Editable="false"
DisplayField="Site"
ValueField="Siteid">
<Store>
<ext:Store ID="cmbSiteStore" runat="server" OnLoad="cmbSiteStore_Load" >
<Model>
<ext:Model ID="Model3" runat="server">
<Fields>
<ext:ModelField Name="Site" />
<ext:ModelField Name="Siteid" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
</ext:ComboBox>
</Editor>
<Renderer Handler="return cmbSiteStore.getById(value).get('Site')" />
</ext:Column>
Grid Store:<ext:Store ID="FilesStore" runat="server" OnReadData="FilesStore_ReadData" >
<Model>
<ext:Model runat="server">
<Fields>
<ext:ModelField Name="Site" Type="String" />
<ext:ModelField Name="SiteId" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
Last edited by fabricio.murta; Jun 09, 2017 at 6:22 PM.
Reason: no feedback from the user in 7+ days