[CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

  1. #1

    [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    Could you tell me please how to change the height property of a panel after it is rendered and also wich url was loaded using that panel?


  2. #2

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    1. Could
    you tell me please how to change the height property of a panel after
    it is rendered
    Use Height property on the server side or use 'setHeight' javascript method

    2. Also
    wich url was loaded using that panel
    I don't understand you. Do you mean the following javascript code?
    Panel1.getAutoLoad().url
  3. #3

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    I used the following code to chage the panel height, but it does not work.




    PanelContent.setHeight('1800px');Could you tell me please what I am doing wrong?




  4. #4

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Please use
    PanelContent.setHeight(1800);

    See
    http://www.extjs.com/deploy/dev/docs...nent-setHeight
  5. #5

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    Could you tell me please in which event to use the sentence with an example?Panel1.getAutoLoad().url










    </PRE>
  6. #6

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    I don't know where the url is required for you. Call it where is your business logic uses that url.
  7. #7

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    I am trying to use the following code to get the panel page url after the page is loaded, but the pageUrl is empty when the update even is fired.

    Could tell me please which other event to use or what is the problem?

    
    
    
    
    protected void PanelContentUpdate(object sender, DirectEventArgs e)
    
    
    {
    
    
    string pageUrl = PanelContent.AutoLoad.Url;
    
    
    }
    
    
    <DirectEvents>
    
    
    <Update OnEvent="PanelContentUpdate"/>
    
    
    </DirectEvents>
  8. #8

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    Hi,

    If you set Url on the client side then pass it as extra parameter of the direct event


    <ext:Parameter Name="url" Value="#{Panel1}.getAutoLoad().url" Mode="Raw"/>
  9. #9

    RE: [CLOSED] How to change the height property of a panel after it is rendered and also wich url was loaded using that panel?

    The example works fine.

    Thanks for your help,

Similar Threads

  1. [CLOSED] Change/Set height of Panel Header area?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 12, 2011, 4:13 PM
  2. [CLOSED] CompositeField - Height missing when form panel rendered hidden
    By craig2005 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Feb 07, 2011, 2:03 PM
  3. [CLOSED] How Can I get the page size that is loaded from a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 03, 2010, 1:30 PM
  4. [CLOSED] [1.0] Remove a rendered panel
    By ljankowski in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 21, 2010, 11:53 PM
  5. [CLOSED] Can a Panel be rendered as a ?
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 09, 2009, 12:54 PM

Posting Permissions