MVCxBinaryImageEditProperties.StoreContentBytesInViewState Property
Gets or sets a value that specifies whether the editor’s content (that is an array of bytes) should be stored within its view state between postbacks.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to maintain the editor’s content bytes within a view state; otherwise, false. |
Remarks
If the editor’s view state is enabled, you can use the StoreContentBytesInViewState property to control the editor’s ability to store its binary content in a view state between postbacks.
By default, the StoreContentBytesInViewState property is set to false. In this case, the editor’s image content represented by a byte array is not preserved within a view state across HTTP requests (which are performed using the postback technology). And, the editor doesn’t display its image after a postback. To make the editor display its image, you should manually bind the editor (or a container within whose template the editor resides) to data on each postback.
In order to preserve the editor’s content in a view state between round trips to the server, set the StoreContentBytesInViewState property to true. Note however, that this setting might affect your application performance, because it might lead to a page size increase. Especially, this might take place when an Binary Image editor is placed within a list element’s template and cloned several times within a page.