Jan 07, 2013, 10:13 AM
Show or hide gridpanel checkbox when some value in gridpanel equal 0 ?
I've a gridpanel, some record value in gridpanel is 0, at this time I don't want show the checkbox on this row within gridpanel
Code snippet:
Code snippet:
javascript:
var MyCheckBox = function (v, p, record) {
if (record.data.GCZT > 0) {
return '<div class="x-grid3-row-checker">'; //wrong code
}
else {
return "";
}
};
<SelectionModel>
<ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server">
<CustomConfig>
<ext:ConfigItem Name="renderer" Value="MyCheckBox" Mode="Raw" />
</CustomConfig>
<Listeners>
<BeforeSelect Handler="return record.data.GCZT>0;" />
</Listeners>
</ext:CheckboxSelectionModel>
</SelectionModel>
Last edited by geoffrey.mcgill; Apr 26, 2016 at 12:17 AM.