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

checkbox inside radgrid always return false at server side

1 Answer 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Binary
Top achievements
Rank 1
Binary asked on 23 Jun 2015, 06:43 PM

I have radgrid and radgrid is inside the radwindow. I have put the checkbox on each row of the radgrid and also I have put the radbutton outside the radgrid. On button click I want to get the check status of checkbox. But I am getting false all the time at server side.

on button click event I have attached this code but for all rows it is returning false.

foreach (GridDataItem dtIteam in RadGrid.Items)
{
        CheckBox chkBox = dtIteam.FindControl("chkAcBox") as Checkbox;
         if (chkBox.Checked)
        {

              response.write("Checkbox is checked");

        }
}

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 26 Jun 2015, 10:04 AM
Hi Binary,

I've created a sample RadGrid web site to test the described scenario. On my side the mentioned logic works as expected. Could you run the attached application and let me know about the result?

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Binary
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or