[CLOSED] Panel html render problem

  1. #1

    [CLOSED] Panel html render problem

    Hi,

    I have panel control and when I set html property like below, <strong>Hello</strong> this code should work as bold. But, it doesn't work.
    What is problem?

                                            <ext:Panel ID="pnl1" runat="server" Cls="draggable" Frame="false" StyleSpec="padding: 5px;"
                                                Title="Panel 1" Html="<strong>Hello</strong>">
                                            </ext:Panel>
    
                                            <ext:Panel ID="pnl2" runat="server" Cls="draggable" Frame="false" StyleSpec="padding: 5px;"
                                                Title="Panel 2" Html="<b>Hello</b>">
                                            </ext:Panel>
    Last edited by Daniil; Jan 22, 2011 at 4:02 PM. Reason: [CLOSED]
  2. #2
    Hi,

    You can set PreventBodyReset="true" on the Panel to prevent the CSS from resetting the default html element styles.

    Hope this helps.
    Geoffrey McGill
    Founder
  3. #3
    Thank you very much. It works now. Problem is solved.

Similar Threads

  1. Render html in gridpanel cell?
    By Tbaseflug in forum 2.x Help
    Replies: 1
    Last Post: May 17, 2012, 2:52 PM
  2. Replies: 1
    Last Post: Apr 11, 2012, 4:24 PM
  3. [CLOSED] [1.0] render panel
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 06, 2010, 1:50 PM
  4. Replies: 2
    Last Post: Feb 19, 2009, 2:02 PM
  5. Make Panel Render HTML
    By jarremw in forum 1.x Help
    Replies: 2
    Last Post: Feb 16, 2009, 6:55 PM

Posting Permissions