Wisej.Web.JavaScript ClientEvent
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represent a JavaScript event and the corresponding code to execute on the client when the event is fired.
String: Returns or sets the name of the event. Not all events are available to all controls, which events are fired depends on the widget that corresponds to the control. (Default: null
)
String: Returns or sets the JavaScript handler for the event. (Default: ""
)
Wisej.Web.JavaScript ClientEventCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Represents a collection of JavaScript events and their corresponding handler code.
Int32: Returns the number of items in the collection.
ClientEvent: Returns the ClientEvent element at the specified index .
Adds the ClientEvent instance to the collection.
Removes all the ClientEvent items from the collection.
Checks whether the specified item exists in the collection.
Returns: Boolean. True of the collection contains the specified item .
Returns the position of the specified item in the collection.
Returns: Int32. The index of the specified item or -1 if not found.
Inserts the item into the collection at the specified index .
Removes the item from the collection.
Returns: Boolean. True of the specified item was found and removed from the collection.
Removes the ClientEvent item at the location index .
CollectionChangeEventHandler Fired when the collection has changed.
Wisej.Web.JavaScript
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.2.0.0)
Allows controls to execute javascript code.
Initializes a new instance of the JavaScript without a specified container.
Initializes a new instance of the JavaScript class with a specified container.
Name | Type | Description |
---|---|---|
Object: Returns or sets the object that contains programmer-supplied data associated with the JavaScript extender. (Default: null
)
Returns true if the JavaScript extender can offer an extender property to the specified target component.
Returns: Boolean. true if the JavaScript class can offer one or more extender properties; otherwise, false.
Removes all scripts.
Retrieves the JavaScript code associated with the specified control. The JavaScript code will be execute on the client when the control is created or refreshed.
Returns: String. A String containing the javascript code for the specified control.
Returns the collection of JavaScript event handlers associated with the control.
Returns: ClientEventCollection.
Retrieves the JavaScript file associated with the specified control. The JavaScript code will be execute on the client when the control is created or refreshed.
Returns: String. A String containing the name of the javascript file for the specified control.
Associates JavaScript code with the specified control.
Associates JavaScript file with the specified control.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
item
ClientEvent item to add to the collection.
item
ClientEvent items to find in the collection.
item
ClientEvent item to locate in the collection.
index
Position where to insert the item .
item
ClientEvent item to insert into the collection.
item
ClientEvent instance to remove from the collection.
index
Position of the item to remove from the collection.
target
The target object to add an extender property to.
control
The Control for which to retrieve the JavaScript code.
control
The Control to attach the JavaScript event handlers to.
control
The Control for which to retrieve the JavaScript file.
control
The Control to associate the JavaScript with.
script
The JavaScript code to execute when the control is created.
control
The Control to associate the JavaScript file with.
file
The JavaScript file to execute when the control is created.
All wisej components implement this interface.
Allows an object to serialize itself.
container
An IContainer that represents the container of the JavaScript extender.