Hello all, I am using Kendo Editor and have the below setup:
<editor :resizable-content="true"
:resizable-toolbar="true"
contenteditable="true"
style="height:360px"
rows="10"
cols="30"
v-model="editorBody"
@input="setBodyOnChange"
@keyup="setBodyOnKeyUp"
@execute="setBodyOnExecute"
@select="onSelect"
ref="editor">
</editor>
I would like to retrieve the cursor position when someone clicks in the editable area. Specifically I think I should use the select event. But I can't find a way to do so....
Any help would be appreciated.
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.
So this is my datasource... I would assume the schema is what it would read to render the properties in the sheet, but it's just verbatim taking the JSON object and plopping it in. So example, there's a LastUpdated property on each object, it's not defined in the schema... but it's rendering in the sheet.
Am I missing something?
dataSource: {
transport: {
dataType: "json",
read: {
url: this.baseUrl + "/groups?format=json",
type: "GET",
data: function () {
return {
cohort: $editorData.cohort
};
}
},
/*
update: {
url: baseUrl + "/groups?format=json",
dataType: "json",
type: "POST"
},
*/
},
requestEnd: function (e) {
var response = e.response;
var type = e.type;
console.log("requestEnd", type, response);
},
schema: {
model: {
id: "UserId",
fields: {
UserName: { type: "string", editable: false },
FirstName: { type: "string", editable: false },
LastName: { type: "string", editable: false },
Campus: { type: "string", editable: false },
Cohort: { type: "number", editable: false },
MF1: { type: "number" },
MF3: { type: "number" },
MF4: { type: "number" },
MF2: { type: "number" },
MF5: { type: "number" },
ClerkshipGroup: { type: "number" },
PediatricsStream: { type: "number" },
ProCompGroup: { type: "number" }
}
}
},
<kendo-spreadsheet
ref="spreadsheet"
:toolbar="false"
:sheetsbar="false"
:excel-proxy-URL="'/RestApi/utility/proxy/save'"
:pdf-proxy-URL="'/RestApi/utility/proxy/save'"
:columns="15"
:rows="300"
style="width: 100%; height: 800px">
<kendo-spreadsheet-sheet
:name="'Groups'"
:data-source="dataSource"
:rows="rows"
:columns="columns"
>
</kendo-spreadsheet-sheet>
</kendo-spreadsheet>
Hi everyone,
I have an issue using the KendoEditor with Vue.js. Here is my code :
HTML part :
<div id="vueapp" class="vue-app">
<form id="forme">
<input type='text' class="k-textbox" name='title' id="title" v-model="request.title" />
</form>
<kendo-editor :resizable-content="true"
:resizable-toolbar="true"
:value="request.desc"
style="height:280px"
rows="10"
cols="30">
</kendo-editor>
</div>
Script part for vue:
var vm = new Vue({
el: '#vueapp',
data: function() {
return {
request: {
title: "",
desc: "Write here..."
},
has_deadline: false
}
}, methods: {
test: function(){ alert(this.request.title + this.request.desc)}
}
});
Then, when I change the content of the input "title" (let's say I do "title1") and call the "test" method, an alert comes up with "title1 Write here...".
But when I change the content of the editor (for example, "description1"), the alert comes up with "title1 Write here..." instead of "title1 description1" !
Could someone explain me what I did wrong ? I can not find how to figure out.
Thanks for your help,
Louis
So how do we add a Detail Template? The docs are seriously lacking for Vue wrappers!!
I have this - which i assume would reference a $ref od "detail" but instead outputs a string
<kendo-grid ref="grid"
:data-source-ref="'dataSource'"
:menu="true"
:sortable='true'
:pagable="true"
:groupable="false"
:detail-template="'detail'">
I'm trying to get a tooltip to show when hovering a cell when the characters inside the cell are more than 12 characters.
<template v-slot:reservationNameTemplate="{ props }">
<td :style="truncateDescriptionText(props.dataItem)">
{{ props.dataItem[props.field] }}
</td>
</template>
This is working fine to truncate the text inside the cell, however when I try to warp it with the Tooltip like this the truncate stops working and I get no tooltip on hover
<template v-slot:reservationNameTemplate="{ props }">
<Tooltip :anchor-element="'target'" :position="'bottom'">
<td>
{{ props.dataItem[props.field] }}
</td>
</Tooltip>
<td :style="truncateDescriptionText(props.dataItem)">
{{ props.dataItem[props.field] }}
</td>
</template>
Thank you.
Dear Telerik Forum Admins,
Please find attached a screenshot of my current kendo-grid setup and DataSource.
I have implemented the excel functionality on my Vue Grid Wrapper, but the excel only contains the amount of records specified within the pageSize property of my DataSource.
I found a similar issue on the Angular form mentioning the fetchData property on the Angular Grid, but it is not clear to me how this should be implemented within Vue.js.
Could you please assist me in being able to implement both functionalities?
Kind regards,
Natasha L