Quantcast
Viewing all articles
Browse latest Browse all 7205

OBSOLETE - Inserting a new row in ASPxGridView with the image preview enabled

UPDATED:

Starting with version v2015 vol 1 (v15.1), this functionality is available out of the box. Simply set the GridViewDataBinaryImageColumn.PropertiesBinaryImage.EditingSettings.Enabled property to True to activate it. Please refer to the ASP.NET Data Grid - Binary Image Editor (Coming soon in v15.1) blog post and the Binary Image Column Editing demo for more information.

If you have version v15.1+ available, consider using the built-in functionality instead of the approach detailed below.

This example shows how to use ASPxUploadControl on the ASPxGridView's Edit Form to preview an image before performing data update.

See Also:
OBSOLETE - Image Upload in ASPxGridView
How to bind the ASPxBinaryImage to a field which contains image data stored as OLE object

Question Comments

Added By: David Black 2 at: 2/27/2015 9:14:41 AM    

So do i have to create a custom edit form just to add an an image? Not sure why the software doesn't generate the upload code for you.

I am familiar with WinForms but the ASP model is new to me I tried to follow the example below but received an error on 'ConvertOleObjectToByteArray' I am sure there is something I need to include.

Any help in beginners terms for customizing would be greatly appreciated.

Added By: Alessandro (DevExpress Support) at: 2/27/2015 10:22:46 AM    Hi,

I see that you already posted this question to the T213772: ASPxGridView - How to change image in the Edit Form ticket. It is currently in our processing queue. We will handle it soon. Please bear with us.Added By: Rosario Terranova at: 6/10/2015 1:24:41 AM    

An question for you.
The metods callbackPanel_Callback and ucImage_FileUploadComplete  as are declared and what they do on the server (VB)?

Added By: Rosario Terranova at: 6/10/2015 1:47:52 AM    

An question for you.
The metods callbackPanel_Callback and ucImage_FileUploadComplete  as are declared and what they do on the server  INSIDE(VB)?

Added By: Mike (DevExpress Support) at: 6/11/2015 4:37:53 AM    

Hello Rosario,

To process your recent post more efficiently, I created a separate ticket on your behalf: T254295: E2933 - How the ucImage_FileUploadComplete and callbackPanel_Callback events are used. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: jose pais 1 at: 10/19/2015 11:21:05 AM    

Do you have a code sample in vb.net with asp.net just with .PDF file?

Added By: Helen (DevExpress Support) at: 10/20/2015 1:03:29 AM    Hello Jose,

I see that you asked the same question in the T301975: ASPxGridView - How to use upload function in a when editing a row ticket. Please refer to it for further assistance. 

Viewing all articles
Browse latest Browse all 7205

Trending Articles