Results 1 to 2 of 2

Thread: Groupingview get last clicked or run function on click

  1. #1
    Sencha User
    Join Date
    Oct 2014
    Posts
    12

    Default Groupingview get last clicked or run function on click

    So i have a GridPanel that uses GroupingView to sort data.

    Headers for each group are formatted with groupRenderer.
    Each group has primary info in the header and essentially " history" under that group.

    What i now need is a way to run a function when ether a link/button or an image is clicked in the header - or a way to mark active group and store a temp value that i could access from within the function ( its ajax call with some checks).

    But it has no click or active or any similar event available.

    I tried adding a href tag in the groupRenderer - however i couldn't access the function from it.

    Each of the groups would have 1 unique value i can use as a parameter to run the function/ ajax call for data only specific to that group.

    For example:
    Code:
    <a style='width: 200px;' href = '#' onClick = 'downloadFiles("+r.get("vehicleid")+")'>" + _("Vehicle status") + "</a>
    With the function being in the very same grouprenderer, defined above - yet i still get "is not defined",

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165
    Answers
    505

    Default

    To make sure we're on the same page, is this a framework class you're working with?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •