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
2385
How to capture the event of column width change
posted

Is there an event for column width change and row height change?

  • 27093
    posted

    Hello ,

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

    If this is what you were looking for please verify the answer so it helps other users as well.

    Sincerely,
    Petar Monov
    Developer Support Engineer
    Infragistics Bulgaria
    www.infragistics.com/support

     

  • 27093
    posted

    Hello,

     

    I have been looking into your issue and I what you can do is create styles for the LabelPresenter and DataRecordPresenter with EventSetters for the SizeChanged event like so:

     

    <Style TargetType="{x:Type igDP:DataRecordPresenter}" >

        <EventSetter Event="SizeChanged" Handler="DataRecordPresenterSizeChanged" />

    </Style>

     

    <Style TargetType="{x:Type igDP:LabelPresenter}" >

        <EventSetter Event="SizeChanged" Handler="LabelPresenterSizeChanged" />

    </Style>

     

    and here are the event handlers they go with:

     

    void LabelPresenterSizeChanged(object sender, SizeChangedEventArgs e)

    {

              

    }

     

    void DataRecordPresenterSizeChanged(object sender, SizeChangedEventArgs e)

    {

     

    }

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support