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

How could i get value RadTabStrip inside RadTab inside panel.

1 Answer 37 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Tamim
Top achievements
Rank 1
Tamim asked on 15 Jun 2012, 05:17 AM
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

1 Answer, 1 is accepted

Sort by
0
Tamim
Top achievements
Rank 1
answered on 15 Jun 2012, 01:28 PM
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
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Tamim
Top achievements
Rank 1
Answers by
Tamim
Top achievements
Rank 1
Share this question
or