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

Inserted Item does not display

4 Answers 126 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Terry
Top achievements
Rank 1
Terry asked on 02 Sep 2009, 09:18 PM
Hi,
We swithed to the most recent version a couple of days ago because we wanted to use the radtoolbar and now our gridview do not display new item that we insert into our collections. We're using CSLA and prior to upgrading everything was ok.

-Terry

4 Answers, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 04 Sep 2009, 12:32 PM
Hi Terry,

With the new version of the RadGridView when you press "Insert" key, new row is automatically added to the data source and enters into Edit mode. GridViewNewRow will appear if you are using a fixed collection (collection with fixed number of elements array or something similar). There was a little bug with this feature, so can you confirm that this issue is valid with the latest internal build? If you again get this issue, can you provide me with more detailed info about your project? A sample application (using Northwind database) which demonstrates the problem will be great since this feature is very sensitive about kind of data source used.

Best wishes,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Terry
Top achievements
Rank 1
answered on 04 Sep 2009, 01:45 PM
Hello Nedyalko,
Are you talking about the 2009.2 internal build? If so I've already tried it and the issue is still there.

-Terry
0
M
Top achievements
Rank 1
answered on 06 Sep 2009, 01:58 AM
I also found that when a RadGrid is bound to a collection, new items aren't displayed. A new blank row shows, but the columns are not displayed.

I tested with another vendor's grid (C1) in the same form with the same code side-by-side and the 2nd component shows the record as soon as it is added, and displays properly.

So this is certainly a bug in the Telerik control.

This is a showstopper.
0
Nedyalko Nikolov
Telerik team
answered on 07 Sep 2009, 12:06 PM
Hi M,

Generally if you add an item into a collection which supports INotifyCollectionChanged interface, RadGridView will automatically update the user interface, otherwise you have to call RadGridView.Rebind() method.

I'm attached an example which demonstrates both approaches.

P.S. Can you (M. Smith) provide me with more info to what kind of collection do you bind RadGridView in order to get these result (compare to C1 grid)?

Regards,
Nedyalko Nikolov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Terry
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Terry
Top achievements
Rank 1
M
Top achievements
Rank 1
Share this question
or