Hello,
will you please give advise how to (1) write Javascript methods to be found by Call() or Eval() methods from C# and how to (2) use jQuery in JS?
Thank you very much!
To create a javascript function in the context of the widget use:
this.functionName = function() {}
If you just declare the function or assign it to non-scoped variable it’s all global (scoped to window) in Javascript.
See attached modified sample. You can also use VS file nesting extension (https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileNesting) to create really cool self contained control/widgets. Also in the modified sample. It’s not necessary, but it’s useful.
To load jquery simply add it to Default.html.
Hi Libor,
I checked Wisej.UserComboBoxLookup_sample.zip and
When you add javascript methods add this.
I send you Wisej.UserComboBoxLookup_sample.zip with the patches
For JQuery I’ll send you a second answer shortly.
Wisej version is 2.2.39
More details: https://docs.wisej.com/docs/controls/extenders/javascript
Best.
Kevin (ITG)
Please login first to submit.