Hi Ricardas,
Thanks for contacting Syncfusion support.
Query #1:
Angular template is not working as templated column
We considered this query “
Template column not rendered in angularJS when binding remote data” as a bug. We have logged a report on this and will fix the issue internally, also the fix will be included in 2015 Volume 4 Service Pack 2 release which has been scheduled to be rolled out in the month of March 2016.
We have also created an incident internally to have a follow up with this issue.
Query #2:
In addition - ng-click cannot be bound to ng controller as vm.
We need to bind the ng-click action using the angular $parent property. Please refer to the code example.
<script id="actionTemplateNg" type="text/ng-template">
<pre ng-click='$parent.vm.onDetailsClick(data)'>{{data | json}}</pre>
</script>
|
Query #3:
Angular details template is working (this._trigger("refresh"); looks strange)!
We need to refresh the template while rendering the template element. So we have explicitly called the
refresh event in the
detailsDataBound event of the Grid.
We considered the query “
DetailsTemplate not compiled in angularJS” as a bug. We have logged a report on this and will fix the issue internally, also the fix will be included in 2015 Volume 4 Service Pack 2 release which has been scheduled to be rolled out in the month of March 2016.
We have also created an incident internally to have a follow up with this issue.
Query #4:
However how can I access row data object?
We can get the row data object using the
items[0] parameter. Please refer to the below code example.
<script id="gridDetailsNg" type="text/ng-template">
<pre>details ng template, data: {{items[0] | json}} , ng sum expression works: {{3 + 4}}</pre>
</script>
|
We have modified the sample based on your requirement, which can be found in the below location.
Demo Link:
http://jsplayground.syncfusion.com/rctfxzt2
Query #5:
Columns widths are out of sync with headers, as soon as user scrolls down! This is not a bug, if row details template is removed.
We have provided only limited support to Virtual Scrolling. The following list of Grid feature will not work when Virtual Scrolling enabled.
· Editing
· Frozen rows and columns
· Cell Merging
· Responsive Grid
· Grouping
· Detail Template and Hierarchy Grid
We considered the requirement “
Virtual Scrolling Improvements” as a feature. We have already added it to our feature request list and will be implemented in any of our upcoming releases.
So if you are in need to use those above listed features then we suggest you to use Pager in Grid control that supports “
on-demand paging”.
Query #6:
Angular expression template column is blanked out, when jumping in/out of edit mode in different rows
We considered the query “
Template column becomes blank upon editing and saving a record” as a bug. We have logged a report on this and will fix the issue internally, also the fix will be included in 2015 Volume 4 Service Pack 2 release which has been scheduled to be rolled out in the month of March 2016.
We have also created an incident internally to have a follow up with this issue.
Query #7:
After Freight value is altered in any row, SUM field is not recalculated, because I cannot initiate $scope.$digest (grid's summary is not an option for me). How can I catch that row has been edited?
We can achieve your requirement by initiating the angular
$digest method in the
actionComplete event of the Grid. Please refer to the below code example.
<div>
<span ng-click="$scope.$digest()" class="freight">Freight sum: {{vm.freightSum()}} (you can click me, if sum does not refresh)</span>
</div>
function PhoneListCtrl() {
var vm = this;
vm.grid = {
dataManager: window.localdata,
editSettings: { allowEditing: true, allowAdding: false, allowDeleting: false },
actioncomplete : function(e){
if(e.requestType == "save"){ //when saving any record
var scope = angular.element($(".freight")).scope();
scope.$digest();
}
}
};
};
|
Query #8:
Is it possible to have rows in edit mode all the time?
It is not possible to have rows in edit mode all the time. But we have an inbuilt api showAddNewRow for having an addform by default in grid. Please refer to the below online documentation for more information.
http://help.syncfusion.com/js/api/ejgrid#members:editsettings-showaddnewrow
http://help.syncfusion.com/js/grid/editing#render-with-blank-row-for-easy-add-new
If you want to enable editing in single click, then we suggest you to use batch Edit mode. Please refer to the below online sample link.
http://js.syncfusion.com/demos/web/#!/azure/grid/editing/batchediting
Query #9:
Wrong focus, when clicking on Ship City cell to edit. Focus is set to first input field, not to the one which has been double clicked.
It is the default behavior in normal editing. When a row is edited, by default the focus is set to the first enabled element in the form.
Query #10:
When user does some scrolling, ng-templates fail to update according to local data changes.
We considered the query “
Ng-Click event unwired from the previously rendered tr in virtual scrolling” as a bug. We have logged a report on this and will fix the issue internally, also the fix will be included in 2015 Volume 4 Service Pack 2 release which has been scheduled to be rolled out in the month of March 2016.
We have also created an incident internally to have a follow up with this issue.
Regards,
Ragavee U S.