K2 smartforms - responsive view

  • 6 October 2015
  • 2 replies
  • 1 view

Badge +1

Hi

 

We are using a two column display on one of our forms. Is it possible to change the layout to a one column display when the screen size shrinks below a particular value (Phone screens).

Also is it possible to hide or show particular columns of a list view as the scren size changes.

 

Thanks

 


2 replies

Userlevel 1
Badge +8

Hi Varun

 

Have a look at the new Lithium responsive design theme in 4.6.10. I don't think it will change column layouts, but it is designed to work with mobile devices.

 

As for hiding/showing columns, this can be done on the form initialize event using the Client properties in the Context Browser. You can check the client width, height, browser culture, user agent and platform in an advanced condition and then hide/show columns as required.

Badge +1

Thanks for the reply Andrew.

I tried the Lithium theme but that did not work as expected. I will try extracting the screen width values from the Browser context to hide the columns.

 

Regards

Varun

Reply