Custom Module
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 ?
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
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
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
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);
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
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