Hi,
I'm extending the radcombobox. When i add a javascript in my class there is no problem:
This way, my script is called.
But when i place the script in an external .js file, the combobox stays closed when clicked.
and the CheckedComboBox.js file:
what am i doing wrong???
thx in advance,
Glenn
I'm extending the radcombobox. When i add a javascript in my class there is no problem:
public CheckedComboBox() |
{ |
OnClientDropDownClosing = "DropDownClosingEventHandler"; |
} |
protected override void OnPreRender(EventArgs e) |
{ |
string script = @"function DropDownClosingEventHandler(){alert(""test"");}" |
Page.ClientScript.RegisterClientScriptBlock("DropDownClosingEventHandler", script, true); |
} |
But when i place the script in an external .js file, the combobox stays closed when clicked.
protected override void OnPreRender(EventArgs e) |
{ |
string path = ResolveClientUrl("CheckedComboBox.js"); |
ScriptManager.RegisterClientScriptInclude(this.Page, |
getType(),"DropDownClosingEventHandler", path); |
base.OnPreRender(); |
} |
function DropDownClosingEventHandler(sender, args) |
{ |
alert("test"); |
} |
what am i doing wrong???
thx in advance,
Glenn