How could i get value RadTabStrip inside RadTab inside panel.

Thread is closed for posting
2 posts, 0 answers
  1. Tamim
    Tamim avatar
    64 posts
    Member since:
    May 2011

    Posted 15 Jun 2012 Link to this post

    I have used telerik control in my project. RadTabStrip inside RadTab inside panel.
    I'm dynamically created CheckBox and RadComboBox and also get id.
    i'm select CheckBox and RadComboBox value and save click to CheckBox and RadComboBox FindControl to get value is null

    How Could i get findcontrol to CheckBox and RadComboBox values.

    my coding is.
    for (int j = 1; j <= i; j++)
                {
                    if (j == i)
                    {
                        chk_Dynamic = (CheckBox)Panel1.FindControl("ChkBox" + j.ToString());
                        Response.Write(" " + chk_Dynamic.ID + " is " + (chk_Dynamic.Checked == true ? "Checked" : "Un-Checked<br/>"));
                        if (chk_Dynamic.Checked == true)
                        {
                            if (dropdown.SelectedIndex == 0)
                                return;
                        }
                    }
                }

    Thanks
    Tamim
  2. Tamim
    Tamim avatar
    64 posts
    Member since:
    May 2011

    Posted 15 Jun 2012 Link to this post

    I have found the solution.
     public void BindControl()
            {
                for (int j = 1; j <= i; j++)
                {
                    CheckBox chk = new CheckBox();
                    chk.ID = "ChkBox" + j.ToString();
                    chk.Text = "CheckBox" + j.ToString();
                    pHolder.Controls.Add(chk);
                }
            }
    button click events

    if (j == i)
                    {
                        RadPageView PageView = RadMultiPage1.PageViews[0];
                        PlaceHolder placeholder = (PlaceHolder)PageView.FindControl("pHolder");
                        chk_Dynamic = (CheckBox)placeholder.FindControl("ChkBox" + j.ToString());


                        RadPageView PageView1 = RadMultiPage1.PageViews[0];
                        PlaceHolder placeholder1 = (PlaceHolder)PageView1.FindControl("Panel1");
                        dropdown = (RadComboBox)placeholder1.FindControl("Drop" + j.ToString());
                    }
    Thanks
    Tamim
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top