Apr 21, 2016, 12:39 PM
this.record.set in component column
i am trying to set row store property in component column like below,
<ext:ComponentColumn Editor="True" runat="server" Text="Alacak Hesap No" Hidden="True" Flex="2" DataIndex="AlacakHesapNo">
<Component>
<ext:ComboBox runat="server" MinChars="4" PageSize="10" StoreID="strMuhasebeKodu"
MaskRe="/[0-9\.]/" ID="ComboBox1" MatchFieldWidth="False" DisplayField="Kod" EmptyText="En az 4 karakter giriniz.">
<ListConfig Width="400" Height="400" ItemSelector=".x-boundlist-item">
<Tpl runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="cbStates-list">
<tr>
<th>Kod</th>
<th>Açıklama</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{Kod}</td>
<td>{Aciklama}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
<Listeners>
<Change Handler="if(this.getValue()!=null) { if(this.getValue().length>=4) { App.direct.GetMuhasebe( this.getValue());} }"></Change>
<Select Handler="
App.direct.GetMuhasebeNoKdv(this.getValue(), {
success: function (result) {
this.record.set('TaxRatio',18);
},
failure: function (x) {
Hata(x);
}
});
">
</Select>
</Listeners>
</ext:ComboBox>
</Component>
</ext:ComponentColumn>
but is gives an error that record is undefined. i cant understand why. How can i do this?