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

how to get image column in rad grid auto generated column

3 Answers 239 Views
Grid
This is a migrated thread and some comments may be shown as answers.
vijay
Top achievements
Rank 1
vijay asked on 04 Apr 2011, 03:09 PM
hello

        I have image column in database and i need to retrive the value from image url data from db to my auto generated column in rad grid

please reply'

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 07 Apr 2011, 10:06 AM
Hi,

The binary image columns do not get autogenerated. You can declare a GridBinaryImageColumn manually in order to display the images. A sample of GridBinaryImageColumn is available in the following online demo:
Binary Images and Upload in Grid

Greetings,
Tsvetina
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
vijay
Top achievements
Rank 1
answered on 08 Apr 2011, 06:01 AM
Yes your reply is useful.. But i need to bind image url in autogenerated column..

And how to bind auto generated column as Image column(  GridImageColumn)

here i have attach screen shot in that grid color in side cell automatically change according some value from database(orange).
columns in the grid autogenerated . i have to change color as image..


thanks in advance

0
Tsvetina
Telerik team
answered on 13 Apr 2011, 12:03 PM
Hello,

As I previously said, RadGrid does not autogenerate image columns and the autogenerating logic cannot be modified. An alternative solution would be to create your grid columns manually in code-behind based on the fields datatype for example. These help articles deal with dynamic column/grid creation:
Changing the grid structure dynamically on postback
Programmatic creation

Kind regards,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
vijay
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
vijay
Top achievements
Rank 1
Share this question
or