More in this section

Forums / Developing with Sitefinity / Trouble with RadGrid and Image Content

Trouble with RadGrid and Image Content

2 posts, 0 answered
  1. Tim
    Tim avatar
    7 posts
    13 Aug 2009
    14 Oct 2009
    Link to this post
    I am using LinqToSQL and I am attempting to recreate an upload control similar to this example...

    1. I have used the designer to create the dbml of sf_contentbase table
    2. I am using a linqdatasource on the control itself
    3. I filter the content with a where statement.
    3. The ThumbnailUrl is not available to bind because it is a metafield.

    Can you please point me in the direction of going about binding this metafield to my column?


  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    15 Oct 2009
    Link to this post
    Hello Tim,

    Thank you for using our services.

    If you are working with items from one of the Generic Content based modules, or a custom one based on Generic Content, the best approach would be not to use a LINQ data source. You should bind the RadGrid to a custom object data source, that is of type Telerik.Cms.Engine.ContentManager. If for example we are working with news items we would instantiate this object data source to to a content manager that has a provider set to a news provider. I have prepared a sample how to bind the grid to an object data source of the needed type, and how to display items from the data source. You can build on top of it similar logic for inserting, and updating content items. Bellow is a link on the Content Items API walkthtrough that will help you understand how to work with content items:

    Best wishes,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered