Create SQL Dialog like control

Jun 18, 2013 at 9:26 AM
I'll like to create a control, like the SQLExpressionDialog but in a sidebar, like the legend or tools control. This way I can have it always visible.
Is there any example? I know how to populate the datatable, but not how to create the control.