MVCxClientBinaryImage.Cast(obj) Method
Converts the specified object to the MVCxClientBinaryImage type.
Declaration
static Cast(
obj: any
): MVCxClientBinaryImage
Parameters
| Name | Type | Description |
|---|---|---|
| obj | any | The object. |
Returns
| Type | Description |
|---|---|
| MVCxClientBinaryImage | The converted object. |
Remarks
Call the static Cast method to cast the specified client object to the MVCxClientBinaryImage type.
Example
Convert the event source object passed to a client event’s handler.
<ClientSideEvents Init="function(s, e) {
var clientObject = MVCxClientBinaryImage.Cast(s);
}" />
Convert a client object accessed by its BinaryImageEditSettings.Name property value.
@Html.DevExpress().BinaryImage(
settings => {
settings.Name = "MVCxClientBinaryImage1";
...
var clientObject = MVCxClientBinaryImage.Cast('MVCxClientBinaryImage1');
See Also