Another Salesforce blog!!!

Salesforce, Apex

ASP.NET

Gridview itemTemplate enable/disable the dropdownlist based on the checkbox checked using jQuery

 <ItemTemplate>              <div>                 <asp:CheckBox CssClass=”selectme” ID=”chkReject” runat=”server” Checked=”false”>                 </asp:CheckBox>                 <asp:DropDownList runat=”server” ID=”detail” >                     <asp:ListItem Selected=”True” Value=”0″>Select me</asp:ListItem>                     <asp:ListItem Value=”1″>one</asp:ListItem>                     <asp:ListItem Value=”2″>two</asp:ListItem>                     <asp:ListItem Value=”3″>three</asp:ListItem>                     <asp:ListItem Value=”4″>four</asp:ListItem>                 </asp:DropDownList>             </div>         </ItemTemplate> protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {     var chk = e.Row.FindControl(“CheckBox1”) as CheckBox;     if […]

Next posts