Skip to main content
19-Tanzanite
December 27, 2016
Question

Dynamic headers for the Grid - how did you do it?

  • December 27, 2016
  • 1 reply
  • 4757 views

Hi all,

Anybody needed to programmatically generate a grid's header?

In my case I need the header to contain the starting week's calendar Day and Month, like 5-Dec, 12-Dec and so on, depending on the date I selected.

I'm aware of at least one method which can give nice results: not using a Grid, and replacing it with a Repeater.

However it requires a certain amount of implementation work.

Any other ideas?

Thanks,

Vladi

1 reply

1-Visitor
December 28, 2016

With standard Grid widget the only way to have "Dynamic" column it's to set it as "Show All Columns" and bind to a service which returns the desired columns.

19-Tanzanite
December 28, 2016

Hy Carles,

Forgot to mention that one of my requirements is state based formatting on a cell basis

1-Visitor
December 28, 2016

Well I have kind of state based formatting on cell basis still on a dynamic grid, but you need to have few fixed columns on the dynamic grid in order to set the State Based formatting on this fixed columns, but if you need state based formatting on the dynamic columns you are out of luck with standard Grid Widget, then you have two options the one you said a Repeater or customizing standard Grid Widget in order to support dynamic columns...