Hi
I'm trying to add some default text to combo boxes that will show when there is no item selected. I'm using a style to acheive this which works great when the combo is first loaded.
<Style TargetType="{x:Type igRibbon:ComboEditorTool}" x:Key="PleaseSelect"><Style.Triggers><Trigger Property="SelectedIndex" Value="-1"><Setter Property="Text" Value="Please Select" /></Trigger></Style.Triggers></Style>
But when the combo's selected item is reset (by setting it to null) it fails to display the default text, what could be the reason for this? Is there a better way to reset the selected item?
I've attached an example project which demonstrates the issue, once an item has been chosen, press the reset button, it will clear the item but not show the "Please Select" text.
I'm using version 10.1.20101.2004 of the controls, incase anything has changed.
Any help would be appreciated.Chris
*bump*
Anyone know?
I have a similar problem related to the combo box default text.
I have the following combo box provider in a xamdatagrid, and the select manager is displayed the first time, but if they activate the control and don't select anyone the select manager is gone and nothing is displayed.
A second problem is that this editor is in a add row cell of the xamdatagrid, and if they don't select any manager and enter in the new record into the grid then it shows 0 in the combo box. That is because the backing field is an integer, and it defaults to 0 in the business object constructor. But there is no mapping for 0 (presumably this is why it shows the backing number). I would like to know if and how I can show some default text in the combo editor when no valid item has been selected. I saw the NullText property but it didn't work (I guess because the integer backing value is not null). Any thoughts?
I'm having the exact same problem where a 0 displays in my combo box when adding a new record. Can someone from infragistics please reply with an answer?!
Hi,
About the text which is displayed when there is no selected item - you can try to use NullText instead of Text property.
Anastas