I'm following the example code which is this on the server side:
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
RadTab tab1 = new RadTab();
tab1.Text = "Tab 1";
RadTab tab11 = new RadTab();
tab11.Text = "Child 1";
tab1.Tabs.Add(tab11);
RadTab tab2 = new RadTab();
tab2.Text = "Tab 2";
RadTab tab3 = new RadTab();
tab3.Text = "Telerik";
tab3.NavigateUrl = "http://www.telerik.com";
RadTabStrip1.Tabs.Add(tab1);
RadTabStrip1.Tabs.Add(tab2);
RadTabStrip1.Tabs.Add(tab3);
}
}
The RadTabStrip1 was defined. Now I want to add tabs programmatically and when I do the first line of
RadTab tab1= new RadTab()
it gives me an error message.
'RadTab' is a 'namespace' but is used like a 'type'
What is going on here? Did I miss something during the installation?
{
if (!Page.IsPostBack)
{
RadTab tab1 = new RadTab();
tab1.Text = "Tab 1";
RadTab tab11 = new RadTab();
tab11.Text = "Child 1";
tab1.Tabs.Add(tab11);
RadTab tab2 = new RadTab();
tab2.Text = "Tab 2";
RadTab tab3 = new RadTab();
tab3.Text = "Telerik";
tab3.NavigateUrl = "http://www.telerik.com";
RadTabStrip1.Tabs.Add(tab1);
RadTabStrip1.Tabs.Add(tab2);
RadTabStrip1.Tabs.Add(tab3);
}
}
The RadTabStrip1 was defined. Now I want to add tabs programmatically and when I do the first line of
RadTab tab1= new RadTab()
it gives me an error message.
'RadTab' is a 'namespace' but is used like a 'type'
What is going on here? Did I miss something during the installation?