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

[Solved] Need in-line editing of client template, how can I achive this?

2 Answers 35 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 26 May 2011, 11:07 PM

I have the following column template defined.

columns
   .Template(t => {%>
         <table cellspacing="0" class="metric-data-row">
            <tr>
                  <td><%=t.Actual%></td>
                  <td><%=t.Planned%></td>
            </tr>
         </table>                  
   <%})
   .ClientTemplate("<table cellspacing='0' class='metric-data-row'><tr><td><#= Actual #></td><td><#= Planned #></td></tr></table>")
   .HeaderTemplate(() => {%>
         <table cellspacing="0" class="metric-data-header">
            <tr>
                  <td colspan="2"><strong>Type</strong></td>
            </tr>
            <tr>
                  <td>Actual</td>
                  <td>Plan</td>
            </tr>
         </table>                  
   <%}).Width(120);

I would really like to utilize in-line editing of the above template column.

  1. Is This possible?
  2. If so, how?

Any help would be really appreciated as going for a pop up editor would really break the look and feel of what I am trying to achieve.

Thanks

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 May 2011, 06:22 AM
Hello Andrew,

Only bound columns can be editable. You must create a bound column and set its template/client template. Then you can use an editor template to customize the way this property is edit. This help article shows how.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
answered on 27 May 2011, 10:14 AM

That's cool and thanks for the quick reply.

So far this seems to be the only weakness to the Telerik grid :(

Is there a route by which I can suggest this as a feature enhancement?

Andy

Tags
Grid
Asked by
Andrew
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or