Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to provide an event that is raised on changing a grid layout

$
0
0

This example demonstrates how to provide an event that is raised as soon as a grid layout is changed.


In this example, we have created a GridLayoutHelper class that handles changes of the GridControl object's necessary properties and columns, and raises a custom event in its handlers.


This class can be easily attached to the GridControl object in the following manner:

[XAML]
<dxg:GridControlx:Name="grid"AutoPopulateColumns="True"><dxmvvm:Interaction.Behaviors><local:GridLayoutHelperLayoutChanged="OnGridLayoutChanged"/></dxmvvm:Interaction.Behaviors></dxg:GridControl>

 

To learn more on how to implement similar functionality in Silverlight, refer to the T243422 example.

Question Comments

Added By: bruno mandarà at: 4/4/2016 5:10:10 AM    not work, the change events, are only triggered for the last columnAdded By: Andrey K (DevExpress Support) at: 4/4/2016 6:13:35 AM    Thank you for the report. I will describe the cause of the issue and provide a solution in the T363569: How to subscribe to events of all GridControl columns thread. I will fix the current example as well.

Thanks,
AndreyAdded By: Sergei Polonski at: 7/25/2016 12:50:14 AM    The change events are not triggered, if i show/hide Groupfooter or if i change sort order.
Added By: Ivan (DevExpress Support) at: 7/25/2016 6:21:51 AM    

Hi Sergei,

Thank you for informing us of the issue. I've created a separate ticket on your behalf (T407133) and will address the issue there.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>