This is a migrated thread and some comments may be shown as answers.
Control over the new item row template?
2 Answers 23 Views
This is a migrated thread and some comments may be shown as answers.
Kenneth Jamieson
Top achievements
Rank 1
Kenneth Jamieson asked on 20 Jan 2010, 07:24 PM

I would like to have complete control over the template for the new item row. The documentation is spotty on this topic and the few examples here in the forum seem to be contradictory.

The real problem is this… for a list of people I have associated events. These events load into a grid under the persons information. Thus I can use a Radgrid to add, edit and remove events from a person.

The grid looks like this – each row is showing a CmsEvent object from the Itemsource.

Title                   Location              Description
(combobox)     Text                      Text

The combo column matches ID’s against the full events list to display the CmsEvent.Title and the other two columns show CmsEvent.Location and CmsEvent.Description respectively.

When someone wants to add a new record, I want to present to them ONLY a combobox with the events listed – there is no need to maintain the column structure for location and description since they are simply read only items.

For bonus points, I would like control over the display within the combobox so that I can present to them additional information to help their choice – but I can work that out myself later.

Any ideas?

2 Answers, 1 is accepted

Sort by
0
Kenneth Jamieson
Top achievements
Rank 1
answered on 25 Jan 2010, 08:12 PM
wow - no love at all? C'mon guys - pretty please :)

Ken
0
Nedyalko Nikolov
Telerik team
answered on 26 Jan 2010, 09:06 AM
Hi Kenneth Jamieson,

Unfortunately new row has a different behavior and it is not so easy to break it. However you can use attached behavior pattern in order to achieve your goals. I'm attaching a sample project which can give you some ideas. Let me know how this works on your end.

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.
Asked by
Kenneth Jamieson
Top achievements
Rank 1
Answers by
Kenneth Jamieson
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or