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:
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();
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!
