Show the display name of a columns layout or rows layout - LightSwitch HTML Client RRS feed

  • Question

  • Hi everyone

    I want to display the label of a rows layout or columns layout and have a border around them (all as a group box). Does anyone know if there is a way to add a group box (excepted the custom control because I want to add many group boxes), or something else?

    Thank you in advance.

    Friday, July 12, 2013 1:11 PM

All replies

  • Place your desired controls in your view under a Group Columns Layout or Rows Layout, then click Edit PostRender Code for the Group:

    myapp.AddEditScreen.Group1_postRender = function (element, contentItem) {
    $(element).css('border', '1.5px solid black');

    • Marked as answer by Rom's Monday, July 15, 2013 11:53 AM
    • Unmarked as answer by Rom's Monday, July 15, 2013 2:54 PM
    Saturday, July 13, 2013 5:45 AM
  • Thank you so much for the border.

    But do you know if it's possible to display the header or the display name of columns or rows layout like on the screen shot below?

    Monday, July 15, 2013 2:58 PM
  • I don't think your sample image uploaded, at least, I can't see one on my forum page.
    Monday, July 15, 2013 7:41 PM
  • Oups! Sorry, I forgot the screen shot.

    Here it is :

    • Edited by Rom's Tuesday, July 16, 2013 7:28 AM Update image
    Tuesday, July 16, 2013 7:27 AM