Hi,
The example on the website on how to use GridBinaryImageColumn to update an image in a radgrid does not have a "codebehind" equivalent. Would it be possible to post a simple example how to implement a "RadGrid1_UpdateCommand" where the changed image is stored?
Thanks Peter
4 Answers, 1 is accepted
0
Hello Peter,
You can examine the implementation presented on the following online demo of RadListView for ASP.NET AJAX:
http://demos.telerik.com/aspnet-ajax/listview/examples/firstlook/defaultcs.aspx
Part of it represents how to save the binary array from RadBinaryImage manually in code-behind and propagate the changes in the data source.
Best regards,
Sebastian
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
You can examine the implementation presented on the following online demo of RadListView for ASP.NET AJAX:
http://demos.telerik.com/aspnet-ajax/listview/examples/firstlook/defaultcs.aspx
Part of it represents how to save the binary array from RadBinaryImage manually in code-behind and propagate the changes in the data source.
Best regards,
Sebastian
the Telerik team
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Karl Wilkens
Top achievements
Rank 1
answered on 08 Mar 2010, 12:33 AM
I have applied the code from this example to a radgrid I am using with a GridBinaryImageColumn but when I try to edit/update a record that has no image (or insert) the upload control reports a file count=1 but the length of the stream is either 0 or 1 - basically no file. Any idea what we are doing wrong? The uploaded file's name is reported correctly by the upload control which is curious. Thanks.
0
Hello Karl,
This is indeed a strange issue since the upload control should indicate one file (if uploaded) and the stream should be non-empty. In order to investigate the case, I suggest you prepare a simplified working version of your project (with data source included) and send it enclosed to a regular support ticket. We will examine it locally and will get back to you with our findings.
Kind regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
This is indeed a strange issue since the upload control should indicate one file (if uploaded) and the stream should be non-empty. In order to investigate the case, I suggest you prepare a simplified working version of your project (with data source included) and send it enclosed to a regular support ticket. We will examine it locally and will get back to you with our findings.
Kind regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter
Top achievements
Rank 1
answered on 08 Mar 2010, 11:07 PM
Hi Karl
all sorted
Cheers Peter