Hide / disable task click property in ASP.net core

Hi Team,

Need quick help. How to restrict user to click on task property in asp.net core programmatically.
Shared sceen shot

Can you give more details about the project?

Hi Niall,

diagram load onto .cshtml page. we want to restrict task property.
When click on any of task; Its appear property window.
Can you please tell how to disable that window?