Dynamic Column Row Cell Template

Dynamic Column Row Cell Template

fskyfsky Posts: 1Questions: 1Answers: 0

Hi,
I am new to Datatables/Editor and was wondering if the plug-ins would be able to help me and generate a complex inline data entry table.

The column cell template may be different for each row.

Something similar to the output below to explain better.

<table>
    <tr>
        <th>Name</th>
        <th>Option #1</th>
        <th>Option #2</th>
    </tr>
    <tr>
        <td>Component zzz</td>
        <td><input type="text" /></td>
        <td>
            <select>
                <option>black</option>
                <option selected>white</option>
            </select>
        </td>
    </tr>
    <tr>
        <td>Component yyy</td>
        <td>
            <input type="checkbox" />
        </td>
        <td></td>
    </tr>
    <tr>
        <td>Component xxx</td>
        <td>
            <select>
                <option>small</option>
                <option selected="selected">medium</option>
            </select>
        </td>
        <td><input type="text" /></td>
    </tr>
</table>

Thanks

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Editor creates its own form elements. I'm afraid it cannot reuse input elements that you insert into the table.

    Allan

This discussion has been closed.