Hi,
We have following XamComboEditor which allows multiple selection and working fine and shows selected items separated by ";" as per selection. But we need to show "All Items" when all items are selected instead of all selected items text. In the same way EmptyText property shows specific Message if no item is selected. Is there some way to do this?
<ig:XamComboEditor Name="ddl" EmptyText="Select Item" DisplayMemberPath="ItemName"
MultiSelectValueDelimiter=";" AllowMultipleSelection="True"
CheckBoxVisibility="Visible" IsEditable="False" />
Thanks
Hi Imran,
I have sent your feature request directly to our product management team. Our product team chooses new feature requests for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this feature request is FR13992.
Hi Darrell,
Thanks for information, can you tell me how to get text appears on the combobox for multiple selected item? Is there some property or do we have to get them manually from SelectedItems Collection?
Thats good to know. In that case it looks like SelectedItems is your best bet. You'll have to go through each SelectedItem and use it's property that you set for the DisplayMemberPath in the combo editor to get the text.
Hi Rob,
This is nice but only works when
IsEditable="true"
but we have
IsEditable
="false"
SO it is not working in our case.
I'm not sure I understand. Are you asking if there is a way to get the text displayed by the combobox? If you just want the text to see what items were selected it would be better to use the SelectedItems property to do this.
If you really need the text you can use the VisualTreeHelper to look into the TextBox.Text property. This will contain the displayed text. The following code will get the TextBox from the combo editor.
Grid grid = VisualTreeHelper.GetChild(xamComboEditor1, 0) as Grid;TextBox txt = ((grid.Children[0] as Border).Child as Grid).Children[4] as TextBox;
Let me know if you have any questions on this.