This is a migrated thread and some comments may be shown as answers.
RadCalendar With Repeater
8 Answers 34 Views
This is a migrated thread and some comments may be shown as answers.
Brown
Top achievements
Rank 1
Brown asked on 25 Jan 2011, 01:31 AM
Hi,

 I am displaying RadCalendar in my page, after that displaying repeater. while click on the particular date. 
 needs to be add a row in that row first field that date needs to be displayed. again if i click on the next date one more row needs to be displayed in that date should be displayed.....

 For that i am displaying calendar, repeater in my page.  while click on the date dispalying those dates in that repeater also. but if i click on the next date both the rows are updating the same date (last click). Could you help me out ot find out this.

8 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 26 Jan 2011, 04:45 PM
Hi Brown,

I am sending you a simple example which demonstrates the desired functionality, please check it out and let me know if it helps you.

All the best,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brown
Top achievements
Rank 1
answered on 31 Jan 2011, 08:15 PM
Thanks...
0
Brown
Top achievements
Rank 1
answered on 31 Jan 2011, 09:00 PM
Hi,
 Thanks for your reply.. it is working can you provide the add and delete button also....
0
Radoslav
Telerik team
answered on 02 Feb 2011, 10:46 AM
Hello Brown,

Please find attached a simple working application which handles the desired functionality. Give it a try and let me know if it works as expected.

Best wishes,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brown
Top achievements
Rank 1
answered on 06 Feb 2011, 07:33 PM
Hi ,

 Thanks for your reply,,, You are using viewstate to display the data... but I want to display the repeater with editable format ,, without using viewstate,, just simple DataTable and DataRow,, and if i click on the date in the calendar the repeater should display the date values and need add and delete button,, and can you clear one thing is it possible to save those values in database? Thanks in advance.....
0
Radoslav
Telerik team
answered on 09 Feb 2011, 12:02 PM
Hi Brown,

Please check out the following resources which explain how to use all available templates for the Repeater control and how to bind it to the data. Into the Repeater's templates you could add any controls you need:

http://msdn.microsoft.com/en-us/magazine/cc163780.aspx
http://www.asp.net/data-access/tutorials/custom-buttons-in-the-datalist-and-repeater-vb
http://support.microsoft.com/kb/307860

I hope this helps.

Best wishes,
Radoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Brown
Top achievements
Rank 1
answered on 14 Feb 2011, 04:12 PM
Hi,

 Thanks for your reply... I am binding the data..is not a big problem.. But i have a radcalendar and repeater  in my page. While click on the date in the radcalendar it needs to display in the repeater, repeater should be editable. Can you tell me how to do? I am getting the vlues in the repeater while clikc on the date in the calendar, but if i click on the second time is updating both the rows of the repeater...
0
Radoslav
Telerik team
answered on 17 Feb 2011, 09:30 AM
Hello Brown,

You could get the selected date from RadCalendar into any event after Page_Init with the following code snippet:
if (RadCalendar1.SelectedDates.Count> 0)
{
       DateTime selectedDate = RadCalendar1.SelectedDates[RadCalendar1.SelectedDates.Count - 1].Date
}

Then you could add the date into the DataSource to which the Repeater controls is bound and rebind it.
How to bind the repeater and define its ItemTemplate you could find into the links provided with my previous post.

Greetings,
Radoslav
the Telerik team
Asked by
Brown
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Brown
Top achievements
Rank 1
Share this question
or