Remove Checkbox

2 posts, 0 answers
  1. New
    New  avatar
    25 posts
    Member since:
    Jul 2012

    Posted 03 Jul 2012 Link to this post


    How to remove dynamically created checkbox

    for (int j = 1; j <= i; j++)
    {
        CheckBox chk = new CheckBox();
        chk.ID = "ChkBox" + j.ToString();
        pHolder.Controls.Remove(chk);
    }

    It's not removed


    Thanks Advance,
    New Gene.
  2. Rumen
    Admin
    Rumen avatar
    14100 posts

    Posted 03 Jul 2012 Link to this post

    Hello,

    This is a general knowledge question which is not directly related to the scope of service of Telerik forums. That is why my recommendation is to search in Google or in the ASP.NET forums for examples on how to remove dynamically generated server elements, e.g. https://www.google.com/search?q=Controls.Remove

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top