Att:Telerik-team Custom DateParser How do I set my date as valid?

2 posts, 0 answers
  1. Henrik
    Henrik avatar
    30 posts
    Member since:
    Dec 2010

    Posted 24 Jan 2011 Link to this post

    My custom parser works like a charm but now I need to know how to set the style of DateInputBox to valid.

    I override the dateParser function like this.

    Telerik.Web.UI.RadDateInput.prototype.parseDate = function (value, baseDate) {
      
    //Some logic here
    //
    //
      
    //Set new date
    sender.set_textBoxValue(NewDate.format(sender._displayDateFormat));
    //Need to set box to valid state
      
    }

    Anyone with a fast answer to this ...
    //Henrik
  2. Henrik
    Henrik avatar
    30 posts
    Member since:
    Dec 2010

    Posted 25 Jan 2011 Link to this post

    Solved!
    I did wrong ...
    Need to return my parsed date as date object ...

    //Henrik
Back to Top