Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
795
Display 'multiple' when multiple rows are selected in ultracombo
posted

Hi,

I have a ultracombo in which I have a checkbox column and a values column. I want to show the string 'multiple' when multiple rows are selected instead of 'Item1, Item2, Item3'. Also I would like to show 'All' in case all the items are checked. Do we have some property in the combo which we can set to display the desired text. My UltraCombo is inside a Ultragrid and set as the editor component of cell.

Thanks

  • 23930
    Offline posted

    Hello Earan,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

  • 23930
    Verified Answer
    Offline posted

    Hi Puneet,


    Thank you for contacting Infragistics Developer Support.

    What you could do in your case is to use CreationFilter. With it you change the text that is displayed in the cells based on the selected values count. To do that in the AfterChildElementsCreated method you need to check if the parent is TextUIElement and if it belongs to the cells with the UltraCombo as editor component. Then you can use the Value property to get the list of the selected values and its count. For more information on CreationFilter please follow this link:

    http://help.infragistics.com/Help/Doc/WinForms/2012.2/CLR4.0/html/Win_Creation_Filter.html

    I have attached a sample which demonstrates this suggestion.

    Please let me know if you have any additional questions.

    WC_MultiSelectConditionValues.zip