Hello,
We used ItemIndex parameter of OnClickCheck event when we wanted to access selected item. After setting IncrementalFiltering = True, we noticed that ItemIndex property behaves like VisibleIndex, not behaving as we expected.
There is a property called CheckComboBox.SelectedItem, it seems to behave as we expect. However, there is no information about this property on documentation. Also missing is ItemIndex documentation, see attachment.
I believe ItemIndex should be fixed. Please check and advise. Thank you.
Delphiprocedure TForm3.ccbPropertiesClickCheck(Sender: TObject; ItemIndex: Integer; var AllowToggle: Boolean);
begin
memo1.Clear;
Memo1.Lines.Add(ItemIndex.ToString);
Memo1.Lines.Add(ccb.SelectedItem.ToString);
end;
Hello,
SelectedItem is an undocumented property that is used for our internal purposes. We don't recommend using it.
As for the ItemIndex parameter of the OnClickCheck event hander, you can find a link to the help topic that describes it in the "TcxCustomCheckComboBoxProperties.OnClickCheck" topic (see the attached screenshot) - "TcxCustomCheckComboBox.ItemIndex".
We recommend you use the ItemIndex parameter instead of the SelectedItem property:
procedure TForm1.cxCheckComboBox1PropertiesClickCheck(Sender: TObject; ItemIndex: Integer; var AllowToggle: Boolean); var ACheckCmbBox: TcxCheckComboBox; begin ACheckCmbBox := TcxCheckComboBox(Sender); cxMemo1.Clear; cxMemo1.Lines.Add( ItemIndex.ToString + ' ClickedItem = "' + ACheckCmbBox.Properties.Items[ACheckCmbBox.ItemIndex].Description + '"'); ... end;
Would you please describe your task in detail and clarify why ItemIndex does not suite your needs?
Please check attached project:
As I stated in the subject, I need to get selected Item's ShortDescription and Description. Please advise how I can do that in OnClickCheck event when IncrementalFiltering = True
Thank you for the clarification.
I will examine this issue and get back to you once we have any results or need additional information. Thank you for your patience.