Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1495
XamDataTree custom implementation
posted

Hi,

We use MVVM in our application, our requirement to display records in form of Tree, in child node we display data in column wise currently we showing data in four columns(Value, Avg., St.Dev, PCT) and in last coulmn "PCT" value color is generated based on its value (red circled in snapshot), we want same look and feel by using XamDataTree or any other control like in attached snapshot. 

By default first node will be expanded and when user switch to other node then previous expanded node will be collapsed automatically, and expanded the the new one where user click it. Is it possible to achieve same look and feel like in showing snapshot ? Sample application is really very helpful for me.  

Parents
  • 34510
    Offline posted

    Hi elinder,

    Right now there are probably 3 controls that you could use to achieve this.  The XamDataTree, the XamDataGrid and the XamGrid.  I'm not sure which one would be the best choice to go with though.  The XamDataGrid and XamGrid both have the ability to display columns so one of them may be able to be adjusted to look like your mock-up.  Your mock-up looks almost exactly like the XamDataTree though so maybe if all you plan to have are columns in the child nodes then it's probably easier just to modify the XamDataTree node tempates to include a column format and then just stick some dummy headers above the XamDataTree.

    I'll look at the options and let you know what I come up with.

Reply Children