I need to copy data from a RadDatePicker Control which is inside a RadGrid using GridTemplateColumn to a Label Control also in the same RadGrid also using GridTemplateColumn when a Session Variable is True. My Situation is if Session Variable is true, Copy data form :
When Session Variable is True, Copy data from this control below
<
telerik:GridTemplateColumn
HeaderText
=
"Start Date"
UniqueName
=
"StartDate"
Visible
=
"false"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
ID
=
"startdate"
Text='<%# String.Format("{0:d}" , Eval("StartDate")) %>'>
</
asp:Label
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
br
/>
<
telerik:RadDatePicker
ID
=
"picker3"
runat
=
"server"
DbSelectedDate='<%# Bind("StartDate") %>'>
</
telerik:RadDatePicker
>
<
asp:CustomValidator
ID
=
"CustomValidator3"
ControlToValidate
=
"picker3"
ErrorMessage
=
"This field was incorrect"
runat
=
"server"
OnServerValidate
=
"CustomValidator1_ServerValidate"
>
</
asp:CustomValidator
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
To Destination Control
<
telerik:GridTemplateColumn
HeaderText
=
"Finish Date"
UniqueName
=
"FinishDate"
>
<
ItemTemplate
>
<
asp:Label
runat
=
"server"
ID
=
"FinishDate"
Text
=
" "
>
</
asp:Label
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
An idea is welcome please