Hello,
I'm trying to use <MultiSelect> to v-model a property on an object, however this doesn't work fully as the dropdownlist doesn't pre-select the values, allowing the user to pick the same option twice.
See:
H2w74h (forked) - StackBlitz
Repro steps:
1: Open dropdownlist, see that 'Baseball' is not pre selected and highlighted in blue
2: Click on 'Baseball' again, Baseball is now selected twice
3: Open dropdownlist again and see that 'Baseball' is selected and highlighted in blue
4: Remove the last 'Baseball' chip (the one on the right).
5: Open dropdownlist again and see that 'Baseball' is not highlighted blue anymore
I'm using the dropdowntree control in Vuejs.
When the checkboxes are selected, the selected items are display in an oval with an "x" at the top of the control.
How do I keep the selected items from displaying at the top of the control?
I'd rather have the total number of items that are selected to display at the top of the control. Is this possible?
<dropdowntree
:data-source="myDataSource"
:autoClose="false"
:checkboxes="true"
:check-all="true"
:placeholder="'Select Items'"
dataTextField="text"
dataValueField="id"
v-model="selectedItemsList"
style="width: 500px;"
>
</dropdowntree>
Hey all. I’ve done some work with Vue recently and trying to display tabular data in Teleriks Kendo Grid component. Have no problem getting data in but looking to see how I can get the selected rows. I tried referencing the Angular and JQuery documentation but haven’t had much luck. Anyone know how to do this?
I’ll post code reference later if it would help. Posting this from my phone.
Thanks!
We trying to implement a Kendo grid for my project and I was trying to add 'All' option in the pagination and used dataStateChange event to set the take value but getting event value as undefined.
Whenever we select "All" option from the dropdown, In dataStateChange method , I am getting selected value as "totalItemCount" instead of "All", but I can see both "totalItemCount" and "All" options in dropdown.
Example:
we have 1000 records as "totalItemCount" in a table, provided image below. So I am able to see all the records in the table but in dropdown we can see both 1000 and "All" option. We only need to see "All" not 1000.
We should not see "totalItemCount" in the dropdown(as well as selected option) and see only "All" as a selected option(as well as dropdown) when we select "All" option from dropdown.
Can someone help to solve this issue, please?
pageable() { return { buttonCount: 5, info: true, type: 'numeric', pageSizes: [10, 15, 20, 'All'], previousNext: true, pageSizeValue: this.pageSizeValue, }; }, dataStateChange: function (event) { this.loader = false; this.skip = event.data.skip; this.take = event.event.value === 'All' ? 1000 : event.page.take; this.pageSizeValue = 'All'; },
I am trying to setup a blank project using Vite and Vue 3 since Vite is suggested tooling for new Vue 3 projects.
I am getting type errors despite "skipLibCheck": true in the tsconfig.
Environment:
> node -v v16.14.2 > pnpm -v 6.32.4 > pnpm tsc -v Version 4.6.3
Reproduction steps:
... more lines...
node_modules/.pnpm/@progress+kendo-vue-popup@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-popup/dist/npm/additionalTypes.ts:9:68 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~ Found 6 errors in 3 files. Errors Files 2 node_modules/.pnpm/@progress+kendo-vue-common@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-common/dist/npm/additionalTypes.ts:9 2 node_modules/.pnpm/@progress+kendo-vue-dropdowns@3.2.4_4d853744181ba70ddba87c6a33341cef/node_modules/@progress/kendo-vue-dropdowns/dist/npm/additionalTypes.ts:9 2 node_modules/.pnpm/@progress+kendo-vue-popup@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-popup/dist/npm/additionalTypes.ts:9
Same steps, but tooltip folder in the repository root gives different errors:
node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9:10 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~~~~~~~~ node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9:68 - error TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'. 9 export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type }; ~~~~~~~~ Found 2 errors in the same file, starting at: node_modules/.pnpm/@progress+kendo-vue-tooltip@3.2.4_d36bad9df0c973a5805fa10278317f29/node_modules/@progress/kendo-vue-tooltip/dist/npm/additionalTypes.ts:9
All this works in a vue cli project without issues. However, due to the size of our project, the build times are increasing. So we're looking at alternatives.
I have two questions:
Currently using ComboBox, When you select it and a drop down appears, I see you are using Teleport and appending it to the end of the body.
Are you able to either:
I need a simple sample for doing a custom treeview template (not the checkbox template), where the template gets an instance of the node or node's data, so I can change the output based on the data. I have tried doing it like the grid ones shown in this forum, but if I set a breakpoint in devtools, I can see that my function doesn't seem to be getting anything on the argument. It does render the template though. I had it working as a string using a kendo template, but then couldn't call something back on my component, so figured I need a "proper" Vue template for it. Maybe I'm missing something simple here.
My method that is returning the template:
public itemTemplate(e: any): any {
return {
template: FieldGroupTemplate,
templateArgs: e
}
}
My template component (we use Typescript):
import Vue from "Vue";
import Component from "vue-class-component";
import { Prop } from "vue-property-decorator";
import { lazyInject } from "Areas/Ordering/OrderingIocContainer";
@Component({
template: "<div>{{ templateArgs.name }}</div>",
components: {
}
})
export default class FieldGroupTemplate extends Vue {
public templateArgs!: any;
constructor() {
super();
}
}
Some markup, from where a template has the treeview:
<kendo-tree-view id="fieldSelectorTreeView" :data-source="items"
@@select="select"
:data-text-field="'name'"
:checkboxes="checkboxes"
:template="itemTemplate"
@@check="check" style="height:615px">
</kendo-tree-view>