Jan 20, 2016, 6:58 AM
[CLOSED] GridPanel Editor Listeners Not Fired and Values Not Passed
Dears,
What I want to achieve is the following:
1. Click "add new row" to the GridPanel, and the row will be inserted at the top and first field will be focused.
2. The user will start filling the fist column i.e. 123.
3. After the user click Tab button, and the focus moved to the next field, I want to call behind code method to retrieve information from database based on user input i.e. 123 if available and auto-fill the editor fields.
This is what I did:
Regards,
Alaswad
What I want to achieve is the following:
1. Click "add new row" to the GridPanel, and the row will be inserted at the top and first field will be focused.
2. The user will start filling the fist column i.e. 123.
3. After the user click Tab button, and the focus moved to the next field, I want to call behind code method to retrieve information from database based on user input i.e. 123 if available and auto-fill the editor fields.
This is what I did:
<ext:Column runat="server" Align="Center" Width="110" Text="CPR" DataIndex="CPR_NO" >
<Filter>
<ext:StringFilter />
</Filter>
<Editor>
<ext:TextField ID="txtEditCPR" ClientIDMode="Static" runat="server" >
<Listeners>
<Tab Handler="#{DirectMethods}.autoFillFromCPRMaster();"></Tab>
</Listeners>
</ext:TextField>
</Editor>
</ext:Column>
The event does not work as expected, and some events get fired, but when I try to get the value entered by the user, it always return blank. <DirectMethod> _
Function autoFillFromCPRMaster() As Boolean
Dim searchCPR As String = txtEditCPR.Text.Trim
Return True
End Function
Kindly, I need your support.Regards,
Alaswad
Last edited by Daniil; Jan 27, 2016 at 9:42 AM.
Reason: [CLOSED]