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

How to Bind the radcalender with value coming from DB

2 Answers 39 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Akki
Top achievements
Rank 1
Akki asked on 18 May 2012, 01:36 PM


Hi,
I am using radcalender control in inside radgrid. Value stored in db is of format "7/4/2010 12:00:00 AM". can i assign this value to rad calendar.
Is this possible ?

  <telerik:GridTemplateColumn HeaderText="Start" UniqueName="fispersrt" DataField="fispersrt"
                                Visible="true">
                                <ItemTemplate>
                                <telerik:RadCalendar ID="rdCalendar" runat="server">
                                </ItemTemplate>
                                <HeaderStyle ForeColor="Red" />
                            </telerik:GridTemplateColumn>

Regards,
Akki

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 18 May 2012, 02:05 PM
Hello Akki,

SInce RadCalendar is not a databound control, you cannot bind the value. One suggestion is you can use DatePicker to bind the value. Check the following help documentation which explains more about this.
Data Binding.

Thanks,
Shinu.
0
Akki
Top achievements
Rank 1
answered on 18 May 2012, 04:31 PM
Thanks shinu, it worked.
Tags
Calendar
Asked by
Akki
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Akki
Top achievements
Rank 1
Share this question
or