deselect Row in grid

Hi

 

is it possible to deselct a row in a grid?

In my case I have two grids on an admin form. When I click a row in grid1 the second grid (grid2) gets some data to show. Now I can choose some data in grid2.

When I now select another data entry in grid1 the second gris get some new data entries. The problem is that the second grid remembers his last selected Row.

Is there a possibility that I can set the lastSelectedRow property for the second grid to "-1" (no matter if client- or server side)

 

 

thanks and kind regards

 

Chris

Tagged:

Comments

  • What version of MBPM are you referring to?

  • ahh sorry I forgot

     

    Version 9.0.2

     

    :)

  • The following client-side script would do that for you:

     

    function selectGridRow(sGridName, iRowIndex)
    {
        var $0 = $find(sGridName);
        if ($0) {
            $0.clearSelections();
        }
        return true;
    }
    

     

    But as we've discussed in another post you would only be able to fire this function from an editable grid, so you still might have a problem if you are using a read-only grid.

  • This worked for me. Thanks Scott.

  • I have always asked that rows not automatically be highlighted -- at least if not formally selected -- but it has never been accepted.  This is particularly distracting when multiple grids are on a page.