Cannot find AjaxResult in Dynamic Control Creation

  1. #1

    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
    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.
    Last edited by edip; May 04, 2017 at 1:44 PM. Reason: Additional Information

Similar Threads

  1. Dynamic Menu Creation
    By edip in forum 2.x Help
    Replies: 1
    Last Post: Sep 30, 2013, 2:19 AM
  2. Replies: 0
    Last Post: Nov 28, 2012, 8:08 AM
  3. how find dynamic control
    By maxdiable in forum 1.x Help
    Replies: 0
    Last Post: Feb 18, 2012, 8:12 PM
  4. Merge mode dynamic control creation
    By zeus in forum 1.x Help
    Replies: 7
    Last Post: Dec 26, 2011, 2:55 PM
  5. Replies: 0
    Last Post: Jun 16, 2010, 6:18 AM

Tags for this Thread

Posting Permissions