Jun 06, 2013, 11:13 AM
Need help upgrading from 1.x to 2.x
Hi there,
I'm in the process of upgrading from Ext.Net 1.x to 2.x and need a little help regarding referencing Ext.Net controls in Javascript code. I want to pass the value of some entry fields as parameters to an Ajax Proxy. I used to do the following (dfVon and dfBis are the IDs of two DateFields):
What is now the correct way to do this in 2.x?
Thanks in advance!
I'm in the process of upgrading from Ext.Net 1.x to 2.x and need a little help regarding referencing Ext.Net controls in Javascript code. I want to pass the value of some entry fields as parameters to an Ajax Proxy. I used to do the following (dfVon and dfBis are the IDs of two DateFields):
<ext:AjaxProxy Json="true" Url="http://Someserver/SomeService.svc/SomeFunction">
<ActionMethods Read="GET" />
<Reader>
<ext:JsonReader />
</Reader>
<ExtraParams>
<ext:Parameter Name="machine" Value="PM1" Mode="Value" />
<ext:Parameter Name="startDate" Value="#{dfVon}.getValue()" Mode="Raw" />
<ext:Parameter Name="endDate" Value="#{dfBis}.getValue()" Mode="Raw" />
</ExtraParams>
</ext:AjaxProxy>
But using Ext.Net 2.x, this results in the following error:
Uncaught TypeError: Cannot call method 'getValue' of undefined
Thanks in advance!