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

Forums / Suggestions / Catgory to show on Grid.

Catgory to show on Grid.

3 posts, 0 answered
  1. IQworks
    IQworks avatar
    27 posts
    Registered:
    24 Dec 2008
    11 Apr 2010
    Link to this post
        Hi, 
        Dont even know how to use everything yet, but it would be helpful if the category would show on the gird, like for all news module items. If to much for the grid, then perhaps a tool tip over the title that would display more details for the row ?
       thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    11 Apr 2010
    Link to this post
    Hello IQworks,

    MapNewsItemsList.ascx external template and add the ClientTemplate declaration shown below inside ClientTemplatesHolder.

    </telerik:ClientTemplate>
         <telerik:ClientTemplate ID="Category" Name="Category" runat="server">
         {#MetaFields.Category#}
     </telerik:ClientTemplate>

    Then add a new GridTemplateColumn to the RadGrid control

    <telerik:GridTemplateColumn
                     UniqueName="Category"
                     HeaderText="Category"
                     SortExpression="Category">
    </telerik:GridTemplateColumn>

    Modify DataBindGrid function and add Category metakey to the  requiredMetaFields variable

    var requiredMetaFields = ['Title', 'Author', 'Source', 'Publication_Date', 'Expiration_Date', 'Category'];


    Greetings,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. IQworks
    IQworks avatar
    27 posts
    Registered:
    24 Dec 2008
    12 Apr 2010
    Link to this post
    Thanks again Ivan, I will give this a try.
Register for webinar
3 posts, 0 answered