Rad calendar selected date from database table..

2 posts, 0 answers
  1. S
    S avatar
    10 posts
    Member since:
    Dec 2011

    Posted 20 Dec 2011 Link to this post

    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..  


                
  2. S
    S avatar
    10 posts
    Member since:
    Dec 2011

    Posted 20 Dec 2011 Link to this post

    Got this issue fixed...tried the below code..
    ASPX:
     <telerik:RadDatePicker ID="dtStart" runat="server" Width="200px" DbSelectedDate='<%# Bind("StartDate") %>'/> 
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top