This is a migrated thread and some comments may be shown as answers.

ListBox - Empty image don´t appears centralized

10 Answers 191 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Daniel Aquere
Top achievements
Rank 2
Daniel Aquere asked on 02 May 2011, 01:23 PM
Hi Telerik Team,

Please, a little help...

When I run my application in the first time, the image donĀ“t appears centralized. If I transfer one item to listbox and delete, the image is centralized.

Some tip?

Thanks, best

Daniel

<telerik:RadListBox ID="RadListBox2" runat="server" Skin="Sunset" AllowReorder="true"
    EnableDragAndDrop="true" SelectionMode="Multiple" Culture="pt-BR" Height="200px" Width="250px"
    EmptyMessage="Selecione a(s) Empresa(s)">
    <EmptyMessageTemplate>
       <img src="images\interrogacao_01.gif" alt="Nenhuma Empresa selecionada" style="vertical-align:middle;">
    </EmptyMessageTemplate>
</telerik:RadListBox>

10 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 May 2011, 08:32 AM
Hello Daniel,

I have tried the same scenario and that worked fine at my end. I suppose you may over ride the default CSS style. Please take a look at the CSS file selectors with your CSS.
Hope it helps.

Thanks,
Princy.
0
Daniel Aquere
Top achievements
Rank 2
answered on 03 May 2011, 09:45 PM
Hi Princy,

I applyed the follows CSS without sucess.

<style type="text/css">
        div.RadListBox .rlbEmptyMessage
        {
            vertical-align:middle;
            text-align:center;        }        
    </style>

Please, any idea?

Thanks, best

Daniel
0
Genady Sergeev
Telerik team
answered on 06 May 2011, 10:25 AM
Hi Daniel Aquere,

It works on my side as well. Which browser do you use?

Best wishes,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniel Aquere
Top achievements
Rank 2
answered on 06 May 2011, 12:20 PM
Hi Genady,

IĀ“m using IE 9.0.8112.15421 with Telerik WEB.UI 2011, 1, 413, 35.

The interesting that this occurs only when the listbox is empty in the first time, if I transfer an item and delete this item, the image appears centralized.

Thanks, best

Daniel
0
Genady Sergeev
Telerik team
answered on 11 May 2011, 12:26 PM
Hi Daniel Aquere,

I am still not able to reproduce the issue. Could you please record a video (using a tool like Jing) which demonstrates the problem and link the video here so that we can take a look.

All the best,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniel Aquere
Top achievements
Rank 2
answered on 18 May 2011, 04:01 AM
Hi Genady,

Thanks for attention.
My apologies because I don't provide sufficient information for you.

The problem occurs when I have the listbox inside of pane with collapse state, if the pane is expanded when the page is loaded the problem donĀ“t occurs.

In this scenario I canĀ“t attach video files. Can I send for another way (if really necessary)?

Best

Daniel
0
Peter Filipov
Telerik team
answered on 20 May 2011, 12:24 PM
Hi Daniel Aquere,

Please open a support ticket and send us a working sample project that reproduces the issue to investigate it locally.

Best wishes,
Peter Filipov
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Daniel Aquere
Top achievements
Rank 2
answered on 23 May 2011, 02:31 AM
Hi Peter,

Thanks for your support.

I opened a support ticket.

Thanks, abraƧo

Daniel
0
NMQA
Top achievements
Rank 2
answered on 25 Nov 2011, 01:50 PM
Hi Telerik,

I got this same exact problem using the lastest version of Telerik, i.e. Q3 2011

After debugging the error with FireBug, this is what I've noticed:

OnPageLoad(), the text is not centered right in the middle of the ListBox 
<div style="margin-right: 30px;" class="rlbGroup rlbGroupRight">
                            <div style="overflow: hidden; top: 0px; left: 0px;" class="rlbEmptyMessage">
                                All Operating Systems added
                            </div>


After a ListBox event is being triggered, for e.g: Transferred, the following HTML is being generated for the EmptyMessage, which is actually the proper one, positioned in the middle of the Listbox

<div style="margin-right:30px;" class="rlbGroup rlbGroupRight">
            <div style="overflow: hidden; top: 91.5px; left: 22.5px;" class="rlbEmptyMessage">
                All Operating Systems added
            </div>
        </div>


So I gave a go a this CSS, but without much success:
.rlbEmptyMessage
{
    vertical-align: middle;
    text-align: center;
    top: 91.5px;
    left: 22.5px;
}

Any suggestions please?

Thanks!


0
Peter Filipov
Telerik team
answered on 29 Nov 2011, 05:44 PM
Hello Nmqa,

I created a sample page with the latest version of the controls. Everything appears correct on my machine. Please review the following video.

Could you please provide me a working sample project that reproduces the mentioned issue? Please clarify which browser you are using.

Greetings,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ListBox
Asked by
Daniel Aquere
Top achievements
Rank 2
Answers by
Princy
Top achievements
Rank 2
Daniel Aquere
Top achievements
Rank 2
Genady Sergeev
Telerik team
Peter Filipov
Telerik team
NMQA
Top achievements
Rank 2
Share this question
or