This is a migrated thread and some comments may be shown as answers.

Set value of picturebox from a field

1 Answer 274 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 29 Oct 2014, 01:40 PM
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

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 03 Nov 2014, 08:28 AM
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.

 
Tags
General Discussions
Asked by
Julien
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or