The general-purpose, stand-alone designer allows a user to choose from all of the possible data sources: SQL, Cube, Object, Entity, and OpenAccess.
I've been creating a custom data source which extends ObjectDataSource, and all reports that a user would use with my tools would be based on this component, and no other.
I'd like to see config-file options that allow us to eliminate the default Data Sources from the UI, and replace them with options which we provide. So for example, under <AssemblyReferences> perhaps we could include an assembly that conformed to an API defined by Telerik, which defines all Data Sources. The code in there might do something like this:
With that, my designer users would never see a SQL data source, for example, they'd only see my source(s).
Does this have any merit?
Thanks.
I've been creating a custom data source which extends ObjectDataSource, and all reports that a user would use with my tools would be based on this component, and no other.
I'd like to see config-file options that allow us to eliminate the default Data Sources from the UI, and replace them with options which we provide. So for example, under <AssemblyReferences> perhaps we could include an assembly that conformed to an API defined by Telerik, which defines all Data Sources. The code in there might do something like this:
[DataSourceExtender]
public
void
ModifyDesignerDataSources(Context context) {
DesignerDataSources sources = context.getDataSources();
sources.clear();
sources.add(
"My Source"
,
"myNameSpace.myClassDerivedFromDataSource"
);
}
With that, my designer users would never see a SQL data source, for example, they'd only see my source(s).
Does this have any merit?
Thanks.