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
285
Start the ColumnLayout in the expanded state
posted

Hi,

 

I'm binding a XamWebGrid to some data and using a ColumnLayout.

I managed to get a button to expand all rows by iterating through them and calling IsExpanded=True. That works perfectly fine.

 

My issue is that I want the grid to start in the expanded state. I tried to find a decent "end of binding" event but couldn't find any. I hooked up on the Rows.CollectionChanged and the event gets fired OK.

However, when I iterate through the rows and set their expanded state to true, they are shown as expanded (arrow pointing downwards) but don't display the data.

If I click on them and collapse/expand them, then the data is displayed OK. I guess there's a timing issue or something and the expansion event isn't yet registered on the row when I expand it in code.

 

Is there any way of achieving the "start as expanded" behaviour?

 

PS: I only have one ColumnnLayout in the view

PPS: the collection to which I bound the grid sends the Reset event and not Add.

 

Cheers.

Parents Reply Children
No Data