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

[Solved] Using JQuery to capture change in a Telerik MVC ComboBoxFor

2 Answers 232 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jmo
Top achievements
Rank 1
jmo asked on 17 Mar 2011, 12:38 PM
I am using the following code to capture change text in HTML inputs:
   
$(document).ready(function() {
     $(':input', document.myForm).bind("change", function() { setConfirmUnload(true); });
});

this works fine for normal textboxes and checkboxes.

I'm using Telerik's MVC ComboBoxFor which renders input tags, but does not seem to trigger the above JQuery.

I've also asked this question on Stackoverflow in case I don't get an answer here.

UPDATE: answered on the SO link, pretty obvious really, using client side events.

2 Answers, 1 is accepted

Sort by
0
Corey Gaudin
Top achievements
Rank 2
answered on 27 Apr 2011, 07:35 PM
This is not working for me. Binding to the ID with the Change event is not working. Is there anyway to create events of onchange without setting it in the Razor code? Doing it completely in javascript?


EDIT:

Ok after reading on telerik its $('....').bind('valueChange', function(e) {

});


Is there any documentation for all of the event triggers for the Combobox?
0
nachid
Top achievements
Rank 1
answered on 27 Apr 2011, 11:12 PM
Have you tried this ?
Tags
ComboBox
Asked by
jmo
Top achievements
Rank 1
Answers by
Corey Gaudin
Top achievements
Rank 2
nachid
Top achievements
Rank 1
Share this question
or