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

[Solved] OnChange event on page load

1 Answer 109 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.
Terry Burns-Dyson
Top achievements
Rank 1
Terry Burns-Dyson asked on 07 Jan 2011, 05:59 PM
I have a scenario where I need to hook into the OnChange of a combobox via id after the initial load. 

Without using ClientEvents, how do I hook into the change event?

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 07 Jan 2011, 06:07 PM
Hello Terry Burns-Dyson,

You can wire change event in Load event handler like this:

.ClientEvents(events => events.OnLoad(() => {
    %>
        function(e) {
            $(this).bind('valueChange', function(e) {
                alert(e.value);
            });
        }
    <%
}))



Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Terry Burns-Dyson
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or