Active Query Builder support area

How to add a context menu for nodes of the database schema tree in ASP.NET edition?

Last modified:


Q:

How to add a context menu for nodes of the database schema tree in ASP.NET edition?

A:

Use the following code to handle right-clicks and show your menu:

            AQB.Web.onQueryBuilderReady(function() {
                $('.tree-node').click(function() {
                    alert($(this).parent().attr('namefull'));
                });
            });

The full list of available attributes:

  • index="0"
  • caption="Categories"
  • name="Categories"
  • qualifiedname="Categories"
  • path="/0/0/0/0"
  • namefull="Northwind.dbo.Categories"

Is this article helpful for you?