or
<tr> <td> <asp:CheckBox ID="rbDiscountGoodCalcTypeSet" runat="server" BackColor="red" onchange="onChangeDiscountGoodCalcType()"/> <asp:Label ID="lbDiscountGoodCalcType" runat="server" Text="<%$ Resources: Common, DiscountGoodCalcType %>"></asp:Label> </td> <td colspan="3"> <asp:RadioButton ID="rbDiscountGoodCalcType1" GroupName="DiscountGoodCalcType" runat="server" Text="<%$ Resources: Common, ByQuantity %>" Checked='<%# Eval("DiscountGoodCalcType").ToString() == "0" %>' Enabled="false"/> <asp:RadioButton ID="rbDiscountGoodCalcType2" GroupName="DiscountGoodCalcType" runat="server" Text="<%$ Resources: Common, ByValue %>" Checked='<%# Eval("DiscountGoodCalcType").ToString() == "1" %>' Enabled="false"/> </td> </tr>function onChangeDiscountGoodCalcType() { var sourceName = window.event.srcElement.id; var targetName1 = sourceName.substring(0, (sourceName.length - 3)) + "1"; var targetName2 = sourceName.substring(0, (sourceName.length - 3)) + "2"; var cmdObj = $("#" + sourceName)[0]; var targetObj1 = $("#" + targetName1)[0]; var targetObj2 = $("#" + targetName2)[0]; targetObj1.disabled = !cmdObj.checked; targetObj2.disabled = !cmdObj.checked; }private void Manage4Line() { if (rbDiscountGoodCalcTypeSet.Checked) DiscountGoodCalcType = (rbDiscountGoodCalcType1.Checked) ? 0 : 1; }if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;__doPostBack('gvLoginDetail$ctl00$ctl02$ctl00$ExportToCsvButton','')if(!$find('gvLoginDetail_ctl00').exportToCsv()) return false;
protected void radGridUnits_OnPreRender(object sender, EventArgs e) { // Select the last selected value if (Session["filteredByPendingAction"] != null) foreach (GridHeaderItem h in radGridUnits.MasterTableView.GetItems(GridItemType.Header)) { ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).FindItemByValue(Session["filteredByPendingAction"].ToString()).Selected = true; ((RadComboBox)h["ExternalActions"].FindControl("radComboFilteredByPendingActions")).DataBind(); break; } }
GetRadWindow().add_activate(OnClientActivate);function OnClientActivate(sender, e) { alert('I should only see this once when the window is brought to the front');}
