[CLOSED] Moving from 2.1 to 2.2: Button.OverCls not working

  1. #1

    [CLOSED] Moving from 2.1 to 2.2: Button.OverCls not working

    Hello,

    I'm moving to Ext.Net 2.2. In my page I have a button like this:

           <ext:Button ID="CancelButton" runat="server" Text="Cancel" Cls="btn-cancel" OverCls="btn-cancel-over"
                        Width="117" Height="40" Flat="True" Border="False" 
                        meta:resourcekey="CancelButtonResource1">
                        <Listeners><Click Handler="this.up('form').getForm().reset();" /></Listeners>
           </ext:Button>
    With Ext.Net 2.1 the over CSS class was applied. Today I linked my page to Ext.Net 2.2 (last version from SVN trunk) and now the class is applied no more.
    Last edited by Daniil; Jun 04, 2013 at 5:10 AM. Reason: [CLOSED]
  2. #2
    Hi @sbg,

    Now ExtJS prefixed it with Ext.baseCSSPrefix ("x-" by default).

    So, please leave
    OverCls="btn-cancel-over"
    as a Button's property, but change the CSS class name to "x-btn-cancel-over", for example.
    .x-btn-cancel-over .x-btn-inner {
        color: red;
    }
    Last edited by Daniil; May 30, 2013 at 11:25 AM.
  3. #3
    Hi Daniil,

    so Ext-js add "x-" to any cls I add to controls? or only overcls of buttons?

    Thank you!

    Quote Originally Posted by Daniil View Post
    Hi @sbg,

    Now ExtJS prefixed it with Ext.baseCSSPrefix ("x-" by default).

    So, please leave
    OverCls="btn-cancel-over"
    as a Button's property, but change the CSS class name to "x-btn-cancel-over", for example.
    .x-btn-cancel-over .x-btn-inner {
        color: red;
    }
  4. #4
    Quote Originally Posted by sbg View Post
    so Ext-js add "x-" to any cls I add to controls?
    It would be a big breaking change. I don't think ExtJS did it.

    Quote Originally Posted by sbg View Post
    or only overcls of buttons?
    I can't guarantee for 100%, but, probably yes, it is done for a Button's OverCls only. If you catch anything else, please report us.

Similar Threads

  1. [CLOSED] Toggle Button handler is not working
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: May 15, 2013, 10:07 AM
  2. Replies: 11
    Last Post: Aug 08, 2012, 2:02 PM
  3. Button.ClearListeners is not working
    By xtremexploit in forum 1.x Help
    Replies: 9
    Last Post: Jan 11, 2012, 9:01 PM
  4. Replies: 2
    Last Post: Jul 31, 2011, 9:58 PM
  5. Replies: 2
    Last Post: Jul 11, 2011, 6:16 PM

Tags for this Thread

Posting Permissions