c# - How to allign a treeview childjust below the parent? -
i have 3 columns , 4 rows. in each row first , second column contains textblock , third column contains button . second row alligned below first one.
but in in third row have treeview , child of tree view disturbs allignment. shifts the child textblocks in little right (because treeview's child in bit right). i want position them (allign) below textbox of parent. possible ?
currently this:
but want this:
my code this:
<telerik:radtreeview grid.row="2" name="radtreeviewobj" margin="10" background="{staticresource bgbrush_1}" borderbrush="{staticresource bgbrush_1}" itemssource="{binding eoddatastepscollection}" selectionmode="single" itemcontainerstyle="{staticresource treeviewitemstyle}"> <telerik:radtreeview.itemtemplate> <telerik:hierarchicaldatatemplate itemssource="{binding relateditems}"> <grid> <grid.columndefinitions> <columndefinition width="auto" /> <columndefinition width="auto" /> <columndefinition width="auto" /> </grid.columndefinitions> <toolkit:busyindicator grid.column="0" busycontent="server requesting ..." isbusy="{binding isrequested}" displayafter="0" padding="0"> <textblock grid.column="0" text="{binding label}" fontweight="bold" margin="10" height="23" width="400" horizontalalignment="left" verticalalignment="center" visibility="{binding isvisible, converter={staticresource booleantovisibilityconverter}}" foreground="{binding status, converter={staticresource eodstatusfgconverter}}" /> </toolkit:busyindicator> <textblock grid.column="1" text="{binding statuslabel}" margin="10" height="23" width="170" horizontalalignment="left" verticalalignment="center" visibility="{binding isvisible, converter={staticresource booleantovisibilityconverter}}" foreground="{binding status, converter={staticresource eodstatusfgconverter}}" /> <toolkit:busyindicator horizontalalignment="right" grid.column="2" busycontent="server requesting ..." isbusy="{binding isrequested}" displayafter="0" padding="0"> <button content="{binding buttonlabel}" style="{staticresource buttonstyle_blue}" padding="5" margin="10" horizontalalignment="right" verticalalignment="center" visibility="{binding isvisible, converter={staticresource booleantovisibilityconverter}}" isenabled="{binding stepenabled}" command="{binding buttonstepcommand}" /> </toolkit:busyindicator> </grid> </telerik:hierarchicaldatatemplate> </telerik:radtreeview.itemtemplate> </telerik:radtreeview>
how allign child of tree view below (not in right) ?
Comments
Post a Comment