Approved
Last Updated: 17 Oct 2016 06:07 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 04 Oct 2016 11:14
Category: CommandBar
Type: Bug Report
1
FIX. RadCommandBar - CommandBarDropDownList.SelectedItem is set to null when minimizing the form and restoring to normal state
To reproduce:

1. Run the application and click the button. A message box appears. Close the message box.
2. Minimize the form and restore it to normal state.
3. Click the button again. You will encounter an error because the CommandBarDropDownList.SelectedItem property is set to null.

Workaround:

 private void radButton1_Click(object sender, EventArgs e)
 {
     this.commandBarDropDownList1.DropDownAnimationEnabled = false;
     this.commandBarDropDownList1.DropDownListElement.ShowPopup();
     this.commandBarDropDownList1.DropDownListElement.ClosePopup(Telerik.WinControls.UI.RadPopupCloseReason.Mouse);

     Product product = this.commandBarDropDownList1.SelectedItem.DataBoundItem as Product;

     MessageBox.Show(product.Description);
 }
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments