More in this section

Forums / Sitefinity SDK / IQueryable<Image> GetAllImages to RadGrid

IQueryable&lt;Image&gt; GetAllImages to RadGrid

2 posts, 1 answered
  1. Kristian
    Kristian avatar
    214 posts
    03 Jun 2010
    18 Feb 2011
    Link to this post
    I am retrieving all the images in my albums and binding them to my rad grid, i see owner is of type guid, but i want to display the user's name. I know how to retrieve this information from the list, but how would I have it displayed into my grid?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    21 Feb 2011
    Link to this post
    Hi Kristian,

    You can use UserManager.GetManager().GetUser(image.Owner) to get the user object. From the user object you can get the username.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 1 answered