I am implementing http://ui-grid.info/ in my application.
I am populating the grid with ajax call like this :-
$scope.getGrid = function () {
jq.ajax({
type: "POST",
url: "getData",
dataType: "html",
traditional: true,
data: { columnDb: $scope.columnDb },
success: function (data) {
var dataObj = jQuery.parseJSON(data);
......
$scope.gridOptions.data = $scope.myData;
});
}
There is a weird problem i am facing. on the above function call, i can see nothing in my HTML, But if i just mouse scroll on the Grid area the data gets displayed, even if i open Inspect Element in Chrome, the data gets displayed.
Any Idea How to solve this?