export to PDF , images not showing, Ajaxified Grid, images set in Grid.ItemDatabound

4 posts, 1 answers
  1. Neal
    Neal avatar
    114 posts
    Member since:
    Apr 2008

    Posted 14 Oct 2015 Link to this post

    Hi

     

    I have an ajxified radgrid, so I load the images per item (row) in the ItemDataBoundEvent as per

        Image img = (Image)item.FindControl("PartImage");

        img.ImageUrl = "~/PartImages/" + Imgurl;    //ImgUrl is retrieved elsewhere from the datasourcerow.

    Using the demo, There is the issue of RadCodeBlock required

    in / around

    ImageUrl='<%# String.Format("Images/Sushi/{0}.jpg", Eval("ItemID")) %>'
                                    AlternateText="Sushi image" Width="100px" Height="75px" Style="border: 1px solid #000000;">

     

    Is there a way programmatically to include the image in the exported PDF file?

    or

    How would I wrap the Markup as per Sushi above to allow for the ajaxification?

     

    thx

    Neal

  2. Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 14 Oct 2015 Link to this post

    Hello,

    I am afraid that the provided information is not clear enough to understand what is the exact issue you encounter and advice you how to resolve it. Could you elaborate a bit more what exactly you want to achieve and what is the problem with your current implementation?

    Regards,
    Pavlina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Neal
    Neal avatar
    114 posts
    Member since:
    Apr 2008

    Posted 14 Oct 2015 in reply to Pavlina Link to this post

    Hi Pavlina

    Ok,..I want to have my images in my RadGrid showing / exported in my PDF .

    My grid is ajaxified, (via RadAjaxManager.)

    My images are set in code behind on the Grids OnItemDataBound event.

    The Telerik Sushi Example is not ajaxified and does not bind the image in code behind.

     My images do not come thru to the PDF.

    How do I get them into the pdf?

    Rgds

    Neal

  4. Answer
    Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 19 Oct 2015 Link to this post

    Hi,

    The exporting feature of the control works with regular postback only. Once the grid is ajaxified, it should be cancelled before exporting as described in the article below:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/ajaxified-radgrid/what-you-should-have-in-mind/export-from-ajaxified-grid

    Regards,
    Pavlina
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top