Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid simulate click

    Hi,

    I'm looking for a way to programmatically "click" the first row in a ListGrid. I'm not sure if there's a method for that.

    I have 3 ListGrids that display records in a hierarchical fashion.

    The second ListGrid usually contains only 1 record. So when the user selects a record from the first ListGrid, I'd like the first row of the second ListGrid to be automatically "clicked".

    I can then call the code that fills the 3rd ListGrid automatically, as if the user had clicked on a row in the second ListGrid.

    Thanks,
    Mike

    #2
    Try selectRecord(0) or selectSingleRecord(0) on the second listgrid. That will select the first record. Then you can place your click processing selectionChanged event.

    Comment


      #3
      Hi,

      That's exactly what I need. However, it does not work.

      16:19:05.112:MUP4:WARN:ListGrid:targetList:ignoring attempt to select records while data is loading

      I have to figure out how to call this function after the data has finished loading, before I try to select the first row.

      Mike

      Comment


        #4
        Use the DataArrived event.

        Comment

        Working...
        X