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

[Solved] Add / Edit in Row Details

5 Answers 222 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rory
Top achievements
Rank 1
Rory asked on 07 Aug 2009, 10:10 PM
Hi there,
In the row details I believe there was a claim that we can use it as an Editor Template complete with form controls and a Save button. Would it be possible to create a demo showing us how to Add and Edit gridview items in the row details area. Also is it possible to use a window editor to Add / Edit gridview items.
Thanks.

5 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 10 Aug 2009, 01:56 PM
Hello Rory,

There is nothing special about editing with Row Details. It is just the same as displaying data, only you need to bind your editing controls with a TwoWay binding so that changes will be applied to the currently edited data item. Aside from that modification -- everything could be seen in our Row Details online example.

As for the window scenario -- we do not have such an example, but I guess that you can try to implement it with an external DetailsPresenter, just like in the demo I mentioned above.

Kind regards,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rory
Top achievements
Rank 1
answered on 10 Aug 2009, 10:33 PM
Hi Ross,
Thanks for the reply. I guess we'll try using your demo as a base to create a row editor.
 
However the insert a new item with row details doesn't seem doable based on this demo alone. How would you suggest we go about inserting a new item with a row details like editor?

Thanks.
0
Accepted
Rossen Hristov
Telerik team
answered on 11 Aug 2009, 08:35 AM
Hello Rory,

I have emulated editing a new row with the row details by adding a new item to the data source programmatically, and then showing the row details.

I hope that this sample project can serve as a foundation and you can build upon it and tweak it in all directions. Please, let me know if you have any trouble with the sample project or any other questions.


The thing is that these are the capabilities of row details at the current moment, but in the future we will try to expand them to meet the ever growing demand for new features.

All the best,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark Huck
Top achievements
Rank 1
answered on 27 Dec 2009, 03:04 AM
Thanks, Ross!

On this line, using the 2009.3.1208.1030 bits,

GridViewRow

 

gridViewRow = this.playersGrid.ItemsControl.ItemsGenerator.GenerateItemAtIndex(0) as GridViewRow;

 

I get an error ...

'Telerik.Windows.Controls.RadGridView' does not contain a definition for 'ItemsControl' and no extension method 'ItemsControl' accepting a first argument of type 'Telerik.Windows.Controls.RadGridView' could be found (are you missing a using directive or an assembly reference?)

Your sample compiles with 2009.2.710.1020

Is there another/new syntax?

Thanks!
Mark

0
Vlad
Telerik team
answered on 28 Dec 2009, 07:36 AM
Hi Mark,

You can use now playersGrid.ItemContainerGenerator instead - please check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/Disabled

All the best,
Vlad
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
Rory
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Rory
Top achievements
Rank 1
Mark Huck
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or