Relatively complex operations with AjaxMethods

  1. #1

    Relatively complex operations with AjaxMethods

    Hi all,

    I have coolite and the ajax control toolkit loaded although i'm using coolite almost exclusively.

    I'm using an AjaxMethod that is trying to do relatively complex operations, such as creating a GridPanel and adding it to the controls of my main panel.

    I have a treeview on the left and a 'main' panel on the right.

    My AjaxMethod calls another method in the code-behind that creates a GridPanel then calls MainPanel.Controls.Add(MyGridPanel);

    The grid panel never appears though which is puzzling, triggering the ajax method doesn't actually appear to trigger anything not even the usual loading animation. If i put a label in the panel and change that on click it appears to work fine. Any thoughts?
  2. #2

    RE: Relatively complex operations with AjaxMethods

    Failing this can anyone tell me how I might be able to have it so when a node in the treeview is clicked arbitrary content (i.e. a gridpanel, image, or block of text) appears in the right hand/main panel? I thought ajax methods and adding the content was the best way.

    I tried defining the gridpanel on another page (it appeared when i visited the sub-page directly) but it did not appear when I tried to use .loadContent('my/sub-page.aspx');
  3. #3

    RE: Relatively complex operations with AjaxMethods

    Hoorah! I've resolved this

    using a treeview on the left and a main panel on the right, you have to use an absolute URL when using .LoadContent on the main panel.

    myPanel.LoadContent('http://www.mysite/...');

    rather than:

    myPanel.LoadContent('myFolder/path.aspx');

    Then it all works as expected!
  4. #4

    RE: Relatively complex operations with AjaxMethods

    Hi,

    Just set Mode="IFrame" for AutoLoad config and you can use relative path

Similar Threads

  1. MDI form and Complex Layout
    By themack in forum 1.x Help
    Replies: 0
    Last Post: Sep 25, 2011, 6:20 PM
  2. Best Way to AutoLoad Complex Pages
    By peter.campbell in forum 1.x Help
    Replies: 0
    Last Post: Feb 07, 2011, 9:33 AM
  3. store and complex key
    By maxdiable in forum 1.x Help
    Replies: 1
    Last Post: Nov 26, 2010, 6:46 PM
  4. Complex Serialization and Templates
    By BrunoC in forum 1.x Help
    Replies: 1
    Last Post: Jan 30, 2009, 1:18 PM
  5. Best Practices for WebService CRUD operations
    By pkellner in forum Open Discussions
    Replies: 1
    Last Post: Dec 22, 2008, 4:55 PM

Posting Permissions