checkbox inside radgrid always return false at server side

2 posts, 0 answers
  1. Binary
    Binary avatar
    10 posts
    Member since:
    Apr 2015

    Posted 23 Jun 2015 Link to this post

    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");

            }
    }

     

  2. Eyup
    Admin
    Eyup avatar
    3758 posts

    Posted 26 Jun 2015 Link to this post

    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
Back to Top