Setting an Image on the GridViewImageColumn for entire column

3 posts, 0 answers
  1. Ryan
    Ryan avatar
    8 posts
    Member since:
    Oct 2012

    Posted 30 Dec 2009 Link to this post

    Hello,

      Is it possible to set the image on a GridViewImageColumn without having to set the URL inside the actual object you are binding to?  For example can I do something like this:

    <telerikGrid:GridViewImageColumn DataMemberBinding="../Images/MyImage.jpg" ImageStretch="None" />

  2. Ryan
    Ryan avatar
    8 posts
    Member since:
    Oct 2012

    Posted 31 Dec 2009 Link to this post

    If anyone needs this - I answered my own question, use the data template.  Example:

     

     

    <telerikGridView:RadGridView.Columns>

     

     

     

        <telerikGridView:GridViewColumn UniqueName="img" Width="28">

     

     

     

            <telerikGridView:GridViewColumn.CellTemplate>

     

     

     

                <DataTemplate>

     

     

     

                    <Image Stretch="None" Source="../Images/MyImage.png" HorizontalAlignment="Center" />

     

     

     

                </DataTemplate>

     

     

     

            </telerikGridView:GridViewColumn.CellTemplate>

     

     

     

        </telerikGridView:GridViewColumn>
    </telerikGridView:RadGridView.Columns>

     

  3. DevCraft banner
  4. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 07 Mar 2010 Link to this post

    Please who can tell me where to set the image on the GridViewImageColumn based on the image attached ?
    Also I have a very hard time to do anything with the grid in Blend 3 UI only not relying on doing things by xaml code.

    Same problem when I want to have a certain Style for a column.  How do you do things with Blend 3 UI only ???
Back to Top