jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • Bungle1981
    Participant

    I found a way of doing this so the alternate row class is always set correctly regardless of filter, so commenting in case someone else has this issue in the future.

    I solved by changing return row % 2 === 0? null : 'grey'; to return data.boundindex % 2 === 0? null : 'grey';


    Bungle1981
    Participant

    Thanks! Out of interest, I’m really having issues with something that this code is essentially working around and it would be good to understand how to do ‘properly’ without the workaround.

    I have a drop down box outside of my main grid which contains a value which is used to get the data for ‘initrowdetails’ for any nested grid(s). When I change the value in this dropdown box, ideally I’d like any nested grids already created to be updated with data based on the new value in the drop down – essentially redoing the ‘initrowdetails’ actions as far as getting updated data etc.

    The only way I have been able to get anywhere close to this, is to call updatebounddata on the master grid (‘#jqxgrid’) and then manually re-open the target row which will then show the updated nested grid. I’ve tried doing this via jqxgrid methods and vanilla JS DOM manipulation but neither seems to work properly.

    Is there a reliable method to call initrowdetails or an equivalent to refresh the bound data for a nested grid?

Viewing 2 posts - 1 through 2 (of 2 total)