From c90007c81268406be2a716afbb0ab10698989c2c Mon Sep 17 00:00:00 2001 From: filipKovachev Date: Mon, 30 Sep 2024 15:29:11 +0300 Subject: [PATCH 1/2] docs(grid): add adjust height after page loads kb --- .../main.js | 4 + .../main.vue | 202 ++++++++++++++++++ .../grid-adjust-height-after-page-loads.md | 40 ++++ 3 files changed, 246 insertions(+) create mode 100644 knowledge-base/examples/grid-adjust-height-after-page-loads/main.js create mode 100644 knowledge-base/examples/grid-adjust-height-after-page-loads/main.vue create mode 100644 knowledge-base/grid-adjust-height-after-page-loads.md diff --git a/knowledge-base/examples/grid-adjust-height-after-page-loads/main.js b/knowledge-base/examples/grid-adjust-height-after-page-loads/main.js new file mode 100644 index 0000000..be9e20a --- /dev/null +++ b/knowledge-base/examples/grid-adjust-height-after-page-loads/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './main.vue' + +createApp(App).mount('#app') diff --git a/knowledge-base/examples/grid-adjust-height-after-page-loads/main.vue b/knowledge-base/examples/grid-adjust-height-after-page-loads/main.vue new file mode 100644 index 0000000..c9dd0d6 --- /dev/null +++ b/knowledge-base/examples/grid-adjust-height-after-page-loads/main.vue @@ -0,0 +1,202 @@ + + + diff --git a/knowledge-base/grid-adjust-height-after-page-loads.md b/knowledge-base/grid-adjust-height-after-page-loads.md new file mode 100644 index 0000000..cb48963 --- /dev/null +++ b/knowledge-base/grid-adjust-height-after-page-loads.md @@ -0,0 +1,40 @@ +--- +title: Change the Height of the Grid Programmatically After the Page Loads +description: An example on how to change the height of the Grid programmatically after the page loads +type: how-to +page_title: Change the Height of the Grid Programmatically After the Page Loads - Kendo UI for Vue Native Grid +slug: grid-adjust-height-after-page-loads +tags: grid, page, loads, height, programmatically +ticketid: 1659873 +res_type: kb +category: knowledge-base +--- + + +## Environment + + + + + + + + + + + + +
Product Version5.2.0
ProductProgress® Kendo UI for Vue Native
+ +## Description + +Is there a way to change the height of the Grid programmatically after the page loads? + +## Solution + +This can be achieved by passing a ref to the Grid and then changing the height as required in the `mounted` hook. + +{% meta id:index height:400 %} +{% embed_file grid-adjust-height-after-page-loads/main.vue preview %} +{% embed_file grid-adjust-height-after-page-loads/main.js %} +{% endmeta %} From 66eca7078bde111f8cb48b4ab88fbcfe938ceb23 Mon Sep 17 00:00:00 2001 From: filipKovachev Date: Mon, 30 Sep 2024 15:35:35 +0300 Subject: [PATCH 2/2] docs(listbox): add listbox kb article --- .../examples/listbox-scroll-to-bottom/main.js | 4 + .../listbox-scroll-to-bottom/main.vue | 185 ++++++++++++++++++ knowledge-base/listbox-scroll-to-bottom.md | 40 ++++ 3 files changed, 229 insertions(+) create mode 100644 knowledge-base/examples/listbox-scroll-to-bottom/main.js create mode 100644 knowledge-base/examples/listbox-scroll-to-bottom/main.vue create mode 100644 knowledge-base/listbox-scroll-to-bottom.md diff --git a/knowledge-base/examples/listbox-scroll-to-bottom/main.js b/knowledge-base/examples/listbox-scroll-to-bottom/main.js new file mode 100644 index 0000000..be9e20a --- /dev/null +++ b/knowledge-base/examples/listbox-scroll-to-bottom/main.js @@ -0,0 +1,4 @@ +import { createApp } from 'vue' +import App from './main.vue' + +createApp(App).mount('#app') diff --git a/knowledge-base/examples/listbox-scroll-to-bottom/main.vue b/knowledge-base/examples/listbox-scroll-to-bottom/main.vue new file mode 100644 index 0000000..37bb7c7 --- /dev/null +++ b/knowledge-base/examples/listbox-scroll-to-bottom/main.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/knowledge-base/listbox-scroll-to-bottom.md b/knowledge-base/listbox-scroll-to-bottom.md new file mode 100644 index 0000000..aecb107 --- /dev/null +++ b/knowledge-base/listbox-scroll-to-bottom.md @@ -0,0 +1,40 @@ +--- +title: Implement Scrolling to the Bottom for the Kendo UI for Vue Native ListBox +description: An example on how to implement scroll-to-bottom behavior for the Kendo UI for Vue Native ListBox +type: how-to +page_title: Scroll to Bottom - Kendo UI for Vue Native ListBox +slug: listbox-scroll-to-bottom +tags: listbox, scroll, scroll to bottom +ticketid: 1662799 +res_type: kb +category: knowledge-base +--- + +## Environment + + + + + + + + + + + + +
Product Version5.2.0
ProductProgress® Kendo UI for Vue Native
+ + +## Description + +I want to implement a scroll-to-bottom behavior for the ListBox when an item is dragged and dropped or when an item is transferred between ListBoxes. + +## Solution + +To implement the scroll-to-bottom behavior, first, obtain a reference to the ListBox component. In the [onToolClick]({% slug api_listbox_listboxtoolbarprops %}#toc-ontoolbarclick) event of the `ListBoxToolbar` and the [onDrop]({% slug api_listbox_listboxprops %}#toc-ondrop) event of the ListBox, use the `scrollIntoView` method to scroll to the bottom whenever an item is dropped or transferred using the arrows. + +{% meta height:480 %} +{% embed_file listbox-scroll-to-bottom/main.vue preview %} +{% embed_file listbox-scroll-to-bottom/main.js %} +{% endmeta %}