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

Click on empty message

4 Answers 91 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Daniel Botero Correa
Top achievements
Rank 1
Daniel Botero Correa asked on 04 Mar 2010, 09:35 AM
Hello,

I have a problem with the click around empty message in the RadListBox.

When i do click around empty message, the control throw an exception.

How i can disable the event selectedIndexChanged when there are not elements in
the RadListBox?

This is the error when i click on RadListBox (Empty):

Microsoft JScript runtime error: 'undefined' is null or not an object

The error is occurred at second line:
 
this._activeItem=e; 
d(e.get_element()).addClass("rlbActive"); 
e.ensureVisible(); 

Code:

                                <telerik:RadListBox ID="mailToSend" runat="server"  
                                     EmptyMessage="Emailsssssss" Height="150px" Width="200px" 
                                     SelectionMode="Multiple" AllowTransfer="True" TransferToID="mailToRemove"  
                                     AutoPostBackOnTransfer="True" AllowReorder="True" AutoPostBackOnReorder="True" 
                                     EnableDragAndDrop="True" Visible="false"
                                     <EmptyMessageTemplate> 
                                         Emailsssssss 
                                     </EmptyMessageTemplate> 
                                 </telerik:RadListBox> 

4 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 04 Mar 2010, 04:29 PM
Which version of the controls are you using? I believe this occurred for me once a while back but I was unable to get this error when I loaded up the latest controls (Q3 2009 SP2 - 2009.3.1314) using various versions of FF and IE. If you have an earlier version you can always try the latest one to see if you notice a difference.
0
Daniel Botero Correa
Top achievements
Rank 1
answered on 08 Mar 2010, 02:47 PM
Hi,

Yes, i have an earlier version... so, i hope that when i update the library version, it will work...

Thanks!!

Daniel BOTERO CORREA
0
rtk
Top achievements
Rank 1
answered on 24 Mar 2010, 11:19 AM
Can someone please tell me which version this problem is fixed. I have this problem and i'm running version 2009.3.
0
Schlurk
Top achievements
Rank 2
answered on 24 Mar 2010, 02:24 PM
I believe this was addressed in an internal build somewhere after the initial Q3 release and should be included in the SP1 release :)
Tags
ListBox
Asked by
Daniel Botero Correa
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Daniel Botero Correa
Top achievements
Rank 1
rtk
Top achievements
Rank 1
Share this question
or