Hello, I have a problem with my code.
In mi command i try to use a template whit a "If" statement, but doesn't work, what is wrong?
command:
{
text: "Work",
click: function (e) {
angular.copy(this.dataItem($(e.currentTarget).closest("tr")), vmOrd.DataRel);
$scope.$broadcast('loadData', vmOrd.DataRel);
$scope.$apply();
},
template: '#if(Quantity != 0){# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil-square-o text-default"></span></a> # } else {# <a href="\\#" class="k-button k-button-icontext k-grid-Work"><span class="fa fa-2x fa fa-pencil text-default"></span></a> #} #',
},

<script id="AirPricingWithoutPNRViewModelItemTemplate" type="text/x-kendo-template"> <div class="postpricingItem"> <div> <table> <tbody data-template="T2Template" data-bind="source: data"></tbody> </table> </div> <div>Quote: <span data-bind="text: Total"></span></div> /* attr: title to be attached to this span */ </div></script> <script id="T1Template" type="text/x-kendo-template"> <tr> <td>TST </td> <td title="Passenger Type" data-bind="text: UnitQualifier"></td> <td title="Passenger Quantity" data-bind="text: Quantity"></td> <td title="PricingPCC" data-bind="text: OptionFilters.PricingPccInformation.PCCCode"></td> #if (data.lkpStatus=="D") {# <td title="Deleted TST"><i class="fa text-danger fa-times" aria-hidden="true"></i></td> #} else {# #}# <td title="Price" data-bind="text: TotalSalesPriceToDisplay"></td> </tr> </script>
I am trying to bind a combobox to a dynamic array defined on Vue instance. The values on the array are not known until the control is databound. I can't seem to figure why change to the array won't refresh the combo. Here's the code snippet. Does current version pf kendo-vue support this behavior?
//javascript
var that = this;
that.$set(that, 'countryArray', [{text: 'canada', value:'2' }]);
//html
<kendo-combobox v-model="countrySel"
:placeholder="'Select country...'"
:data-source="countryArray"
:data-text-field="'text'"
:data-value-field="'value'"
:filter="'contains'"
>
</kendo-combobox>


hey, i'm ecaluating the pivot grid using the trial version. i seem to have problems getting angularjs and the pivot templates to work together.
my script imports in the index are as follows:
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/kendo-ui/js/kendo.all.min.js"></script>
in the HTML page i have:
<div class="col-md-12" ng-if="vm.data.HeatChartSkillsPerResource && vm.data.HeatChartSkillsPerResource.length > 0">
<kendo-pivot-grid k-data-source="vm.dataSource" k-options="vm.options" id="pivotgrid" class="hidden-on-narrow">
<div k-column-header-template>
{{member.caption}}
</div>
</kendo-pivot-grid>
in the relevant controller:
vm.dataSource = new kendo.data.PivotDataSource({
data: vm.gridOptions.data,
schema: {
model: {
fields: {
FullName: {
type: 'string'
},
skill_rating: {
type: 'number'
},
skill_name: {
field: 'Skill.SkillName'
},
Category: {
field: 'Skill.Category'
}
}
},
cube: {
dimensions: {
FullName: {
caption: 'Resources'
},
Category: {
caption: 'Categories'
},
skill_name: {
caption: 'Skills'
}
},
measures: {
'Average': {
field: 'skill_rating', aggregate: 'average'
}
}
}
},
columns: [{ name: 'FullName', expand: true }],
rows: [{ name: 'Category', expand: true }, { name: 'skill_name', expand: true }],
measures: ['Average']
});
vm.options = {
columnWidth: 100,
height: 500,
filterable: true,
sortable: true,
reorderable: false
}
the data is loaded as expected but column header templates (or any other templates) don't recognize angularjs. what i see is {{member.caption}} inside the headers. (as in the attached file).
i don't see any errors.
any help on that?

Is it possible to data-bind the visible property in MVVM to multiple conditions, either by using logical operators (&&) or calling a function that accepts parameters?
<div id='test' data-bind='visible: condition1 && condition2'>...</div>or
<div id='test' data-bind='visible: myShowFunction('a', 'b')'>...</div>
