A newer version of this page is available. Switch to the current version.

ASPxClientControl.SetWidth(width) Method

Specifies the control’s width.


    width: number
): void


Name Type Description
width number

An integer value that specifies the control’s width.


Although the SetWidth method is implemented within a base client object, it doesn’t apply to all web controls provided by DevExpress. This method is in effect only for controls whose width can be sensibly changed on the client. For instance, this method is not supported by the following controls: ASPxMenu, ASPxUploadControl, ASPxCheckBox, ASPxFilterControl, ASPxHyperLink, ASPxLabel, ASPxRadioButton, ASPxImageSlider and ASPxClientWebChartControl.

Calling the SetWidth method for a control that doesn’t support modifying its width on the client does nothing.

See Also