Widget
Provides a generic widget that can use most third party javascript widgets.
The Wisej.NET Widget control is the key to integrating the rest of the JavaScript world into a Wisej.NET application. The Widget control allows developers to load custom JavaScript and CSS libraries into their Wisej.NET application at runtime to utilize and containerize custom controls.
The custom-integrated controls are able to be configured and populated from server-side resources and fire server-side events.
For a full list of properties, methods and events see the API documentation.
Features
Server Communication
Delegating communication between a client and server for individual controls on a webpage can be a cumbersome task. Wisej.NET makes this easy by providing the infrastructure to communicate the messages with a few calls.
Client to Server
When working with JavaScript widgets, everything is handled on the client. If you want to send a message to the server you can do so by attaching to the client-side widget event and calling fireWidgetEvent:
When debugging the Widget, make sure to check the Browser console for important messages.
After the Wisej.NET application receives the event data, it delegates it to the corresponding server-side control's WidgetEvent handler, if one exists.
Server to Client
Sending a message to the client-side widget is easy using the Instance dynamic member.
Create a function in your client-side Widget's InitScript:
Then you, can call this method from the server-side Widget instance:
Advanced
JavaScript Widget
Last updated