hi,
I have used vue wrapper grid, columns binding as a list. Columns are binded.
<
KendoGrid
ref
=
"ContactList"
id
=
"contactListView"
:selectable
=
"'multiple'"
:reorderable
=
"true"
:sortable
=
"false"
:resizable
=
"true"
:scrollable-endless
=
"true"
:filterable
=
"false"
:columns="columnList.filter(x=>x.selected==true)"
:editable="commonContactInfo.isGridEditable"
@change="onContactRowClick"
@save="saveContact"
:data-source="ContactsListForSelection"
@databound="onDatabound"
:allowCopy="true"
></
KendoGrid
>
ColumnList is as follows.
let columns: any[] = [
{
width: 50,
title: 'Select All',
selectable: 'multiple',
selected: true,
disabled: false
},
{
title: `First Name`,
field: 'firstname',
selected: true,
disabled: true,
isVisible: true,
width: 150
},
{
title: `Middle Name`,
field: 'middlename',
selected: true,
disabled: false,
isVisible: true,
width: 150
},
{
title: `Last Name`,
field: 'lastname',
selected: true,
disabled: false,
isVisible: true,
width: 250
},
{
title: `Initials`,
field: 'initials',
selected: true,
disabled: false,
isVisible: true,
width: 250
},
{
title: `Address`,
field: 'address',
selected: true,
disabled: false,
isVisible: true,
width: 250
}]
I use a seperate method to change this column list. later. There I add new columns to the grid as well.
if (this.commonContactInfo.customFieldsForGroups.length > 0) {
let Customcolumns: any[] = [];
let field = '';
let cusFieldId = '';
this.commonContactInfo.customFieldsForGroups.forEach((cf:CustomFieldsDto) => {
if (cf.pkFieldId !== undefined) {
cusFieldId = cf.pkFieldId;
}
this.commonContactInfo.fetchedContactsList.forEach((cont:ContactDto) => {
Object.keys(cont.customFields).forEach(k => {
if (this.commonHelper.getPlainGuidString(k) === cusFieldId) {
if (cont.customFields[k].DataType === 'DateValue') {
console.log(cont.customFields[k].DateValue);
field = 'customFields[' + k + '].DateValue';
}
if (cont.customFields[k].DataType === 'StringValue') {
console.log(cont.customFields[k].StringValue);
field = 'customFields[' + k + '].StringValue';
}
if (cont.customFields[k].DataType === 'IntValue') {
console.log(cont.customFields[k].IntValue);
field = 'customFields[' + k + '].IntValue';
}
}
});
});
Customcolumns.push({
title: cf.fieldName,
field: field, // 'customFields[' + field + '].DateValue',
selected: true,
disabled: true,
isVisible: true,
width: 150
});
});
let defcolumns = columnsList;
Customcolumns.forEach((tc:any) => {
defcolumns.push(tc);
});
this.ColumnsList= defcolumns;
this.ColumnsList.forEach((e:any) => {
e.selected = true;
});
}
columns are added like this because the data i have is as follows. datafieldvalue (see attached file)
Issue is after this even the columns are added the data in the customfields are not binding.
Any suggestions?
hi,
I have used vue wrapper grid, columns binding as a list. Columns are binded.
ColumnList is as follows.
I use a seperate method to change this column list. later. There I add new columns to the grid as well.
createContactGridWithCustomFields(customFields: []) {
if (this.commonContactInfo.customFieldsForGroups.length > 0) {
let Customcolumns: any[] = [];
let field = '';
let cusFieldId = '';
this.commonContactInfo.customFieldsForGroups.forEach((cf:CustomFieldsDto) => {
if (cf.pkFieldId !== undefined) {
cusFieldId = cf.pkFieldId;
}
console.log('cfid:', cusFieldId);
this.commonContactInfo.fetchedContactsList.forEach((cont:ContactDto) => {
Object.keys(cont.customFields).forEach(k => {
if (this.commonHelper.getPlainGuidString(k) === cusFieldId) {
if (cont.customFields[k].DataType === 'DateValue') {
console.log(cont.customFields[k].DateValue);
field = 'customFields[' + k + '].DateValue';
}
if (cont.customFields[k].DataType === 'StringValue') {
console.log(cont.customFields[k].StringValue);
field = 'customFields[' + k + '].StringValue';
}
if (cont.customFields[k].DataType === 'IntValue') {
console.log(cont.customFields[k].IntValue);
field = 'customFields[' + k + '].IntValue';
}
}
});
});
Customcolumns.push({
title: cf.fieldName,
field: field, // 'customFields[' + field + '].DateValue',
selected: true,
disabled: true,
isVisible: true,
width: 150
});
});
let defcolumns = this.helperService.loadGridColumns();
Customcolumns.forEach((tc:any) => {
defcolumns.push(tc);
});
}
}
columns are added like this because the data i have is as follows. datafieldvalue
Issue is after this even the columns are added the data in not binding.
Any suggestions?
Hello
I'm using the kendo Vue wrapper to implement a grid. I want to have the first column of my grid to be a checkbox column so i can select rows. As the docs suggested I wrote a selectable="true" kendo grid colomn. But no checkboxes are visible, I checked the DOM and it's because there are only input type checkbox tags with class "k-checkbox" added and not the nessecary labels with class "k-checkbox-label". I'm not sure if I'm missing something or the kendo grid column with binding :selectable isn't working properly.
<
kendo-grid
ref
=
"vehicleGrid"
:data-source-ref
=
"'vehicleDataSource'"
:groupable
=
"true"
:sortable
=
"true"
:resizable
=
"true"
>
<
kendo-grid-column
:selectable
=
"true"
:width
=
"50"
></
kendo-grid-column
>
...Other columns....
</
kendo-grid
>
Thanks for helping me!
Kind regards
Hi
I'm using Kendo Scheduler Component
I use only month view and i want change the format of the current date.
I attached a description picture.
Please give me solution. Thank you.
Hello,
We have implemented Kendo Vue Donut chart, using visual function, that in most cases rendered well.
But we found that on certain devices (regardless bigger or smaller) the chart renders each slice of the donut as a full circle and puts them all one on top of the other. The attached image demonstrates it.
Our investigation shows that it is the result of the seriesDefaults holeSize value AND the visual function stroke line width.
Both are determined programmatically at run time.
The following values result with the correct donut you see in the image:
holeSize: 83
visual stroke width: 22 (or less)
And the following values result with the incorrect donut:
holeSize: 83
visual stroke width: 23 (or more)
Notice it is also related to the holeSize - for example the following will be rendered well:
holeSize: 85
visual stroke width: 23 (or more)
And holeSize 84 with visual stroke width of 23 is rendered incorrectly.
Can you please advise how we can make sure it will always be rendered correctly? Is there a certain ratio between the holeSize and the visual stroke width we need to maintain?
Thanks,
Ron.
There is not documentation on how to use the onFocus prop on the native Vue input component.
https://www.telerik.com/kendo-vue-ui/components/inputs/api/InputProps/
I have tried binding a function to the prop but it doesn't not seem to be running. Could you update your documentation to provide an example on how to use this?
This is an example of how I tried it.
https://stackblitz.com/edit/wcvyxe
Hi,
I'm new on the Kendo UI for Vue,
I Have some difficulty when working on in sorting, for some reason the sorting model value always null, I'm using DataSourceRequest model.
API
[HttpGet("grid")]
public IActionResult ListGrid([DataSourceRequest] DataSourceRequest request) {
// My code here
}
Vue
<
kendo-datasource
ref
=
"datasource1"
:transport-read-url
=
"'/api/service/grid'"
:transport-read-data-type
=
"'json'"
:server-paging
=
"true"
:page-size
=
"2"
:schema-data
=
"'data'"
:schema-total
=
"'total'"
:server-filtering
=
"true"
:server-sorting
=
"true"
>
</
kendo-datasource
>
<
kendo-grid
ref
=
"grid"
:data-source-ref
=
"'datasource1'"
:pageable
=
'true'
:sortable
=
"true"
:filterable
=
"true"
:sortable-mode
=
"'multiple'"
:sortable-allow-unsort
=
"true"
:sortable-show-indexes
=
"true"
>
<
kendo-grid-column
title
=
"Name"
field
=
"name"
:filter-search
=
"true"
></
kendo-grid-column
>
<
kendo-grid-column
title
=
"Description"
></
kendo-grid-column
>
<
kendo-grid-column
title
=
"Users"
field
=
"relatedUser"
></
kendo-grid-column
>
<
kendo-grid-column
title
=
"Active"
field
=
"isActive"
:template
=
"activeTemplate"
></
kendo-grid-column
>
<
kendo-grid-column
:template
=
"editbutton"
:width
=
"80"
></
kendo-grid-column
>
</
kendo-grid
>
Please help me,
Best Regards
Passing in a number value will cause the native vue input component to throw a warning in the browser console.
"Invalid prop: type check failed for prop "value". Expected String with value "1", got Number with value 1"
No warning should be thrown when passing a number value as it's considered a valid type in the api documentation.
Also the defaultValue should have the Number type valid as well.
Url of example:
https://stackblitz.com/edit/typescript-nbhffs?embed=1&file=index.html
Might be related to this issue in core
https://github.com/telerik/kendo-ui-core/issues/3843