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

[Solved] InCell Column Tmplate Editing problem

0 Answers 46 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.
AndyL
Top achievements
Rank 1
AndyL asked on 04 Jul 2011, 04:10 PM

Hi,

I don’t think that this is mistake, probably just lack of my knowledge, anyway, I create a grid with Ajax binding and InCell editing mode. Everything working find so far. I had to make some changes in column definition like in the snipped below. The content renders correctly but unfortunately I the template column is read only. Can anyone tell how make the Unit and Value columns editable again without losing the functionality of InCell editing. Short sample will be really appreciated.

Thanks,

Andy  


columns.Template(o => {%>
        <table cellspacing="0" class="data-row">
            <tr>
                <td><%=o.Unit_01%></td>
                <td><%=o.Value_01%></td>
            </tr>
        </table>
    <%})
    .ClientTemplate("<table cellspacing='0' calss='data-row' <tr><td><#= Unit_01 #></td><td><#= Value_01 #></td></tr></table>")
    .HeaderTemplate(() => {%>
        <table cellspacing="0" class="data-header">
            <tr>
                <td colspan="2" align="center"><strong>Period 1</strong></td>
            </tr>
            <tr>
                <td>Unit</td>
                <td>Value</td>
            </tr>
        </table>
    <%})
    .Width(200);
Tags
Grid
Asked by
AndyL
Top achievements
Rank 1
Share this question
or