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

Upload a image in the RadGridView column

6 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Samir
Top achievements
Rank 1
Samir asked on 04 May 2012, 08:43 AM
Helo,i have a problem to upload a image in the radgridview column.think you.I search how  i can upload image in radgridview column???

6 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 04 May 2012, 09:34 AM
Hello,

 RadGridView may just display images using the GridViewImageColumn for example.

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Samir
Top achievements
Rank 1
answered on 04 May 2012, 09:58 AM
yes i can show the image in column image ;but my problem is to upload a image in radgridview   column.
think you Didie
0
Dimitrina
Telerik team
answered on 04 May 2012, 12:54 PM
Hello,

The GridViewColumns does not provide any logic for image upload/conversion.

I am not sure what do you mean by "upload a image in radgridview", do you mean to have an upload button in the column?

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Samir
Top achievements
Rank 1
answered on 04 May 2012, 01:19 PM
Hello;Yes exactly.tht's the good meaning.
Think you
0
Dimitrina
Telerik team
answered on 04 May 2012, 01:32 PM
Hello,

 You can define a CellTemplate/CellEditTempate for the GridViewDataColumn and place there the button you would like. Then handle the click event of the button and implement your own logic.

I hope this helps.

All the best,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Samir
Top achievements
Rank 1
answered on 04 May 2012, 01:38 PM
This is the code <telerik:GridViewColumn Width="90" Header="image">

                            <telerik:GridViewColumn.CellTemplate >

                                <DataTemplate >
                                    <telerik:RadButton Content="Attribuer" Click="RadButton_Click" Cursor="Stylus" CornerRadius="2"/>  </DataTemplate>

                            </telerik:GridViewColumn.CellTemplate>

                                </telerik:GridViewColumn>

but i can't show the button in browser??
think y
Tags
GridView
Asked by
Samir
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Samir
Top achievements
Rank 1
Share this question
or