This question is locked. New answers and comments are not allowed.
Hi,
I know this somehow seems to have an easy solution but right now I'm stuck, so I need your help.
I have attached a handler to my calendar control where I do an ajax request by using the following snippet:
The request calls SingleUpdate action method where I use Reflection, the propertyName and the new value to update a value in my business object. Action method works fine but it is executed twice. I know that this has something to do with event propagation but I have no lead to follow. Note that the request is executed twice even when I click outside the datepicker or press the tab key or the enter key.
Thanks in advance,
Dimitris
I know this somehow seems to have an easy solution but right now I'm stuck, so I need your help.
I have attached a handler to my calendar control where I do an ajax request by using the following snippet:
<% Html.Telerik().DatePicker() .Name("date") .Value(Model.DateTime.Today) .ClientEvents(events => events .OnChange(() => { %> function(e) { $.post("/SingleUpdate", {
propertyName: propertyName, newValue: newValue }, function(message) { singleUpdateCallback(message); }); <% })).ShowButton(true).Render(); %>Thanks in advance,
Dimitris