Oct 15, 2014, 12:34 PM
Checkbox Change direct event auto fire
Hello,
i have three checkboxs 1. Business , 2.Economy 3.All Classes
i have checked 1,2 is true and 3rd is false
now i have set all direct event for Change , when i select 3rd checkbox i want to uncheck 1st,2nd check box and if i select any one from 1st and 2nd 3rd check box will me uncheck
this is my html or c# code its just in loop all three checkbox
when i run this code automatically all check-box in loop and checked unchecked auto
i have three checkboxs 1. Business , 2.Economy 3.All Classes
i have checked 1,2 is true and 3rd is false
now i have set all direct event for Change , when i select 3rd checkbox i want to uncheck 1st,2nd check box and if i select any one from 1st and 2nd 3rd check box will me uncheck
this is my html or c# code its just in loop all three checkbox
<ext:Checkbox runat="server" FieldLabel="Business" ID="check_dom_lcc_bussiness" Checked="true">
<DirectEvents>
<Change OnEvent="check_dom_lcc_bussiness_chnage">
</Change>
</DirectEvents>
</ext:Checkbox>
<ext:Checkbox runat="server" FieldLabel="Economy" ID="check_dom_lcc_economy" Checked="true">
<DirectEvents>
<Change OnEvent="check_dom_lcc_economy_change">
</Change>
</DirectEvents>
</ext:Checkbox>
<ext:Checkbox runat="server" FieldLabel="All Classes" ID="chcek_dom_lcc_allclass">
<DirectEvents>
<Change OnEvent="chcek_dom_lcc_allclass_change" />
</DirectEvents>
</ext:Checkbox>
protected void check_dom_lcc_bussiness_chnage(object sender,DirectEventArgs e)
{
check_dom_lcc_bussiness.SuspendEvents(true);
chcek_dom_lcc_allclass.SetValue(false);
check_dom_lcc_bussiness.SetValue(true);
check_dom_lcc_bussiness.ResumeEvents();
}
protected void check_dom_lcc_economy_change(object sender, DirectEventArgs e)
{
check_dom_lcc_economy.SuspendEvents(true);
chcek_dom_lcc_allclass.SetValue(false);
check_dom_lcc_economy.SetValue(true);
check_dom_lcc_economy.ResumeEvents();
}
protected void chcek_dom_lcc_allclass_change(object sender, DirectEventArgs e)
{
chcek_dom_lcc_allclass.SuspendEvents(true);
check_dom_lcc_bussiness.SetValue(false);
check_dom_lcc_economy.SetValue(false);
chcek_dom_lcc_allclass.SetValue(true);
chcek_dom_lcc_allclass.ResumeEvents();
}
when i run this code automatically all check-box in loop and checked unchecked auto