Jun 23, 2011, 9:01 AM
[CLOSED] Dynamic header column component direct event Issue
protected sub Createdynamicheader(Byval sender as object,Byval e as DirectEventArgs)
Dim Headercolumn1 As New Ext.Net.HeaderColumn
Headercolumn1.Cls = "x-small-editor"
Dim CmpTriggerField As New Ext.Net.TriggerField
CmpTriggerField.ID = "TriggerField1"
CmpTriggerField.TriggerIcon = TriggerIcon.Search
AddHandler CmpTriggerField.DirectEvents.TriggerClick.Event, New DirectEventHandler(AddressOf FilterGrid)
Headercolumn1.Component.Add(CmpTriggerField)
Gridpannel1.GetView().HeaderRows(0).Columns.Add(Headercolumn1)
Gridpannel1.render()
End Sub
When i click on the trigger it gives the following error
Server Error in '/DocuTracker' Application.
--------------------------------------------------------------------------------
The control with ID 'TriggerField1' not found
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The control with ID 'TriggerField1' not found
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): The control with ID 'TriggerField1' not found]
Ext.Net.ResourceManager.RaisePostBackEvent(String eventArgument) +1065
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Last edited by Daniil; Jun 27, 2011 at 1:03 PM.
Reason: Please use [CODE] tags, [CLOSED]