+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Dynamic Content ItemDataBound

Dynamic Content ItemDataBound

3 posts, 0 answered
  1. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    21 May 2015
    Link to this post

    I want to .GetValue of a dynamic content item in the itemdatabound event handler.

     I've tried to cast like this:

    DynamicContent testimonialItem = (DynamicContent)e.Item.DataItem;

    But this doesn't get give me the .GetValue and .SetValue options?

  2. Arno
    Arno avatar
    249 posts
    Registered:
    08 Sep 2010
    21 May 2015
    Link to this post

    You need to include this:

    using Telerik.Sitefinity.Model;
     ​

  3. David
    David avatar
    114 posts
    Registered:
    19 Jul 2012
    21 May 2015 in reply to Arno
    Link to this post
    Thank you that did it.
3 posts, 0 answered