how to perform the Radbutton condition base radconfirm,radalert

2 posts, 0 answers
  1. NA
    NA avatar
    39 posts
    Member since:
    Aug 2013

    Posted 28 Mar 2014 Link to this post

    how to perform the Radbutton condition base radconfirm,radalert
    And When i check the radgrid GroupHeader check box  checked  child items check box checked at list 1 child item checked after click radbutton  call the radconfirm,other wise call the radalert  sample code in javascript
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Mar 2014 in reply to NA Link to this post

    Hi,

    I guess that you want to show a RadConfirm on a Button Click based on the condition of RadGrid GroupHeaderCheckBox. Please elaborate your requirement if it doesn't help.

    C#:
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        foreach (GridGroupHeaderItem header in RadGrid1.MasterTableView.GetItems(GridItemType.GroupHeader))
        {
            CheckBox chk1 = (CheckBox)header.FindControl("CheckBox1");
            if (chk1.Checked == true)
            {
                RadWindowManager1.RadConfirm("Are you sure?", null, 400, 200, null, "confirm");
                break;
            }
        }
    }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top