Hello there.
I'm having a little bit of a trouble trying to update a WebCombo using AJAX. I have tried to populate the combo either in the BeforeDropDown and EditKeyUp events, but as i am able to make the ajax call, it always throws a javascript error. I have been diving into the code and found out that this error is thrown when i set something like this:
but everything goes fine if I set:
webCombo.ClientSideEvents.BeforeDropDown = "beforeDrop";
My WebCombo is embedded as EditorControl of an Infragistics UltraGridColumn and I'm using Net Advantage for .NET 2007 vol3 CLR 2
So, if I'm not mistaken, the ClientSideEvents are not being properly handled when you use parenthesis.. but I must send parameters to this javascript function.. Is there a workaround or am I trying to do something the wrong way?
Any help is appreciated.
Greetings.
Thanks a lot for your quick response, Vince.
I'm working in sort of a complex project and I really need those parameters, as I have to get from there even the connection string for the DB i'm going to get the data. I'm guessing I'll have to look for another way to do this. I'll sure find something out to make this work XD
Anyway, will there be some kind of upgrade to make this ClienSideEvent handlers accept extra parameters sooner or later?
Thanks.
WebCombo's client-side event handlers can only take the name of the JavaScript function. Its parameters are pre-defined and can't be changed.
As for a workaround, that would depend on what kind of information you'd need - you might have it available already, either from the parameters provided by WebCombo, or that you can get in some other fashion.