Adding Pages to a DataSource

Vote:
 

Hi,

I have a datasource that is having Childnodes of a particular nodes which is some events based on dates and assigning this datasource to a pagelist .If there is no event in a particular date(there wont be no node for that particular date in the content section) i just want to display that date in the pagelist .How can i show the dates on the pagelist

Thanks in advance

SADIK R 

 

#23788
Sep 16, 2008 14:11
Vote:
 

Use the property that stores the datein the child pages.

In the item template write something like

<ItemTemplate>

Container.CurrentPage["YourDateProperty"]

</ItemTemplate>

Hope this helps.

#23790
Sep 16, 2008 15:14
Vote:
 
this is displaying the pages in the child node only.i need to add those dates which are not there in the child nodes to the datasource and display it as an item
#23822
Sep 17, 2008 10:30
Vote:
 

Hi SADIK, 

You need to handle  the DataBinding event of the PageList.

In it you need to create an new item template control for the non existing date and add to the Pagelist control.

PageListControl.TemplateControl.Controls.Add(childTemplate)

#23828
Sep 17, 2008 11:56
Vote:
 
#23834
Sep 17, 2008 13:02