Skip to main content
1-Visitor
March 21, 2016
Question

Programatically control the Grid coloumn title

  • March 21, 2016
  • 5 replies
  • 2109 views

Hello,

I would like to know if with Thingworx 7.0 ...we are able to control the title of a grid coloumn. The coloumn needs to display a new title based on a user selection in the same mashup.

5 replies

5-Regular Member
March 21, 2016

Karthik, I don't believe that is possible, as you would still need to configure the grid columns in the Mashup. Do you have a specific scenario in mind? We can try using a different method, or even a different widget.

kramesh1-VisitorAuthor
1-Visitor
March 22, 2016

Aanjan, I'm displaying a infotable in a grid. There are some time period selections coming out of a radio button in the same mashup.  Based on state selection in the radio button...i would like the grid to display different grid coloumn titles for the same infotable it is displaying.

Please suggest any other way to get this done or a different widget.

5-Regular Member
March 22, 2016

We have a Data Filter widget that works based on queries to return data, but that would sift through your existing data, find matches and display those rows only. That won't work in your scenario as you would want to display entire columns. The only way I can think of that can work in your case is to dynamically bind the data section of the grid, so that a new infotable (created/ existing table queried) is displayed when the radio button selection is made.

kramesh1-VisitorAuthor
1-Visitor
March 22, 2016

Aanjan, querying the datatable based on state selection is handled by my java script currently. I'm asking for a way to control the title on grid coloumns when different data sets are displayed as a result of radio button selection. If grid is not the widget to use , then what is?. and what other ways can i get to what i'm asking here.