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
903
Bug with DataSource in UltraCombo ?
posted

Hi,

Happy new year 2009 to everybody !

I'm experiencing an issue with Visual studio 2008 ans Ultracombo's datasource.

I've made a sample program to  reproduce the problem.

 

Here's the example : 

ObjectA is composed of a list of ObjectB.


If you set ObjectA as datasource of Ultracombo it will works, but now if you edit ObjectB and add a reference to ObjectA (uncomment my line) then Visual Studio will hang/freezes until you kill the process when trying to edit the combo or execute the program.

It seems that Infragistics controls doesn't like recursive calls within a datasource as it seems to add the Object B properties as columns for the UltraCombo ? (so A call B which call again A, then B, ....)

 I don't know what to do as I need to be able to set A as datasource in my combo to display some of the columns and hide the others.

 

How doest Ultracombo datasource works ? How can i by the way add a second band in the same combo with a datasource ?

 

Please advice !

WindowsFormsApplication3.zip
Parents Reply
  • 45049
    posted in reply to Yannick

    Yannick said:
    Do you know if a BR has already been submitted following the post you pointed at ?

    I don't happen to myself know if one has been submitted, no. You can test the latest hot fix we released to see if the issue is already addressed, or you can
    submit a support request so that a Developer Support Engineer can see if it's been fixed and, if not, ensure that you're notified when this is fixed.

    Yannick said:
    By the way, I was wondering if there was a possibility to perform this scenario in ultracombo :

    Band A - 3 columns - List of items coming from a list of object of type A

    Band B - 5 columns - List of items coming from a second list (not linked to first) of Object of type B

     I can't see how can I achieve this ? (if even possible !)

    For this to be possible, the lists would need to be linked in some fashion.  If each list is a DataTable in a DataSet, for instance, they must be linked by a DataRelation, while if your list of object A is a custom business object, is must have a property that is a list of object B.  I comment further on the topic in the following thread (although this is for WinGrid, it also applies to WinCombo):
    http://forums.infragistics.com/forums/t/18607.aspx

    Yannick said:
    Else my needs is to have an UltraComboEditor with possiblity to add manually items but these items should be displayed within a Grid as there's many informations to display to let the user choose the right item.Maybe an idea for a new component ?

    You can manually add items to WinComboEditor already, by adding ValueListItem objects to its Items collection.  WinComboEditor is only capable of showing one display value per item, and can't show multiple bands.

    If you want to simulate "manually" adding items to WinCombo (as opposed to WinComboEditor), use a DataTable or a WinDataSource to which you add the items you want shown in the control.

Children
No Data