Property/Data context is only updated when GridViewComboBoxColumn loses its focus

1 Answer 56 Views
GridView
Shraddha
Top achievements
Rank 1
Shraddha asked on 15 May 2024, 07:06 PM

Hi,

in my project there is one RadGridView is present. Inside it there is GridViewComboBoxColumn but whenver I am selecting other item from that comboboxcell, binded property setter is not being called and as a result datacontext also remains same.

But whenever cell of that combobox column loses the focus property setter is called and as a result datacontext is fixed.

 

Please suggest fixes for this one.

 

Also is there any way to manually update datacontext ? If yes then how to retrieve changed places and how to update them in datacontext using selection change listener?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 16 May 2024, 10:05 AM

Hi Shraddha,

This is shown in the following article (last example): WPF DataGrid - Number of Clicks to Open ComboBox in GridViewComboBoxColumn.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Shraddha
Top achievements
Rank 1
commented on 21 May 2024, 06:43 AM

I have already tried this but it didn't work for me.
Even then I will give it one more try.

Till then please suggest work around if any.

Dimitar
Telerik team
commented on 21 May 2024, 10:00 AM

Hi Shraddha, 

I have attached a sample project that shows this.

What is the reason that you cannt use it on your project?

I am looking forward to your reply.

Shraddha
Top achievements
Rank 1
commented on 21 May 2024, 01:44 PM

Hey Dimiter,

I gave it one more try, and now the project is working fine.

Thank you for the sample project.

Tags
GridView
Asked by
Shraddha
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or