Hello amar koli,
The implementation is very basic. You have to crate an user control
and its code behind get an INamedList and then all IListItem from this INamedList. You have to add WebEditor to specify the ID of the INamedList. Each tab will be IListItem and on PageViewCreated you need to set the content of an item.
protected void Page_Load(object sender, System.EventArgs e)
{
if (!Page.IsPostBack)
{
if (ListsIds.Count() != 0)
{
ListManager manager = new ListManager();
INamedList getSpecificList = manager.GetList(ListsIds[0]);
if (getSpecificList.Items.Count > 0)
{
foreach (IListItem item in getSpecificList.Items)
{
contentlist.Add(item);
AddTab(item.Headline);
}
}
}
}
}
private void AddTab(string tabName)
{
RadTab tab = new RadTab();
tab.Text = tabName;
RadTabStrip1.Tabs.Add(tab);
RadPageView pageView = new RadPageView();
pageView.ID = tabName;
RadMultiPage1.PageViews.Add(pageView);
}
protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
{
ListManager manager = new ListManager();
Label lb = new Label();
foreach (IListItem item in contentlist)
{
lb.Text = item.Content;
}
e.PageView.Controls.Add(lb);
}
[TypeConverter("Telerik.Lists.WebControls.ListsIdsConverter, Telerik.Lists")]
[WebEditor("Telerik.Lists.WebControls.ListSelector, Telerik.Lists")]
public Guid[] ListsIds
{
get { return this.ids; }
set { this.ids = value; }
}
public string ProviderName
{
get
{
if (String.IsNullOrEmpty(this.providerName))
this.providerName = ListManager.DefaultProviderName;
return this.providerName;
}
set
{
this.providerName = value;
}
}
private string providerName;
private Guid[] ids;
IList<IListItem> contentlist = new List<IListItem>();
Regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.