Skip to content

Commit 6c33b01

Browse files
committed
Grid: Add another grid to the selectable demo to show the selected rows. Updates while selecting, pretty cool actually.
1 parent 2cf0b5a commit 6c33b01

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

grid-editing/grid-selectable.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
selected: selected
6767
});
6868

69+
$( "#developers-selected" ).grid({
70+
source: selected
71+
});
72+
6973
$( "#pageDevelopers" ).pager({
7074
source: developers
7175
});
@@ -181,6 +185,21 @@ <h2>local data source</h2>
181185
</tr>
182186
</tfoot>
183187
</table>
188+
189+
<table id="developers-selected">
190+
<caption>Selected Developers</caption>
191+
<thead>
192+
<tr>
193+
<th data-property="firstName">First Name</th>
194+
<th data-property="lastName">Last Name</th>
195+
<th data-property="country">Country</th>
196+
<th data-property="bitcoins" data-type="number">Bitcoins</th>
197+
<th data-property="random.value" data-type="number">Random</th>
198+
</tr>
199+
</thead>
200+
<tbody>
201+
</tbody>
202+
</table>
184203
</div>
185204

186205
<div>

0 commit comments

Comments
 (0)