This is a migrated thread and some comments may be shown as answers.
Need simplest way to send value
1 Answer 17 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Baurzhan
Top achievements
Rank 1
Baurzhan asked on 01 Mar 2011, 06:33 AM
I need a simplest way to send Calendar value in POST query to my controller.

1 Answer, 1 is accepted

Sort by
0
Shane
Top achievements
Rank 1
answered on 25 Mar 2011, 03:53 AM
In the onChange function you can use this:

encodeURIComponent(formatDate(e.date))

function formatDate(date) {
    return $.telerik.formatString('{0:dd/MM/yyyy}', date);
}

In your post (or Ajax post) to send a HtmlEncoded copy of the date that was selected. Then you can convert from a string to a DateTime object in your controller.

Regards,

Shane
Tags
Calendar
Asked by
Baurzhan
Top achievements
Rank 1
Answers by
Shane
Top achievements
Rank 1
Share this question
or