Dec 16, 2010, 11:20 AM
[CLOSED] TextField DirectEvent Blur Error (Simulate search box)
Hi,
I've building an MVC application and using Ext Net controls.
I have window with textfields, and one of these is simulate a text search box. This search field has a direct event linked to blur event of the textfield, and it runs correctly and doing the server side work, the problem being, or it seems, when it finishes (server-code) and load/render the window with the new model (new values).
I receive this message error:
I attach my piece of code:
I only have thsi error with the blur directevent in this textfield, I could link other events to the textfield.
I've building an MVC application and using Ext Net controls.
I have window with textfields, and one of these is simulate a text search box. This search field has a direct event linked to blur event of the textfield, and it runs correctly and doing the server side work, the problem being, or it seems, when it finishes (server-code) and load/render the window with the new model (new values).
I receive this message error:
The control 'Identificador' does not have an DirectEvent with the name 'Blur' or the handler is absent
<ext:Panel runat="server" Layout="Form" LabelWidth="110" Border="false" ColumnWidth="0.2">
<Items>
<ext:TextField ID="Identificador" runat="server" FieldLabel="Identificador" AnchorHorizontal="95%"
ItemCls="required" Cls="search" MaxLength="10" AllowBlank="false" EnableKeyEvents="true">
<DirectEvents>
<Blur Url='<%# Url.Action("Edit2") %>' AutoDataBind="true">
<ExtraParams>
<ext:Parameter Name="ci" Value="#{Identificador}.getValue()" Mode="Raw" />
</ExtraParams>
</Blur>
</DirectEvents>
</ext:TextField>
</Items>
</ext:Panel>
The Edit2 Action returns me a view with the correct model. But I don't understand this error message because Blur Event doesn't have Handler property.I only have thsi error with the blur directevent in this textfield, I could link other events to the textfield.
Last edited by David Pelaez; Dec 21, 2010 at 12:32 PM.