EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
January 24, 2026, 02:42:41 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
combobox postback problem
Pages: [
1
]
« previous
next »
Print
Author
Topic: combobox postback problem (Read 14983 times)
nijokjose
Newbie
Posts: 3
combobox postback problem
«
on:
August 21, 2013, 11:09:50 AM »
Hi All,
I'm a designer, new to easyui and so excited to use it. I tried a dropdownlist in asp.net for combobox. But the 'SelectedIndexChanged' event doesn't work. I hope this isn't a big issue and someone will be there to guide me.
Thanks in advance.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: combobox postback problem
«
Reply #1 on:
August 21, 2013, 05:26:23 PM »
The combobox plugin is not a server side component. It has not SelectedIndexChanged event but onChange and onSelect events.
Code:
$('#cc').combobox({
onChange:function(newValue, oldValue){
//alert(newValue);
},
onSelect:function(row){
alert(row)
}
});
Logged
nijokjose
Newbie
Posts: 3
Re: combobox postback problem
«
Reply #2 on:
August 21, 2013, 10:34:15 PM »
Thanks for the reply.
But, is it possible to call the server side function onChange or onSelect?
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: combobox postback problem
«
Reply #3 on:
August 22, 2013, 01:48:08 AM »
It is easy to call server side function using $.ajax. Here is the simple example:
Code:
$.ajax({
type:'post',
url:'data.ashx',
contentType:'application/json;charset=utf-8',
dataType:'json',
success:function(result){
//...
}
});
Logged
nijokjose
Newbie
Posts: 3
Re: combobox postback problem
«
Reply #4 on:
August 23, 2013, 10:58:55 PM »
Thanks a lot. It works fine.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...