on 10-19-2015 10:36 AM
how to apply colspan in openui5 table
Hi Srinivas,
Could you please try nested table approach.
<table>
<tr>
<td>First cell in first table. The cell to the right has the second table in it.</td>
<td>
<table>
<tr><td>nested table</td></tr>
<tr><td>nested table</td></tr>
</table>
</td>
</tr>
</table>
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Srinivas,
what i understood here when you click on Column in table it will expand and display some data under the column right
for Example
If Yes, that is not possible using table control of SAP UI5. You can find a table control of other libraries and encapsulated it in a SAPUI5 control.
Srinu,
That is not possible using table control of SAP UI5 Nested Table View in Sap.m.table
look at different approach is TreeTable
Wow super short question.
Can you please elaborate? maybe provide some sample data. And even better tells us what you have tried so far.
Thanks
-D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for each row i need different number of columns
<table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
<tr>
<td>February</td>
<td>$100</td>
</tr>
<tr>
<td colspan="2">Sum: $180</td>
</tr>
</table>
in the above code 3 rd row having only one column where as remaining rows are having 2 columns
and my requirement is i need tabel like tree tabel but my child tabel should have different number of columns
eg in tabel items row haveng 3 columns where as subitems row having 5 columns
Perhaps in place of table you can use matrixlayout.
Check out few working codes here.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.