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

Insert w/Binding List

9 Answers 236 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Software
Top achievements
Rank 1
Software asked on 11 Jun 2008, 12:16 PM
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

9 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 12 Jun 2008, 08:27 AM
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
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?
0
Julian Benkov
Telerik team
answered on 12 Jun 2008, 12:38 PM
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
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.
0
Nikolay
Telerik team
answered on 16 Jun 2008, 03:28 PM
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
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.
0
Nikolay
Telerik team
answered on 18 Jun 2008, 02:54 PM
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
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
0
Nikolay
Telerik team
answered on 30 Jul 2008, 01:13 PM
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.
Tags
GridView
Asked by
Software
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Software
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or