Results 1 to 3 of 3

Thread: Working with MultiRow selections in Grids

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    5,771

    Working with MultiRow selections in Grids

    In v1.3 we have implemented the ability to handle MultiRow selections.

    As stated in the roadmap.

    "Added the ability for a grid section to have "Multi Select Rows". This displays a checkbox column for each row. As the user clicks a checkbox, the "selectionChanged" delegate is called with a comma separated list of values. These values are determined by the "Multi Select Row Expression" e.g. You can multi select rows in a grid and then call your own business procedure to handle app specific business logic."

    This is how it looks at runtime.

    Name:  Screen Shot 2014-12-11 at 3.03.53 PM.jpg
Views: 646
Size:  64.6 KB

    And these are the attributes you need to set for the grid section to enable this functionality.

    Name:  Screen Shot 2014-12-11 at 3.04.51 PM.jpg
Views: 570
Size:  115.0 KB

    The "selectionChanged" delegate itself looks like this.

    Code:
    ////////////////////////////////////////////////////////////////
    // Event delegate for 'selectionchanged' event
    proc page1_section2_selectionchanged(arg)
        // 'arg' is a comma separated list of items selected
        // It can be used directly to load the selected items into a ListBox
        Lianja.writeOutput("selectionChanged() arg="+arg)
    endproc
    Enjoy.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #2
    Senior Member
    Join Date
    Jan 2014
    Posts
    351
    Thanks a million!

    Best Regards

  3. #3
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    1,948
    Great stuff: more work we don't have to do.

    thanks,

    Hank

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us