HomeActive Query BuilderDisable the popup of DataSource Properties Dialogbox When double Clicking on the Diagram Object

Disable the popup of DataSource Properties Dialogbox When double Clicking on the Diagram Object


Dear All,

Can you tell me whether it is possible to disable the popping up of the 'DataSource Properties' DialogBox when you doubleClick on the DiagramObject on the QueryBuilder DiagramPane.


Many thanks
- Rishni
Rishni | email
August 22 2012, 05:09 AM
Dear Rishni,

to override or disable any Properties dialog in the component, you should handle BeforePropertiesDialog event.
For example, to disable properties for any datasources on a diagram pane use the following code:

private void queryBuilder1_BeforePropertiesDialog(ControlOwner controlOwner, ref bool abort)
{
if (controlOwner is DataSource) abort = true;
}
Vitaly Sotnikov | email
20 hours, 46 mins since original post
Dear Vitaly,

Thank you very much for the reply. It works :)

- Rishni
Rishni | email
1 day, 1 hour since original post
This topic is closed