on 2015 Mar 30 11:39 AM
is this possible with SAPUI5???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ho Robin,
Thanks for your response, i tried with tree there it is adding me like hierarchy my requirement is to show as above image i dont have any idea how to implement this. please do help me if you can with some sample code.. you can share with matrix layout also iam fine with that as well
Thansk in advance...!
If you need to show tabular data and the TreeTable isn't a good fit, then just use a table, and make the first two columns use a checkbox.
It's actually fairly simple, but anyways, here's an example:
<t:Table id="tbl" rows="{/yourdata}">
<t:columns>
<t:Column>
<t:label><Label text="Type" /></t:label>
<t:template><CheckBox checked="{type}" /></t:template>
</t:Column>
<t:Column>
<t:label><Label text="Value" /></t:label>
<t:template><CheckBox checked="{value}" /></t:template>
</t:Column>
<t:Column>
<t:label><Label text="HD2" /></t:label>
<t:template><TextView text="{hd2}" /></t:template>
</t:Column>
<t:Column>
<t:label><Label text="HD3" /></t:label>
<t:template><TextView text="{hd3}" /></t:template>
</t:Column>
<!-- etc -->
</t:columns>
</t:Table>
Hi Robin,
this is how i want but with out the tree structure
But what about the example I gave you earlier (table with two checkboxes) ? See this working example: Edit fiddle - JSFiddle
Well, since you're a developer, I'll leave that as an exercise for you to solve
See the source of the TriStateCheckBox with dependent checkboxes on how to tackle the dependencies. I just gave a hint on how your UI could look like.
Happy coding!
User | Count |
---|---|
70 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.