Upload a image in the RadGridView column

7 posts, 0 answers
  1. Samir
    Samir avatar
    5 posts
    Member since:
    May 2012

    Posted 04 May 2012 Link to this post

    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???
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 May 2012 Link to this post

    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 >>

  3. Samir
    Samir avatar
    5 posts
    Member since:
    May 2012

    Posted 04 May 2012 Link to this post

    yes i can show the image in column image ;but my problem is to upload a image in radgridview   column.
    think you Didie
  4. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 May 2012 Link to this post

    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 >>

  5. Samir
    Samir avatar
    5 posts
    Member since:
    May 2012

    Posted 04 May 2012 Link to this post

    Hello;Yes exactly.tht's the good meaning.
    Think you
  6. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 04 May 2012 Link to this post

    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 >>

  7. Samir
    Samir avatar
    5 posts
    Member since:
    May 2012

    Posted 04 May 2012 Link to this post

    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
Back to Top