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

Forums / General Discussions / Widget Templates

Widget Templates

2 posts, 0 answered
  1. AmrElsayed
    AmrElsayed avatar
    87 posts
    Registered:
    18 Jul 2012
    15 Mar 2011
    Link to this post
    Hi,

    I need to ask some questions for editing widget templates:
    1- can I change the appearance of the "blog comments" control in the "Blog posts single item" template, I need to implement my custom "blog comments control" to replace the default one?
    2- I need to add a custom control to the "Blog Posts single item" control, I created a custom control on my website, and I add the registration of this control in the "Blog Posts - Single" widget like:
    <%@ Register src="~/Custom/MyControl.ascx" TagPrefix="Custom" TagName="MyControl"%>
    Then I added the definition of the control in the html mark-up of the control like:
    <Custom:MyControl Id="someID" runat="server"></Custom:MyControl>
    I got an error "unknown server tag",
    any support?

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    16 Mar 2011
    Link to this post
    Hi AmrElsayed,

    1. If you want to change the appearance you can do this only using css. If you need to make changes to the comments functionality you need to create a custom control that inherits from ContentView and add it inside DetailsView template.

    2. Please make sure that you have compiled the application after the changes you made.It  looks like  the template does not recognize the tag you use.

    All the best,
    Ivan Dimitrov
    the Telerik team
2 posts, 0 answered