[CLOSED] Grid panel inside dynamically loaded user

  1. #1

    [CLOSED] Grid panel inside dynamically loaded user

    Hi

    I have a problem very similar to this one - http://forums.ext.net/showthread.php...n-user-control

    This occurs when when we you user control A that dynamically loads user control B using LoadControl. User control B contains a grid panel.
    Note this only occurs when using a direct method and fails with an undefined control error.

    Basically there is script that executes that calls App.MyStore.proxy.data =

    This would work if the script called App.MyUserControlA.MyStore.proxy.data

    Any idea on how I override this?

    Ta,
    D
    Last edited by Daniil; Mar 06, 2015 at 5:29 AM. Reason: [CLOSED]
  2. #2
    Ok what I ended up doing was this

    
                ModelViewer.User_Controls.GridPopupv1 newWindow = (ModelViewer.User_Controls.GridPopupv1) LoadControl("GridPopupv1.ascx");
    
                // SET ID TO PARENT CONTROL 
                newWindow.ID = "ctrlWhiteboardv1_grid" + _id.ToString();
                newWindow.LoadGridControl();
    
                _NewPan.ContentControls.Add(newWindow);
    
                // RESET THE ID POST ADDING
                newWindow.ID = "grid" + _id.ToString();
  3. #3
    Hi @CanopiusApplications,

    Ok what I ended up doing was this
    Please clarify do you mean that you were able to resolve the problem?
  4. #4
    Yes my hack resolved the problem although I don't think it is a solution to this problem as it might not work if the parent user control was also dynamic.

    D
  5. #5
    Thanks for clarifying.

    Having a test case we might investigate in greater details. Without a test case I don't quite understand what is going on.
  6. #6
    Hi D

    Yup appreciate you need a test case which I will try and put together for you when I get a moment. It is a tricky one though as you need 1 aspx page, 1 parent control and 1 dynamically loaded child control placed on the parent control. The child control then needs a grid panel and this control needs to be dynamically loaded via a direct method (works if you add the control on page load).

    D

Similar Threads

  1. [CLOSED] How to View and Get Dynamically loaded user controls
    By mohan.bizbites in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 17, 2013, 4:29 AM
  2. Replies: 5
    Last Post: Oct 07, 2013, 7:53 AM
  3. Replies: 2
    Last Post: Apr 01, 2013, 5:35 AM
  4. Replies: 1
    Last Post: Oct 10, 2012, 11:47 AM
  5. Replies: 2
    Last Post: Dec 08, 2011, 1:00 PM

Posting Permissions