This is a migrated thread and some comments may be shown as answers.

how to perform the Radbutton condition base radconfirm,radalert

1 Answer 143 Views
Input
This is a migrated thread and some comments may be shown as answers.
NA
Top achievements
Rank 1
NA asked on 28 Mar 2014, 05:52 AM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Mar 2014, 11:56 AM
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.
Tags
Input
Asked by
NA
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or