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

Rad calendar selected date from database table..

1 Answer 101 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
S
Top achievements
Rank 1
S asked on 20 Dec 2011, 06:50 PM
Hi,


Can some please help me in getting date from database table column..ASAP..

 <MasterTableView DataKeyNames="ID" CommandItemDisplay="TopAndBottom"  EditMode="PopUp" DataSourceID="DS1">

I was using the above code for editing data with a pop-up.
My edit is working fine...but the add button... is not l working..It says the specific cast is Invalid...once I remove the date fields then i get the add button working...

My field:
   <telerik:GridBoundColumn UniqueName="TechnicalDateofEntry" HeaderText="TechnicalDateofEntry" DataField="TechnicalDateofEntry" DataFormatString="{0:d}">

Edit template:
                            <td>
                               DateofEntry  
                            </td>
                            <td>
                                <telerik:RadDatePicker ID="TextBox17" runat="server"  SelectedDate='<%# Bind( "TechnicalDateofEntry") %>'>
                                </telerik:RadDatePicker>
                            </td>
                 
 <InsertParameters>
                  
                    <asp:Parameter Name="TechnicalDateofEntry" Type="DateTime" />
                   
                                       
                </InsertParameters>


.I have the attached error...plz let me know wats causing this issue..Am i missing casting anywhere...all I declared is date time..

I was update the records with out any casting...Why is it asking cast for inserting the data...????


followed the below article:


http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/templateformupdate/defaultcs.aspx  

please advise
Thanks a lot..  


            

1 Answer, 1 is accepted

Sort by
0
S
Top achievements
Rank 1
answered on 20 Dec 2011, 07:57 PM
Got this issue fixed...tried the below code..
ASPX:
 <telerik:RadDatePicker ID="dtStart" runat="server" Width="200px" DbSelectedDate='<%# Bind("StartDate") %>'/> 
Tags
Calendar
Asked by
S
Top achievements
Rank 1
Answers by
S
Top achievements
Rank 1
Share this question
or