Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
igGrid live upating
posted

Hi, I have a scenario where I use an igGrid that is initialised along with the page and hidden with the ng-show directive, and as data comes in over a Solace connection, the data source is updated. 

This should then show the grid correctly rendered with the information in the new rows. 

I've tried several approaches, but there seems to be issues with each attempt. 

  • Updating the $scope.data that is bound to the grid doesn't update the UI.
  • If the grid is wrapped in a Div, the add method does not work ($("#igniteGrid").igGridUpdating("addRow", row);)
  • If the grid is wrapped in a table, the add method works, but the data does not show in the cells, the headers are misplaced and the row takes up the entire height of the grid. 
  • If the grid is not hidden at all, the headers render properly, but the data still does not display

I'm using version 15.2.20152.2081 and need to support IE11

Is there a reliable cross browser way to get this working? 

<table id="igniteGrid" ng-show="rowCount > 0"></table>

I've added the relevant snippets of js code here

https://plnkr.co/edit/9kmBTiZHUtEm5k3EZMnY?p=catalogue