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

Forums / Sitefinity SDK / Custom Module

Custom Module

7 posts, 0 answered
  1. Mateusz
    Mateusz avatar
    2 posts
    Registered:
    06 Feb 2011
    25 Feb 2011
    Link to this post
    Hi,

    I want to create a custom module with OpenAccessDataProvider and all searching stuff and I want to ask about where can I get a good example of this ? 

    Next question is about OpenAccess, before creation of model class a I must create table in sitefinity database ? How can I start ?

    Thanks!

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    25 Feb 2011
    Link to this post
    Hello Mateusz,

    I suggest that you should take a look at our ProductsSample catalog that comes with the SDK installation. If you are going to create content based module your data classes can inherit from ContentDataProviderBase and override some of the item methods or implement your custom abstract methods. If this is a completely custom implementation you should create the entire logic for persisting and retrieving the item. You should implement interfaces for data provider decorators. You can take a look at Defining a Data Model ( you can check forward  mapping model and this short video)

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Mateusz
    Mateusz avatar
    2 posts
    Registered:
    06 Feb 2011
    01 Mar 2011
    Link to this post
    Hi Ivan,

    I want to start with build module like jobsintermediate, but with different form for data. I think this task is simple but I don't know how to implement and how create OpenAccess provider for saving data.

    If anyone can describe the steps to create a module with OpenAccess ?
     

    Thanks,
    Mateusz
  4. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    23 Mar 2011
    Link to this post
    Hi Ivan,

    I have a developed a custom module which has a field called ImageURL to store the url for an image in sitefinity. Now I need to display a thumbnail version of these images on the backend grid view. How do I do that?

    Thanks!
    Duneel
  5. Duneel
    Duneel avatar
    166 posts
    Registered:
    08 Dec 2010
    23 Mar 2011
    Link to this post
    Guys,

    Nevermind...I figuredout how to add an image column. Following is the code that goes in the ModuleDefinitions.cs.

    DataColumnElement imageColumn = new DataColumnElement(gridMode.ColumnsConfig)
            {
                Name = "ImageURL",
                HeaderText = "",
                ClientTemplate = @"<img sys:src=""{{ImageURL+ '?size=75'}}"" />",
                //ClientTemplate = "<span>{{HeadShotImage}}</span>",
                HeaderCssClass = "sfRegular",
                ItemCssClass = "sfRegular",
      
            };
            gridMode.ColumnsConfig.Add(imageColumn);


    Cheers!
    Duneel
  6. Gauree
    Gauree avatar
    9 posts
    Registered:
    11 Mar 2011
    30 Mar 2011
    Link to this post
    Hello Duneel,

    Looks like you have figured out how create custom module which can talk to your own database.

    It will be really very helpful if you could explain the building a custom module which can talk to your own DB, in small steps ?

    Just a basic - like displaying the gridview in module which binds to your own SQL database table.

    Looking forward to hear from you.

    Thanks,
    Gauree





  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    30 Mar 2011
    Link to this post
    Hello Duneel,

    In the help for RadControls for ASP.NET there are several sections that explains the basis of the RadGrid binding. I suggest that you should take a look at the articles listed below



    Greetings,
    Ivan Dimitrov
    the Telerik team
7 posts, 0 answered