This question is locked. New answers and comments are not allowed.
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.
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
0
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.
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.
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
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.
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,
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
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.
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.
