Skip to Content
avatar image
Former Member

Display the Columns in the grid at run time

Hi,

My Query is returning fix number of columns in the output.I dont want to Explicitly set the columns i want to see in the display template(display columns field) rather i want to show the number of columns in the grid at run time selected by the user.

Any Suggestion.

Thankyou in Advance.

Nikhil

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Aug 07, 2007 at 02:05 PM

    A simple glance through the xMII Help Documentationg would yield the following:

    You can get a list of the columns for display to the users via the following: document.iGrid.getQueryObject().getColumns()

    You can then run your query with user selected columns with the following: document.iGrid.getGridObject().setDisplayColumns(NEWVALUE);

    where NEWVALUE would be a string list of your columns you desire.

    Hope this helps...

    Add comment
    10|10000 characters needed characters exceeded