CurrentCellRequestNavigate can not be cancelled?

according to this:
https://help.syncfusion.com/wpf/datagrid/column-types#gridhyperlinkcolumn
You can cancel the navigation of a GridHyperlinkColumn by setting CurrentCellRequestNavigateEventArgs.Handled to false in CurrentCellRequestNavigate.
But regardless if I set Handled to true or false, Navigation is done anyway.
(Version 17.4.0.40, but also tested with 17.4.0.55)

In debugger I can see that 
 System.Windows.Documents.Hyperlink.DoNavigation(object sender) is already called before my CurrentCellRequestNavigate handler, so no wonder it does not work.

So my question is: can the navigation of a GridHyperlinkColumn be cancelled? Is this a bug, or do I just misundertand the documentation.


3 Replies

ES Eckhard Schwabe March 18, 2020 10:36 AM UTC

I tested in a small project: here it works as described in the docu: Handled=true prevents the navigation
so seems to be specific to our project


VS Vijayarasan Sivanandham Syncfusion Team March 18, 2020 11:50 AM UTC

Hi Eckhard Schwabe,

Sorry for the inconvenience caused.

Yes, you have to set e.Handle = true to prevents the navigation in GridHyperLinkColumn. We have made the changes in user guide and it will reflect in our UG document on 19th March 2020. We will let you know once the changes have been reflected.

Regards,
Vijayarasan S 



VS Vijayarasan Sivanandham Syncfusion Team March 19, 2020 05:17 PM UTC

Hi Eckhard Schwabe,

Thank you for your patience.

We have modified your reported changes in our UG documentation.

UG Link:
https://help.syncfusion.com/wpf/datagrid/column-types?_ga=2.18191865.1954760902.1584335847-880165572.1562591265#cancel-the-navigation

Regards,
Vijayarasan S  
 


Loader.
Up arrow icon