locked
How to set custom date format in telerik:GridTemplateColumn ? RRS feed

  • Question

  • User-1755706901 posted

    Hi all,

    I want to set my own date format in telerik gridtemplatecolumn .I searched so many links but i didn;t get correct solution.Can any one suggest to solve my issue

    Thanks in advance

    Wednesday, October 8, 2014 12:40 AM

All replies

  • User1636150863 posted

    Hi,

    Check if following is useful for you,

    <telerik:GridDateTimeColumn SortExpression="TimeKlar_Neu" DataType="System.DateTime" PickerType="DatePicker" ItemStyle-Width="100" HeaderStyle-Width="100" EditDataFormatString="dd/mm/yyyy"  HeaderText="DateTimeYourColumnName"  DataFormatString="{0:dd/mm/yyyy}"  DataField="YourDateFieldColumn" UniqueName="DateTimeYourColumnName">
    </telerik:GridDateTimeColumn>

    Regards,

    Ajay

    Wednesday, October 8, 2014 12:56 AM