Silver does explored many during RowDetailsTemplate.
RowDetailsTemplate rows wise.
RowDetailsTemplate in RowDetailsTemplate RowDetailsTemplate.
<data:datagrid name="datagrid1" row="0" column="0" rowdetailsvisibilitymode="Collapsed">
<data:datagrid.rowdetailstemplate>
<datatemplate>
<data:datagrid name="datagrid2" headersvisibility="None">
</data:datagrid>
</datatemplate>
</data:datagrid.rowdetailstemplate>
</data:datagrid>
control
Row are
VisibleWhenSelected:
when selected RowDetailsVisibilityChanged another row
with DetailsVisibility property
RowDetailsTemplate powerful feature interactivity and
me
RowDetailsTemplate rows wise.
RowDetailsTemplate in RowDetailsTemplate RowDetailsTemplate.
<data:datagrid name="datagrid1" row="0" column="0" rowdetailsvisibilitymode="Collapsed">
<data:datagrid.rowdetailstemplate>
<datatemplate>
<data:datagrid name="datagrid2" headersvisibility="None">
</data:datagrid>
</datatemplate>
</data:datagrid.rowdetailstemplate>
</data:datagrid>
control
Row are
VisibleWhenSelected:
when selected RowDetailsVisibilityChanged another row
with DetailsVisibility property
RowDetailsTemplate powerful feature interactivity and
me
Hi,
ReplyDeleteI have the RowDetailsVisibilityMode set to "VisibleWhenSelected". Clicking on a row expands it - cool. But I also want to collapse that row if I click again. Also by default the first row in the grid is expanded - which is not exactly convenient for me... How do I these without code-behind :0)
Thanks,
Daniela
Hi Daniela,
ReplyDeleteSorry for late reply. As I have mentioned in the blog that we can control details visibilty of individual row with DetailsVisibility property of Row.You can achieve required behavior with this property. On rowclick event of grid you can check if rows details are visible then collpase it and if its collapsed then expand it.
Hope this helps you.
Regards,
Hiren Dave
Is it possible to see the source code of this example.
ReplyDeleteThanks,
Seb
where the source code???
ReplyDelete