Nullable DateTime field does not contain Calendar control?

Last post 06-01-2009 7:00 AM by sjnaughton. 1 replies.

Sort Posts:

  • Nullable DateTime field does not contain Calendar control?

    06-01-2009, 5:15 AM
    • Member
      1 point Member
    • diegoalonso
    • Member since 05-21-2007, 8:10 PM
    • Posts 8

    I have a nullable Datetime field, however i want to pick thats value using calendar control.I thought dynamic data framework doing this default but it doesnt.

    I try to use Uhint attribute like below.Do u have any information about that situation?

    Regards

     

        [MetadataType (typeof(CSI_TempMetaData))]
        public partial class CSI_Temp
        {
    
        }
        public class CSI_TempMetaData
        {
            public int ROWID;
    
            public string REC_TYPE;
    
            public string REP_CORP;
    
            public string DIVISION;
    
            public string UNITS_OF_SALE;
    
            public string ISPC;
    
            public string PRODUCT_CODE;
    
            public string PRODUCT_NAME;
    
            public string MPG_CODE;
    
            public string EXP_MARKET_CODE;
    
            public string CURRENCY;
    
            public string QTY;
    
            public string GROSS_SALES;
    
            public string NET_TL;
    
            public System.Nullable<int> TRN;
    
            [UIHint("DateTime")]
            public System.Nullable MYDATE;
        } 
     
  • Re: Nullable DateTime field does not contain Calendar control?

    06-01-2009, 7:00 AM
    Answer
    • Star
      12,356 point Star
    • sjnaughton
    • Member since 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,571
    • TrustedFriends-MVPs

    Hi Diegoalonso, what version of DD are you using?

    If it is the release version .Net 3.5 SP1 then you can add this via copying the FieldTemplate (you will need DateTime_Edit.ascx and AjaxToolkitFixes.css and a reference to AJAX Contro Toolkit) form the Preview 4 on codeplex

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
Page 1 of 1 (2 items)