This is a migrated thread and some comments may be shown as answers.
Selection without Action
1 Answer 38 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.
MIchel Borges
Top achievements
Rank 1
MIchel Borges asked on 21 Mar 2011, 08:33 PM
Hi!

I'm using telerik calendar and I would like to select dates without call an Action. Is it posible select dates using clientside API?
The folowing code show my code, but didn't work.

@Html.Telerik().Calendar().Name("dt").Value(DateTime.Today).Selection(sd => sd.Dates(new List<DateTime>() { DateTime.Today.AddDays(2) }))

Thanks.
Michel Magalhães

1 Answer, 1 is accepted

Sort by
0
Shane
Top achievements
Rank 1
answered on 25 Mar 2011, 03:42 AM
Hi Michel,

I ran into a similar problem and had to solve it using jQuery:
$(".t-action-link").live('click', function (event) {
    event.preventDefault();
});
You must attach using live() as changing between months creates new DOM elements.

Also, you must supply an action in the server-side code for the above to work. The "Action" doesn't have to actually exist, it just needs something in there.

Regards,

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