RowsChanged is fired after CellEditorInitialized without any change

1 Answer 53 Views
DropDownList GridView
Henri
Top achievements
Rank 2
Iron
Iron
Iron
Henri asked on 11 Sep 2024, 07:19 AM

How to fix the issue below where a cell is marked with modified just because the cell was clicked?

Before the datasource is set.

After the datasource is set.

The value was not changed, but it is firing he RowsChanged.

How can avoid it to happen?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 16 Sep 2024, 06:53 AM

Hello, Henri,

Following the provided information I was not able to reproduce the exact behavior that you described. If I understand correctly, the RowsChanged event triggers after CellEditorInitialized event which does not happen on my side. I have notices that in CellEditorInitialized event you set the DataSource to some collection for the RadDropDownListElement. Hence, it is is normal when you change the row/respective editor to trigger the RowsChanged event.

However, is it possible to modify my test project and let me know the exact steps about how exactly to reproduce the problem that you are facing? Maybe I am missing something that is different in your setup. Having the exact project that reproduces the problem will be a good staring point in investigating the case further, 

I am looking forward to your reply.

Regards,
Nadya | Tech Support Engineer
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.

Henri
Top achievements
Rank 2
Iron
Iron
Iron
commented on 16 Sep 2024, 09:59 PM

Hi Nadya,

thanks for your answer. I've tried to reproduce the problem and I am not able as the project attached. I implemented a work around in my project, but I have no idea what is happening.
After populate the editorElement.DataSource, it is firing the RadGridView1.RowsChanged. I am attaching a runnable project but as I said previously, I am not able to reproduce the problem. If you see anything wrong there, anything could cause the issue, let me know.

Thanks.

Nadya | Tech Support Engineer
Telerik team
commented on 18 Sep 2024, 08:16 AM

Hello, Henri,

Thank you for providing a project. However, similar as you, I cannot reproduce the undesired behavior regarding RowsChanged event. I have reviewed the project, but I was not able to isolate anything that can cause the problem you described.

Do not hesitate to contact me if you have other questions.

Tags
DropDownList GridView
Asked by
Henri
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or