Hi,
I have a javascript function "func(a,b,c)". I want to dispatch it on the "onClientLoad" event with the parameters, something like:
onClientLoad="func('paramA','paramB','paramC')";
How can i perform it? since onClientLoad only gets the function name.
Hi Shiunu,
Thanks, but the problem is I need to generate the onClientLoad call dynamically, to every radcombobox which is on a grid row. therefore, using your solution will create a lot of functions to call them, instead of just calling one function with different parameters.
I guess you know that OnClientLoad get's two parameters.
The first one is the ComboBox itself.
function OnCLLoad(sender, args) {
alert(sender._uniqueId);
}
This gives you full access to the client object model.
And (just for an example) you can use (I did once) ToolTip to pass extra information.
--In this case don't forget to reset it in the function :)
So - if it helps - you can "select the action by _uniqueId" or something else like this.