May 04, 2017, 2:03 AM
Cannot find AjaxResult in Dynamic Control Creation
Hello,
I am trying to implement adding controls from a controller action similar to https://forums.ext.net/showthread.ph...oller-function The previous example uses
class is defined. I am currently using
My
function in javascript receives the following result
function? I have added it to my page using
Thank you.
I am trying to implement adding controls from a controller action similar to https://forums.ext.net/showthread.ph...oller-function The previous example uses
return new AjaxResult ( script )
, but I cannot seem to find where the
AjaxResult
return this.Direct ( script )
The call succeeds, but no control is added to my panel. Which library contains
AjaxResult
success
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
eval(result);
...is that how it is supposed to work?Thank you.
Last edited by edip; May 04, 2017 at 1:44 PM.
Reason: Additional Information