[CLOSED] MultiSelect Item CSS

  1. #1

    [CLOSED] MultiSelect Item CSS

    How to I set the item css of a Multiselect - I tried ItemCls with no effect - want to change the font size
  2. #2

    RE: [CLOSED] MultiSelect Item CSS

    Hi,

    Please see the following sample
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title></title>
        
        <style type="text/css">
            .mymulti .ux-mselect-item
            {
                color: green !important;
                font-size: 16px !important;
            }
            
            .mymulti .ux-mselect-selected
            {
                color: red !important;
            }
            
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server" />
            
            <ext:MultiSelect ID="MultiSelect1" runat="server"  Width="300" Height="250" CtCls="mymulti">
                <Items>
                    <ext:ListItem Text="Item 1" Value="1" />
                    <ext:ListItem Text="Item 2" Value="2" />
                    <ext:ListItem Text="Item 3" Value="3" />
                    <ext:ListItem Text="Item 4" Value="4" />
                    <ext:ListItem Text="Item 5" Value="5" />
                </Items>
            </ext:MultiSelect> 
            
        </form>
    </body>
    </html>

  3. #3

    RE: [CLOSED] MultiSelect Item CSS

    Thanks! Worked with one slight mod:


    FieldClass="mymulti"
  4. #4

    RE: [CLOSED] MultiSelect Item CSS

    can't i set the item css class attribute of the multi select using the ItemCls attribute? i do not want to overwrite ".ux-mselect-item" because doing so will affect all the multiselect controls in the page

Similar Threads

  1. Replies: 4
    Last Post: May 09, 2012, 9:24 PM
  2. Get MultiSelect Item , ContextMenu ?
    By Mohammad in forum 1.x Help
    Replies: 0
    Last Post: Dec 10, 2011, 6:44 AM
  3. [CLOSED] multiselect add item in codebehind
    By albayrak in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 16, 2011, 10:11 AM
  4. [CLOSED] MultiSelect with item tooltips
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: May 19, 2011, 10:44 PM
  5. Replies: 0
    Last Post: Mar 09, 2010, 7:28 AM

Posting Permissions