Set value of picturebox from a field

2 posts, 0 answers
  1. Julien
    Julien avatar
    7 posts
    Member since:
    Sep 2014

    Posted 29 Oct 2014 Link to this post

    Hello,
    I am currently working on a telerik report. I need to assign an image to a picture box depending on the value of a field that I retrieves my datasource .
    I want to use an expression but I do not know how to send the image.

    My two images are stored in the resources of my project.

    Should I create a function that returns me the right image or art that I can retrieve the image directly in the expression.

    kind regards ,

    Julien
  2. Stef
    Admin
    Stef avatar
    3610 posts

    Posted 03 Nov 2014 Link to this post

    Hi Julien,

    Different approaches for setting a PictureBox.Value are listed in the PictureBox article. In case you images are not specified by path or their byte representation, you can use a user function to get the image from the loaded app's resources - User Functions.


    I hope the above information is helpful.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top