Dec 21, 2011, 12:22 PM
[CLOSED] Enable/disable checkbox column in grid panel (grid using editablegrid plugin)
Hi,
I am having a editable grid panel which has 2 columns with checkbox. I need to disable one checkbox when the other checkbox is checked and viceversa. Below is the code written on checkevent for checkbox. But its not reflecting in the UI. I am using editablegrid plugin.
Thanks
Anulekha
I am having a editable grid panel which has 2 columns with checkbox. I need to disable one checkbox when the other checkbox is checked and viceversa. Below is the code written on checkevent for checkbox. But its not reflecting in the UI. I am using editablegrid plugin.
<ext:Column ColumnID="IEIPGAutoReplen" Header="AutoReplen" DataIndex="InvAutoReplenishAllowed"
Hidden="true" Align="Center" Width="15">
<Editor>
<nxtwc:NxtCheckbox ID="chkIEIPGAutoReplen" runat="server" TabIndex="5" Enabled="true"
Disabled="false">
<Listeners>
<Render Handler="if(#{chkIEIPGBlocked}.checked){#{chkIEIPGAutoReplen}.setDisabled(true);}
if(#{chkIEIPGAutoReplen}.checked){#{chkIEIPGBlocked}.setDisabled(true);}" />
<Check Handler="#{chkIEIPGBlocked}.setDisabled(this.checked);" />
</Listeners>
</nxtwc:NxtCheckbox>
</Editor>
</ext:Column>
<ext:Column ColumnID="IEIPGBlocked" Header="Blocked" DataIndex="InvReorderBlocked"
Hidden="true" Align="Center" Width="15">
<Editor>
<nxtwc:NxtCheckbox ID="chkIEIPGBlocked" runat="server" TabIndex="6" Enabled="true"
Disabled="false">
<Listeners>
<Check Handler="#{chkIEIPGAutoReplen}.setDisabled(this.checked);" />
</Listeners>
</nxtwc:NxtCheckbox>
</Editor>
</ext:Column>
Please advise.Thanks
Anulekha
Last edited by Daniil; Dec 26, 2011 at 8:26 AM.
Reason: [CLOSED]