Posts

Showing posts with the label DateTime

Issue using SharePoint DateTime Control in custom webpart

Image
Creating a custom web part in SharePoint and use SharePoint's DateTime control but DateTime frame/popup is not working properly i.e. design , font and css etc. Resolution : Use below code in page load event:- dtpInvoiceDate.DatePickerFrameUrl = SPContext .Current.Web.ServerRelativeUrl + "/_layouts/iframe.aspx" ;

Telerik DatePicker Bind with Database Datetime field

<telerik:RadDatePicker ID="ToDate" runat="server" DbSelectedDate='<%# Bind("ToDate") %>'  >  <DateInput ID="DateInput1" runat="server" DateFormat="MM/dd/yyyy" DisplayDateFormat="dd/MM/yyyy">  </DateInput>  </telerik:RadDatePicker> DbSelectedDate : This property don't use to show but it will work