Sep 14, 2010, 6:20 PM
[CLOSED] RegisterClientScriptInclude in custom control inside gridpanel
I have a few custom controls which need to register javascript in order to work properly, so i do this in createchildcontrols of the control:
this.Page.ClientScript.RegisterClientScriptInclude("NumberField", this.Page.ClientScript.GetWebResourceUrl(this.GetType(), "Ext.Net.MxmControls.TextFields.MXMNumberField.js"));
This works fine, but if i place them inside a grid, like this: <ext:Column Header="Valor" DataIndex="Valor" Width="100" >
<Editor>
<mxm:MXMNumberField ID="nfValor" runat="server" AllowDecimals="true" DecimalPrecision="2" ShowSeparator="true" />
</Editor>
</ext:Column>
The javascript isn't registered and my controls won't work. I tested placing the javascript manually in the aspx file and everything worked fine. Any hint on why the controls inside gridpanel don't register javascript?
Last edited by Daniil; Sep 16, 2010 at 5:42 PM.
Reason: [CLOSED]