More in this section

ContentView

2 posts, 0 answered
  1. Shane
    Shane avatar
    28 posts
    Registered:
    27 Jul 2008
    12 Aug 2008
    Link to this post
    Hi Guys,

    I had a look at your example of creating a custom generic content module (Products). I have taken that idea and created my own. I have overridden the filter to only show valid records like the new module. Cool.

    The user control (.ascx) that is used to display a list of records is where I am now stuck. How can I customize the control say implement a different list control like a GridView. If I remove the existing repeater control an exception is thrown?

    In my scenario users what to be able to sort both ascending and descending by clicking on a column name. This is where a GridView etc may be a better solution that say a repeater control.

    Can anybody help?

    Thank you,

    Shane.
  2. Ivan
    Ivan avatar
    478 posts
    Registered:
    16 Jun 2015
    12 Aug 2008
    Link to this post
    Hi Shane,

    The user controls (.ascx) files in ProductsModule or any other pluggable module are actually only templates, therefore when you change the template you will also need to change the code in the control that uses this template.

    When talking about sample Products module the public control ProductsView (located in Telerik.Samples.Products.WebControls namespace) inherits from ContentView control which works with repeater. If you want to create a control that will be using GridView or RadGrid you would need to create your own public control together with template. You can see how is that done by taking a look at the sample for pluggable module, which you can find here:
    http://www.sitefinity.com/help/developer-manual/adding-new-modules-pluggable-overview.html

    I hope you'll find this information helpful. Let us know if there is anything else we can do for you.

    Greetings,
    Ivan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
2 posts, 0 answered