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

Client-side Programmitic EditItemTemplate

2 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 21 Jan 2014, 04:20 AM
Hello,
I have programmatically created, client-side (wcf) bound RadGrid (2012.2.607). I would like to add an EditItemTemplate but can understand how to accomplish this:
GridTemplateColumn templateColumn = new GridTemplateColumn();
templateColumn.ClientItemTemplate = "<span class='templateTitle'>Template name: </span><span class='templateValue'>#=TemplateName #</span><div class='templateDesc'>#=TemplateDesc #</div><span class='templateTitle'>Last used: </span><span class='templateValue'>#=LastUsed #</span><span class='templateGroupRight'><span class='templateTitle'>Used by: </span><span class='templateValue'>#=LastUsedBy #</span></span><br /><span class='templateTitle'>You used: </span><span class='templateValue'>#=LastUsedByYou #</span><span class='templateGroupRight'><span class='templateTitle'>Conversion rating: </span><span class='templateValue'>#=ConversionRating #</span></span>";
templateColumn.UniqueName = "DetailTemplate";
templateColumn.HeaderStyle.Width = Unit.Pixel(350);
templateColumn.AllowFiltering = false;
grid.MasterTableView.Columns.Add(templateColumn);

I use JSon style binding #=[data item]# as you can see in the code. I have found examples that discuss IBindableTemplate but not sure how this will work in my situation? If possible, I would prefer to create an editItemTemplate for the entire grid vs. a single template column. e.g. grid.MasterTableView.EditItemTemplate = new MyEditItemTemplate();

Thank you!

 


2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 23 Jan 2014, 01:43 PM
Hi Jeff,

I am afraid that currently editing is not supported with client-side binding in RadGrid. We are planning on implementing such feature in a future release of the controls.

If you would like to use client-side editing you might be interested in Batch editing mode for RadGrid. Note that this mode uses server-side binding that enables data to be edited on the client and submitted in a single request.

Regards,
Viktor Tachev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Jeff
Top achievements
Rank 1
answered on 23 Jan 2014, 03:18 PM
Thank you, I very much look forward to that feature.
Tags
Grid
Asked by
Jeff
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Jeff
Top achievements
Rank 1
Share this question
or