Completed
Last Updated: 11 May 2015 07:36 by ADMIN
ADMIN
Dimitar
Created on: 03 Feb 2015 14:29
Category:
Type: Bug Report
1
FIX. RadDropDownList - when the read only mode is set to true the user still can change the item.
To reproduce:
- Add some items to the drop down list.
- Set the ReadOnly to true.
- Start the application and show the drop down.
- Type the first letter of an item and use the arrow keys to select new item.

The issue occur when the drop down is closed, the text in the control is selected and a key is pressed.

Workaround:
void radDropDownList1_SelectedIndexChanging(object sender, Telerik.WinControls.UI.Data.PositionChangingCancelEventArgs e)
{
    e.Cancel = true;
}

void radDropDownList1_KeyDown(object sender, KeyEventArgs e)
{
    if (!radDropDownList1.IsPopupVisible)
    {
        e.Handled = true;
        e.SuppressKeyPress = true;
    }
    
}
0 comments