This is a migrated thread and some comments may be shown as answers.

link datepicker to view

3 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stijn Kuppens
Top achievements
Rank 1
Stijn Kuppens asked on 23 Sep 2009, 10:34 AM
Is there also a possibility to link the selected date to some view in the MVC application?
How should i do this?

I'm trying to make somewhat of a Logpage.
The purpose is to select a date and then have the choice to add come comments to that date and/or view the comments for that selected date.

Regards,

stijn

3 Answers, 1 is accepted

Sort by
0
Rommel Manalo
Top achievements
Rank 1
answered on 23 Sep 2009, 10:43 AM
I think you should consider the JQuery Documentation for more jQuery UI Functionalities, the telerik proof of concepts examples here are just wrappers. You can visit this link http://jqueryui.com/demos/datepicker/
0
Stijn Kuppens
Top achievements
Rank 1
answered on 24 Sep 2009, 08:02 AM
Maybe i'm not that good in looking but I can't seem to find anything that gives me a clue how to show some events that are stored in a DB with JQuery...
I've found an eventscalendar that uses Jquery but the events are stored in the controller...

I would like to reuse my views that i have filtered with the date that is selected on the Jquery calendar.

0
Atanas Korchev
Telerik team
answered on 25 Sep 2009, 08:10 AM
Hi Stijn Kuppens,

Perhaps you could use the OnSelect event of the date picker. Here is some sample code:

<script type="text/javascript">

function onDateSelect(dateText, datePicker) {
    alert(dateText);   
}

</script>
    <% Html.jQuery().DatePicker()
                    .Name("dateField")
                    .OnSelect(() =>{%>onDateSelect<%})
                    .Render(); %>

Regards,
Atanas Korchev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Stijn Kuppens
Top achievements
Rank 1
Answers by
Rommel Manalo
Top achievements
Rank 1
Stijn Kuppens
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or