I am using a Binding List to store some data.
I attach it to the the grid via DataSource.
Data displays properly.
However, when I click on add new row and enter in some data, I can't get the data to persist in my collection.
Do I need to wire up an event and handle this on my own? or am I doing something else wrong?
Thanks,
Eric
I attach it to the the grid via DataSource.
Data displays properly.
However, when I click on add new row and enter in some data, I can't get the data to persist in my collection.
Do I need to wire up an event and handle this on my own? or am I doing something else wrong?
Thanks,
Eric
9 Answers, 1 is accepted
0
Hello Eric,
Thank you for writing.
You can handle the ListChanged event of BindingList to view and manage the Add/Delete operation. To add support for a Change operation in rows, the custom object must implement the INotifyPropertyChanged interface.
I hope this helps. If you have additional questions, please contact us.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for writing.
You can handle the ListChanged event of BindingList to view and manage the Add/Delete operation. To add support for a Change operation in rows, the custom object must implement the INotifyPropertyChanged interface.
I hope this helps. If you have additional questions, please contact us.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Software
Top achievements
Rank 1
answered on 12 Jun 2008, 11:23 AM
The items are properly being added to the BindingList, but the grid is not displaying them.
What else am I missing?
What else am I missing?
0
Hello Eric,
The RadGridView is automatically updated when bound to a list which implements the IBindingList interface. It appears the issue you're experiencing is due to the specifics of your scenario. We'd very much like to investigate your case. Please send us a simple example to help us reproduce the issue locally.
I'm looking forward to your response.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The RadGridView is automatically updated when bound to a list which implements the IBindingList interface. It appears the issue you're experiencing is due to the specifics of your scenario. We'd very much like to investigate your case. Please send us a simple example to help us reproduce the issue locally.
I'm looking forward to your response.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Software
Top achievements
Rank 1
answered on 12 Jun 2008, 01:11 PM
All I have is a class with three properties called SyncPath.
I create a generic BindingList<SyncPath>.
I add two records to the list, then set the DataSource to to bindinglist.
The original two records show up.
If I then click on add, no more records show up.
If I then right-click and delete a record, the additional records that I manually added now show up.
I don't think I'm really doing any very special as of yet.
I create a generic BindingList<SyncPath>.
I add two records to the list, then set the DataSource to to bindinglist.
The original two records show up.
If I then click on add, no more records show up.
If I then right-click and delete a record, the additional records that I manually added now show up.
I don't think I'm really doing any very special as of yet.
0
Hello Eric,
I am attaching a sample project which demonstrates how to modify your custom object class in order to have your objects automatically added to the binding list collection. However, currently, there is an issue with the behavior of adding records from the RadGridView's UI.
If you set a value for one of the cells of the new row and press the Tab button to proceed to the next cell of the current record, this will create a new record instead of continuing editing the current record. This behavior will be corrected in one of our future releases.
If you have additional questions, do not hesitate to contact me.
Kind regards,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am attaching a sample project which demonstrates how to modify your custom object class in order to have your objects automatically added to the binding list collection. However, currently, there is an issue with the behavior of adding records from the RadGridView's UI.
If you set a value for one of the cells of the new row and press the Tab button to proceed to the next cell of the current record, this will create a new record instead of continuing editing the current record. This behavior will be corrected in one of our future releases.
If you have additional questions, do not hesitate to contact me.
Kind regards,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Software
Top achievements
Rank 1
answered on 17 Jun 2008, 11:34 AM
Thanks.
Any idea when the fix for changing cells will be available. The control is pretty useless with that bug.
Any idea when the fix for changing cells will be available. The control is pretty useless with that bug.
0
Hello Eric,
The issue will be addressed in Q2 2008, scheduled for the end of July. For the time being, I cannot provide you with a workaround.
If you have further questions, do not hesitate to contact me.
Regards,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The issue will be addressed in Q2 2008, scheduled for the end of July. For the time being, I cannot provide you with a workaround.
If you have further questions, do not hesitate to contact me.
Regards,
Nikolay
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Software
Top achievements
Rank 1
answered on 28 Jul 2008, 02:01 PM
<quote>
If you set a value for one of the cells of the new row and press the Tab button to proceed to the next cell of the current record, this will create a new record instead of continuing editing the current record. This behavior will be corrected in one of our future releases.
</quote>
I've been waiting for this fix for several months. I just installed 2008 Q2 and it still doesn't appear to be fixed.
Can I get a status update on this issue?
Thanks,
Eric
If you set a value for one of the cells of the new row and press the Tab button to proceed to the next cell of the current record, this will create a new record instead of continuing editing the current record. This behavior will be corrected in one of our future releases.
</quote>
I've been waiting for this fix for several months. I just installed 2008 Q2 and it still doesn't appear to be fixed.
Can I get a status update on this issue?
Thanks,
Eric
0
Hi Eric,
Generally, the issue was addressed in Q2 2008. However, shortly after the release we discovered specific scenarios where it still occurs. It will be addressed in one of our next releases.
Regarding your case, please send me a sample project which demonstrates the wrong behavior. This will allow me to investigate all the possible cases where the issue occurs.
I am looking forward to your response.
Best wishes,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Generally, the issue was addressed in Q2 2008. However, shortly after the release we discovered specific scenarios where it still occurs. It will be addressed in one of our next releases.
Regarding your case, please send me a sample project which demonstrates the wrong behavior. This will allow me to investigate all the possible cases where the issue occurs.
I am looking forward to your response.
Best wishes,
Nikolay
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.