RadListBox Item Height

5 posts, 1 answers
  1. Marcel Härry
    Marcel Härry avatar
    28 posts
    Member since:
    Jul 2009

    Posted 13 Jan 2010 Link to this post

    Hello all

    if i put this code into the head section of my master page,
    items are 10 pix height as expected, but only on vstudio2008 webdevserver, not on production server (w2k3).

    <style type="text/css">
    .RadListBox span.rlbText  { padding:0; line-height:10px; }
    </style>

    the only differences in ie8 sourcetext compare are things like this: <link href="/WebResource.axd?d=Xv_vuQIqd...blabla
    Maybe there is a better way to set the line height of my listbox items, the default height is much too big for my taste.
    i am a bit lost...
    Any ideas?

  2. Marcel Härry
    Marcel Härry avatar
    28 posts
    Member since:
    Jul 2009

    Posted 14 Jan 2010 Link to this post

    ok volks

    stop banging head at walls, sleepless nights are over, i solved it this way:

    .RadListBox li.rlbItem, .RadListBox li.rlbSelected,  .RadListBox span.rlbText 

        padding:0 0 0 1;
        line-height:12px;

    .RadListBox span.rlbText 

        padding:0 0 0 1;
        line-height:12px;

    looks as requested this way. anyway it's a trial and error solution or better said
    i do not absolutely know what i've done here (what i d'ont like)
    (as a developer, styles makes less sense to me, but you can imagine our users think different)
    if anyone have a better one, please drop a line.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 Jan 2010 Link to this post

    Hello Marcel,

    Actually this is the right way to set height of RadListBox items.

    Greetings,
    Yana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Jean-Francois Lussier
    Jean-Francois Lussier avatar
    6 posts
    Member since:
    Sep 2009

    Posted 30 Jan 2012 Link to this post

    Hi,

    work fine, but IE7 as problem with the selected item, any Idea how to fix this ?

    here's what I'm using:

    .RadListBox li.rlbItem, li.rlbSelected, .RadListBox span.rlbText

    { padding:0 0 0 1;

     line-height:8px;

    }

    .radlistbox span.rlbtext

    { padding:0 0 0 1;

    line-height:8px;  

    }


    thanks
    J-F
  6. Jean-Francois Lussier
    Jean-Francois Lussier avatar
    6 posts
    Member since:
    Sep 2009

    Posted 31 Jan 2012 Link to this post

    Hi

    I fix it by setting the font font-size: 8px;
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017