rockall81
unread,Aug 2, 2013, 9:48:40 AM8/2/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to slic...@googlegroups.com
Hi,
I have written an agualer directive to load the slick table. the issue i have is it some time shows the data and some time does not.
Not sure why
<div id="TestModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width: 900px; margin-left: -450px">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Results</h3>
</div>
<div class="modal-body">
<myGrid
rows="results" //results = tow way bind to controller
columns="columns" //columns =two way bind to controller
width="1100px"
height="200px"/>
</div>
<div class="modal-footer">
<button ng-class="dialogButtonClass" data-dismiss="modal" aria-hidden="true">Select</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
</div>
on some user action i call service which returns results
then set it to $scope.results =results;
Then i call some thing like this
$('#TestModal').appendTo("body").modal('show');
which will load me the dialog, at this moment the slickgrid table is empty.
Any idea?
i set the grid data in this way in my directive
var view= this.grid.getData();
// To set the entire the data then use this
view.beginUpdate();
view.setItems(data, "id");
view.collapseGroup(0);
view.endUpdate();
Any thoughts?