We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

bind GDC to 3 observable collections ?

Thread ID:

Created:

Updated:

Platform:

Replies:

116176 Apr 20,2014 12:43 PM May 15,2014 07:25 AM WPF 4
loading
Tags: GridDataControl
fff
Asked On April 20, 2014 12:43 PM

Hi SF,

I would like to bind the grid, bi-directionnaly to 3 observable collections.

Each contain the one common field, and one original one. For very size reason size and manipulation reason, I would preffer to let them separate.

See below an example:

result should be visible in SF GDC:
obs. collection: german obs. collection: german obs. collection: spanish
english german english french english spanish english german french spanish
car wagen car voiture car coche car wagen voiture coche
store geschaft store magasin store tienda store geschaft magasin tienda
man mann table table man hombre man mann   hombre
women frau women femme book libro women frau femme  
keyboard clavier screen pa,talla keyboard   clavier  
screen ecran screen   ecran pantalla
table   table  
book     libro

Thanks for help,

Fabrice


fff
Replied On April 26, 2014 04:32 AM

Hi SF,

Any help ?


Two ways binding

If possible without an additional intermediate object, but OK if no other possibility of course. But update shall be possible on the initial 3 objects and then reflected in GDC

Thanks in advance,

F


Jayapradha S [Syncfusion]
Replied On April 30, 2014 11:44 AM

Hi FFF,

We are sorry for the delay in getting back to you.

We have created a sample to achieve your requirement such as binding 3 observable collection using SfDataGrid control and the output will be displayed as shown in your query.

Please refer the below attached sample.

Kindly let us know if this solution helps you.

Regards,
Jayapradha

Attachment: WpfApplication3_9bfaf494.zip

fff
Replied On May 12, 2014 02:25 AM

Hi Jayapradha,

Thanks for that, it works very good and is very helpfull & progressing for me


My "3 collections" were examples : it can be 2 or 6 (...) and not the same every time, but same structure

Is there a way to have that flexibility in your code and to be decided at run time ? In fact, I need the user to select which ones and how many, and the program would then load only the choosen ones & bind them to the GDC.


So is there a way to do that without the fixed structure that I see in your viewmodel.cs ?

I would have imagined the GDC to be binded bidirectionnal to a very basic collection, with only the English for example as it is always present, and then -at run time/after user choice, concat or add new collection(s) to the basic one and GDC to reflect these changes .... is that possible ?

Or not binded al all initially, do the necessary concat, and then binded bidirectionnal.

Thanks,

Fabrice


Jayapradha S [Syncfusion]
Replied On May 15, 2014 07:25 AM

Hi Fabrice,

 

Thanks for your update.

 

You can achieve your requirement by using dynamic item source. You can add the properties based on the user choice.

 

We have created a sample based on your requirement.

 

Please refer the below attached sample.

 

Kindly let us know if this solution helps you.

 

Regards,

Jayapradha S

 


Attachment: Sample_f95f4b1.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;