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

two level RadTabStrip problem

0 Answers 38 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Alejandra
Top achievements
Rank 1
Alejandra asked on 12 Sep 2008, 09:35 PM
Hi All, i´m trying to bind tabs from objects
The Second level tabs is loaded from a object collection that belongs to other object: 1st label-->Authors  and 2nd label-->Books (from an author)

I implemented a similar class to Declarative DataSources's example, and added the following code that gets the data (RadTabScript DataSocurce).

 List<SiteDataItem> siteData = new List<SiteDataItem>();
foreach (Author myauthor in GetAllAuthorsl()) {
   siteData.Add(new SiteDataItem(myauthor.Identity, null, myauthor.Name));
    foreach (Book myBook in GetAllBooks(myauthor.Identity))
        siteData.Add(new SiteDataItem myBook.Identity,myauthor.Identity, myBook.Name));
}

RadTabStrip properties are:
DataTextField = "Text" DataFieldID="ID" DataFieldParentID="ParentID"

The problem here is that all tabs are at the same level and the ID is not being set. 


any help would be grateful!

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
Alejandra
Top achievements
Rank 1
Share this question
or