Hi Everybody,
Telerik Version: 2010.2.924.1040
My Requirement:
I've a collection in the following format and I want to bind the collection to RadTreeView in similar format.
I've gone many telerik forums links but didn't find anything related to my problem. Since I'm reaching my deadlines I've created a new thread and If you can provide a example then it will be really useful for me.
The following is the sample type which is very close to my business object:
Mobile
-- ModelName
-- Price
+ Sims
-- Sim1
-- Number
+ Contacts
-- Sim2
-- Number
+ Contacts
+ Folders
-- FolderName
+ Files
-- FileName
-- Size
-- Capacity
public class Mobile
{
public string ModelName { set; get; }
public string Price { set; get; }
public ObservableCollection<Sim> Sims { set; get; }
public ObservableCollection<Folder> Folders { set; get; }
}
public class Sim
{
public int Number { set; get; }
public ObservableCollection<Contact> Contacts { set; get; }
}
public class Contact
{
public string Name { set; get; }
public string Address { set; get; }
public int PhoneNumber { set; get; }
}
public class Folder
{
public string Name { set; get; }
public ObservableCollection<File> Files { set; get; }
}
public class File
{
public string FileName { set; get; }
public string Size { set; get; }
public string Type { set; get; }
}
Thanks,
Prakash.
Telerik Version: 2010.2.924.1040
My Requirement:
I've a collection in the following format and I want to bind the collection to RadTreeView in similar format.
I've gone many telerik forums links but didn't find anything related to my problem. Since I'm reaching my deadlines I've created a new thread and If you can provide a example then it will be really useful for me.
The following is the sample type which is very close to my business object:
Mobile
-- ModelName
-- Price
+ Sims
-- Sim1
-- Number
+ Contacts
-- Sim2
-- Number
+ Contacts
+ Folders
-- FolderName
+ Files
-- FileName
-- Size
-- Capacity
public class Mobile
{
public string ModelName { set; get; }
public string Price { set; get; }
public ObservableCollection<Sim> Sims { set; get; }
public ObservableCollection<Folder> Folders { set; get; }
}
public class Sim
{
public int Number { set; get; }
public ObservableCollection<Contact> Contacts { set; get; }
}
public class Contact
{
public string Name { set; get; }
public string Address { set; get; }
public int PhoneNumber { set; get; }
}
public class Folder
{
public string Name { set; get; }
public ObservableCollection<File> Files { set; get; }
}
public class File
{
public string FileName { set; get; }
public string Size { set; get; }
public string Type { set; get; }
}
Thanks,
Prakash.