PDA

View Full Version : Cannot find AjaxResult in Dynamic Control Creation



edip
May 04, 2017, 2:03 AM
Hello,
I am trying to implement adding controls from a controller action similar to https://forums.ext.net/showthread.php?17332-CLOSED-passing-ext-net-controls-to-controller-function The previous example uses
return new AjaxResult ( script ), but I cannot seem to find where the
AjaxResult class is defined. I am currently using
return this.Direct ( script ) The call succeeds, but no control is added to my panel. Which library contains
AjaxResult My
success function in javascript receives the following result
Ext.getCmp("DesignerDrawPanel").add({xtype:"textfield",x:567,y:270,fieldLabel:"New TextField",value:"Testing"}); Do i need to add this to my page somehow in the javascript
success function? I have added it to my page using
eval(result);...is that how it is supposed to work?
Thank you.