GridBinaryImageColumn code behind example

5 posts, 0 answers
  1. Peter
    Peter avatar
    7 posts
    Member since:
    Sep 2008

    Posted 01 Feb 2010 Link to this post

    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
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Karl Wilkens
    Karl Wilkens avatar
    206 posts
    Member since:
    Oct 2012

    Posted 07 Mar 2010 Link to this post

    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.
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 08 Mar 2010 Link to this post

    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.
  6. Peter
    Peter avatar
    7 posts
    Member since:
    Sep 2008

    Posted 08 Mar 2010 Link to this post

    Hi Karl

    all sorted

    Cheers Peter
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017