Not able to bind value to datepicker control

2 posts, 0 answers
  1. ASAP Developer
    ASAP Developer avatar
    12 posts
    Member since:
    Sep 2013

    Posted 23 Oct 2013 Link to this post

    Hi There,
    I need to use datapicker control in a tabstrip which is in a grid control. I am trying to bind date value to my datapicker control but it's coming as blank.
    Following are different ways i have tried:

    .Value("\\#= storageCharge.storageEndDate #\\")
    .HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()


    .Value("#= storageCharge.storageEndDate #")
    .HtmlAttributes(new { style = "width:100px" }).ToClientTemplate()

    Also if i bind the same way to a input control it works:

    <input type="text" onchange="javascript:calcStorageFees()" value="#= storageCharge.storageEndDate #" id="strDate" on name="strDate" />
  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2272 posts

    Posted 25 Oct 2013 Link to this post


    You could try the same approach as the one with input through the HtmlAttributes method.
    .HtmlAttributes(new { value = "#:kendo.toString(endDate, 'd')#" })

    I hope that this information was helpful.

    Dimiter Madjarov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top