More in this section

Forums / Developing with Sitefinity / Radgrid client side in templates NewsItemsList

Radgrid client side in templates NewsItemsList

3 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    01 Jun 2010
    Link to this post
    Hi,

    I have two problems using Radgrid client side in NewsItemsList templates
    How to link my thumb or image paths in the NewsList templates using client side code. Using my metafield like {#Metafield.Image#} is working perfect outside the img scope, but not inside ImageUrl. Some tips to link
    after expose in the Metafields client side.

    <telerik:ClientTemplate Name="Photoproj" runat="server">
    <
    asp:Image ID="Image1" runat="server" ImageUrl="<%= #MetaFields.Photoproj# %>" width="50px" height="40px" ></asp:Image>

    </
    telerik:ClientTemplate>

    Other, I have added in this same template one RadGrid DeleteCommand="ItemsGrid_ItemDeleted" to fire backside but is not firing like if one args.set_cancel(true) is set. Exist some way to fire my event using this template backside subcribing some event.

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Jun 2010
    Link to this post
    Hello Pierre,

    • Inside of every client template you are free to implement any kind of html we wish to (not that server controls are not allowed).
    • You cannot use server events like DeleteCommand for the RadGrid, because the control is client side bound through web service and server events are not fired.

    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. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    01 Jun 2010
    Link to this post
    Hi Ivan,

    Thanks i will add my delete code as webservice linked to others, but in the imageUrl sample one could you suggest how to link my metafield client side using simple img tag. i have tested many types client and server and is not firing my meta.

    http://www.sitefinity.com/devnet/forums/sitefinity-3-x/developing-with-sitefinity/how-to-bind-content-to-any-control-property.aspx

    thanks.
Register for webinar
3 posts, 0 answered