This is a migrated thread and some comments may be shown as answers.

Grid View Editable Combobox with CollectionViewSource(Not Solved Yet)

9 Answers 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 05 Sep 2010, 12:58 PM
Hi,
I got a problem in GridviewCombox column when binding its item source property with collection View source. When i change any item in new row, the old rows get the sme item selected. I reported it earlier as well, but couldnt find any solution
Thanks

9 Answers, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 06 Sep 2010, 03:36 PM
Hello Muhammad,

This is a know issues which is still unresolved. The only available workaround at the moment is to use any collection other than CollectionViewSource.

If this issue is really stopping you work we could raise its priority. 


All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Muhammad
Top achievements
Rank 1
answered on 08 Sep 2010, 11:48 AM
Hi,
Could you please suggest me any other collection thorugh which i can bind  combobox itemssource in gridview cell eiditing template. Using collection view source I do like 
    <telerik:RadComboBox x:Name="UnitDescriptors"  DisplayMemberPath="Name" ItemsSource="{Binding Source={StaticResource UnitDescriptorsCollectionViewSource}}"  />
And provide CollectionViewSource.Source = myobject collections.;
Its a kind of show stopper for me, if you could also put in your priority list, than it really good .Thanks
0
Milan
Telerik team
answered on 10 Sep 2010, 12:21 PM
Hi Muhammad,

Well, there are several possible way to do that but we have resolved this issue in the meantime. Today's Internal Build will contain a fix for this issues. If you can upgrade your project to use this build there will be no need to change how the GridViewComboBoxColumn is bound. 

All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Muhammad
Top achievements
Rank 1
answered on 12 Sep 2010, 04:53 AM
Hi,
Thanks for resolving it. Could you please tell how can I upgrade my GridView control to get this bug resolved?
Thanks
0
Hristo
Telerik team
answered on 13 Sep 2010, 08:44 AM
Hi Muhammad,

To upgrade your project please have a look at the following help article.

Sincerely yours,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Muhammad
Top achievements
Rank 1
answered on 14 Sep 2010, 12:10 PM
Hi,
I have replaced the dlls as suggested in help document. I have checked all the references in my solution and all projects are showing the correct reference i.e (2010.2.903.40).
It builds succesfully but when it runs, it throws the exception {"Could not load file or assembly 'Telerik.Windows.Controls, Version=2010.2.812.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Telerik.Windows.Controls, Version=2010.2.812.40, Culture=neutral, PublicKeyToken=5803cfa389c90ce7"} .
I hve checked my GAC as well but there is no dll of telerik as i have all dll's copy to local.
Kindly give any suggestion. I am attaching a screen shot for reference. Thanks
0
Milan
Telerik team
answered on 17 Sep 2010, 07:19 AM

Hi Muhammad,

Unfortunately we were unable to publish an Internal Build last week but we will do that today. 

In regard to the error, it seems that the project is still using an assembly with a lower version, Sometimes even though you have explicitly referenced new assemblies a project would choose to use assemblies that are located in folder or subfolders. Could you please verify that every assembly that is referenced by your project has the same version.



All the best,
Milan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Muhammad
Top achievements
Rank 1
answered on 28 Sep 2010, 11:30 AM
Hi,
The new version Q2 SP2 has  been released. Has this been resolved. ?
Thanks
Zubair
0
Pavel Pavlov
Telerik team
answered on 01 Oct 2010, 02:45 PM
Hi Muhammad,
Yes , it has been resolved.
I am attaching a project to illustrate this .

It is with the very latest internal build ( 917) .

Here are some details on the issue :
CollectionViewSource has support for current item .
When you change a value in a combo box , the current item is changed and all comboboxes bound to this collectionviewsource responded to the change.

The newest telerik bits have the property IsSynchronisedWithCurrentItem of RadComboBox set to false by default. This prevents the combos to misbehave when bound to a collectionviewsource.

This is valid for the RadComboBox in the GridViewComboBox column.

In case you define your own combo box (e.g. inside a cell template) , you will need to set its IsSynchronizedWithCurrentItem property to false .

As a summary :
If you use a ComboBoxColumn - just use the lates build.

If you define your own combo box - set RadComboBox.IsSynchronizedWithCurrentItem = false; in XAML or in CS .

Kind regards,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Milan
Telerik team
Muhammad
Top achievements
Rank 1
Hristo
Telerik team
Pavel Pavlov
Telerik team
Share this question
or