PC Review


Reply
Thread Tools Rate Thread

<asp:BulletedList>

 
 
=?Utf-8?B?SmliZXkgSmFjb2I=?=
Guest
Posts: n/a
 
      30th Jan 2007
Hi:

I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
The extra height generated by this control increases the height of the rest
of the row it's in. Is there a way around this?

Thanks,

Jibey
 
Reply With Quote
 
 
 
 
David Wier
Guest
Posts: n/a
 
      30th Jan 2007
There's no way around the fact that, if your bulleted list is higher than
the height of the rest of the row, it will make the rest of the row higher.
However, you could make the viewing of the bulleted list, an 'on-demand'
function, with just a link or regular button, that, when clicked will view
the list.

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://aspexpress.com



"Jibey Jacob" <(E-Mail Removed)> wrote in message
news:5D0CF9E4-1950-4D6C-98D7-(E-Mail Removed)...
> Hi:
>
> I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
> The extra height generated by this control increases the height of the

rest
> of the row it's in. Is there a way around this?
>
> Thanks,
>
> Jibey



 
Reply With Quote
 
darrel
Guest
Posts: n/a
 
      30th Jan 2007
> I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
> The extra height generated by this control increases the height of the
> rest
> of the row it's in. Is there a way around this?


Wrap it in a DIV and set the DIV's style to 'overflow: scroll' and then give
it a specific height. That will create a scrollbar if the list is taller
than height of the div.

-Darrel


 
Reply With Quote
 
=?Utf-8?B?SmliZXkgSmFjb2I=?=
Guest
Posts: n/a
 
      30th Jan 2007
Hi:

The bulletedlist is not that much higher - I mean there isn't much content
in it. Just the superfluous space above and below it makes it higher than
what it should be. I can't make it an on-demand function. The users expect to
see its contents on the UI as soon as the page is visible. Is there a css
style for the <asp:BulletedList> that decreases or even eliminates the
superfluous space above and below it?

Thanks,

Jibey

"David Wier" wrote:

> There's no way around the fact that, if your bulleted list is higher than
> the height of the rest of the row, it will make the rest of the row higher.
> However, you could make the viewing of the bulleted list, an 'on-demand'
> function, with just a link or regular button, that, when clicked will view
> the list.
>
> --
> David Wier
> MVP/ASPInsider
> http://aspnet101.com
> http://aspexpress.com
>
>
>
> "Jibey Jacob" <(E-Mail Removed)> wrote in message
> news:5D0CF9E4-1950-4D6C-98D7-(E-Mail Removed)...
> > Hi:
> >
> > I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
> > The extra height generated by this control increases the height of the

> rest
> > of the row it's in. Is there a way around this?
> >
> > Thanks,
> >
> > Jibey

>
>
>

 
Reply With Quote
 
Flinky Wisty Pomm
Guest
Posts: n/a
 
      30th Jan 2007
Look at the margin and padding properties of the <UL> element. You can
set those by CSS, and twiddle with the whitespace around your list.

On 30 Jan, 16:05, "darrel" <notr...@nowhere.com> wrote:
> > I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
> > The extra height generated by this control increases the height of the
> > rest
> > of the row it's in. Is there a way around this?Wrap it in a DIV and set the DIV's style to 'overflow: scroll' and then give

> it a specific height. That will create a scrollbar if the list is taller
> than height of the div.
>
> -Darrel


 
Reply With Quote
 
=?Utf-8?B?SmliZXkgSmFjb2I=?=
Guest
Posts: n/a
 
      30th Jan 2007
Hi:

There's no whitespace around this control. The extra space that I want to
get rid of are at the top and bottom of the list.

I don't have access to the <UL> element. I'm loading this list dynamically.

Jibey

"Flinky Wisty Pomm" wrote:

> Look at the margin and padding properties of the <UL> element. You can
> set those by CSS, and twiddle with the whitespace around your list.
>
> On 30 Jan, 16:05, "darrel" <notr...@nowhere.com> wrote:
> > > I'm using the <asp:BulletedList> control in a TemplateField in a GridView.
> > > The extra height generated by this control increases the height of the
> > > rest
> > > of the row it's in. Is there a way around this?Wrap it in a DIV and set the DIV's style to 'overflow: scroll' and then give

> > it a specific height. That will create a scrollbar if the list is taller
> > than height of the div.
> >
> > -Darrel

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BulletedList and width David C Microsoft ASP .NET 3 24th Apr 2008 07:29 AM
add a UserControl inside bulletedlist Stan SR Microsoft ASP .NET 0 23rd Nov 2007 01:49 PM
BulletedList Stan SR Microsoft ASP .NET 3 19th Dec 2006 10:54 AM
Re: BulletedList inside BulletedList Stan SR Microsoft ASP .NET 0 31st Aug 2006 06:36 AM
nested bulletedlist ? craptiger Microsoft C# .NET 6 25th Jul 2006 04:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.