Hello,
I am quite new to Angular and have the following problem:
Grid.html:
<div class="scrollable">
<div class="mainWrapper">
<div class="ui-helper-clearfix" ng-controller="ResultController">
<button ng-click="getGridViewData()"
ng-class="{'btn-default': true, 'btn-success':
false, 'btn-danger': false }"
ng-disabled="!file.writeable"
class="btn btn-sm spacer-left"
type="button"
translate="shared.checkCurrentVersionForCalculation"></button>
<div id="gridContainer"></div>
<div style="margin:5px;text-align:center">
</div>
</div>
</div>
</div>
If I click the button, then the method getGridViewData() ijn
ResultController is called. This method fills the following DevExpress Grid
"gridContainer" with data which then are shown here in a table. This works
fine.
But how to do, that the function getGRidViewData is called once when I
enter this page here?
I try somethibng like:
<span ng-if="!bDeployGrid">
<div>{{getGridViewData()}}</div>
</span>
where I set the boolean variable bDeployGrid inside ResultController first
to false and after first calling of GetGridResults to false. But then I get
an endless polling on this side.
So how can I do that after clicking on the page Grid.html the Grid is
automatically initialized and shown without clicking addtional the button?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.