Dec 23, 2015, 9:03 AM
[CLOSED] Custom Controls & resources. Creating at client side.
Hi,
I created a lot of my own controls, inherited from various Ext.Net controls...
Most of those controls use js/css resources, registered by overriding List<ResourceItem> Resources { get; }.
All works fine while I create my controls via builders in *.cshtml.
The problem comes then I try create my control dynamically at client side - no embedded resources registered. So JS-code ext.Create('MyOwnControl') fail.
Is the any correct way to register control resources without creating an instance of control at server side?
It would be nice to have a method like this:
@ext.ResourceManager().RequiredControl(typeof(MyOw nControl))
Any suggestion are welcome)
I created a lot of my own controls, inherited from various Ext.Net controls...
Most of those controls use js/css resources, registered by overriding List<ResourceItem> Resources { get; }.
All works fine while I create my controls via builders in *.cshtml.
The problem comes then I try create my control dynamically at client side - no embedded resources registered. So JS-code ext.Create('MyOwnControl') fail.
Is the any correct way to register control resources without creating an instance of control at server side?
It would be nice to have a method like this:
@ext.ResourceManager().RequiredControl(typeof(MyOw nControl))
Any suggestion are welcome)
Last edited by fabricio.murta; Dec 23, 2015 at 7:56 PM.
Reason: [CLOSED]