This is a migrated thread and some comments may be shown as answers.
SelectionMode="Multiple" and OnSelectedIndexChanged
5 Answers 126 Views
This is a migrated thread and some comments may be shown as answers.
Ty
Top achievements
Rank 1
Ty asked on 28 Jul 2009, 06:34 PM
Hi,

    <asp:ListBox ID="m_UIlbTest" runat="server" SelectionMode="Multiple" OnSelectedIndexChanged="m_UIlbTest_SelectedIndexChanged" AutoPostBack="true"
        <asp:ListItem Text="1" /> 
        <asp:ListItem Text="2" /> 
        <asp:ListItem Text="3" /> 
    </asp:ListBox> 
     
    <telerik:RadListBox ID="m_UIrlbTest" runat="server" SelectionMode="Multiple" OnSelectedIndexChanged="m_UIlbBranches_SelectedIndexChanged" AutoPostBack="true"
        <Items> 
            <telerik:RadListBoxItem Text="1" /> 
            <telerik:RadListBoxItem Text="2" /> 
            <telerik:RadListBoxItem Text="3" /> 
        </Items> 
    </telerik:RadListBox> 

If I have all three items selected in ASP's ListBox and I hold down Ctrl and click on one item to unselect it (leaving two items still selected), the event handler  m_UIlbTest_SelectedIndexChanged is being hit.  The same does not hold true for telerik's ListBox.  Is there anything I can do to change this?

5 Answers, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 29 Jul 2009, 10:35 AM
Hello Ty,

Unfortunately this happened to be a bug in the RadListBox. The fix is going to be available forth will be available in the tomorrow's internal build. I have updated your Telerik points for the bug report.

All the best,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Neil
Top achievements
Rank 1
answered on 28 Aug 2009, 02:49 PM
I just updated to the 8/26 build to get the fix for this bug but the bug is still there. When I use CTRL+Click to select multiple items I get the SelectedIndexChanged event but when I release the CTRL and just click on one item (that was previously selected) the event does not fire.
0
Genady Sergeev
Telerik team
answered on 04 Sep 2009, 07:52 AM
Hi Neil,

I am unable to reproduce the issue with the 8/26 build, attached is the sample project as well as a video that I have recorded. Can you confirm that you can reproduce the fault on the sample? Perhaps I am doing something wrong.

video: here.

Regards,
Genady Sergeev
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.
0
Neil
Top achievements
Rank 1
answered on 11 Sep 2009, 01:49 PM
Sorry it took me a few days to get back. I do see the behavior working correctly in your sample. I don't have declared items up front and I populate the list dynamically (not on page load necessarily) in an ajax context. So what may be happening is the event is getting lost on page load in the partial update.
0
Genady Sergeev
Telerik team
answered on 17 Sep 2009, 09:36 AM
Hello Neil,

Please, excuse us for the late answer.

I didn't manage to reproduce the issue even when I wrapped the RadListBox inside an AJAX panel. Perhaps I am missing something. Do you have any working sample where the issue can be easily reproduced? This will allow us to track and fix the problem.

Greetings,
Genady Sergeev
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.
Asked by
Ty
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Neil
Top achievements
Rank 1
Share this question
or