CheckAction does not invoke checked_change event

StatusIDPriorityType
Closed33088BlockerBug
ProfileReply
nickcoleClient

CheckAction does not invoke checked_change event when Template is DetailRibbonFormV2
I do as follow:
1. Create a xaf winform applcation by xaf 17.2.3
the default FormStyle=Ribbon and UItype=TabbedMDI
see 001.png.
2. Add a viewcontroller for Model project
Add xafari and winXafari to Model project and Model win project.
Add a check action to viewController and name it as 'checkAction1'
Add checked_change event for checkAction1.
see 005.png
3. add createCustomTemlate for winApplication
see 002.png
4. run applcation and logon
see 003.png
5. the checkaction does not invoke checked_change event
see 004.png

How to invoke checked_change event for checkAction when template is DetailRibbonFormV2?

attached is the screenshot and my solution.

Replies

UserDescriptionPosted On
MariyaVoytovichAgent

Hello nickcole!

I apologize for the delayed response.

To invoke checked_change event you should subscribe to Execute event.
In documentation Check Action. Getting Started demonstrates how the handler should look like after the subscribe are applied.

Feel free to contact us if you have any questions.

Regards,
Mariya
On behalf of Xafari Client Services Team

nickcole

Thanks for your reply!
I do as documentation Check Action. Getting Started .
see 01.png.
The action can invoke checked_change event.

But
the action status not change in UI.
see 02.png 03.png
I hope the action have 'backcolor' if it checked.
see example 04.png 05.png
How to realize it?

MariyaVoytovichAgent

We have replicated this behavior, but couldn't find a solution at the moment. Please give me additional time.

Regards,
Mariya
On behalf of Xafari Client Services Team

nickcole

Waiting for goods news!

MariyaVoytovichAgent

Hello nickcole!

We have investigated the issue.

The action have not 'backcolor' if it checked because you use new Templates.
To change this action behavior you need use old Templates or customize new template.
For use old templates you should set the WinApplication.UseOldTemplates property to true.
For customize Template see documentation:
Template Customization
How to: Create a Custom WinForms Ribbon Template

Feel free to contact us if you experience any further difficulties.

Regards,
Mariya
On behalf of Xafari Client Services Team

× This ticket is closed.

Write US