Skip to content

Commit 222b40b

Browse files
Merge pull request #391 from Syncfusion-Content/hotfix/hotfix-v26.1.35
DOCINFRA-2341_merged_using_automation
2 parents e096629 + 274f8aa commit 222b40b

File tree

4 files changed

+643
-194
lines changed

4 files changed

+643
-194
lines changed

ej2-vue/code-snippet/grid/select/selection-column-existing/app-composition.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div style="padding: 20px 0px 0px 0px">
99
<ejs-grid ref="grid" :dataSource="data" :selectionSettings="selectionOptions">
1010
<e-columns>
11-
<e-column field="OrderID" headerText="Order ID" textAlign="Right"
11+
<e-column field="OrderID" headerText="Order ID" textAlign="Right"
1212
width="120"></e-column>
1313
<e-column field="CustomerID" headerText="Customer ID" width="120">
1414
</e-column>
@@ -29,11 +29,11 @@ import { data } from "./datasource.js";
2929
import { ref } from "vue";
3030
const textbox = ref(null);
3131
const grid = ref(null);
32-
const selectionOptions = { type: "Multiple", mode: "Cell" };
32+
const selectionOptions = { allowColumnSelection: true, mode: "Cell" };
3333
const onClick = function () {
34-
const startIndex = parseInt(textbox.value.value, 10);
34+
const startIndex = parseInt(textbox.value.ej2Instances.value, 10);
3535
if (!isNaN(startIndex))
36-
grid.value.selectColumnWithExisting(startIndex);
36+
grid.value.ej2Instances.selectionModule.selectColumnWithExisting(startIndex);
3737
};
3838
</script>
3939
<style>

ej2-vue/code-snippet/grid/select/selection-column-multiple-method/app-composition.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { ButtonComponent as EjsButton } from "@syncfusion/ej2-vue-buttons";
5151
import { data } from "./datasource.js";
5252
import { ref } from "vue";
5353
const grid = ref(null);
54-
const selectionOptions = { type: "Multiple", mode: "Cell" };
54+
const selectionOptions = { allowColumnSelection: true, type: "Multiple", mode: "Cell" };
5555
const selectColumns = function (columns) {
5656
grid.value.ej2Instances.selectionModule.clearColumnSelection();
5757
grid.value.ej2Instances.selectionModule.selectColumns(columns);

ej2-vue/code-snippet/grid/select/selection-column-range/app-composition.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ import { ref } from 'vue';
3737
const textbox = ref(null);
3838
const textbox1 = ref(null);
3939
const grid = ref(null);
40-
const selectionOptions = { type: 'Multiple', mode: 'Cell' };
40+
const selectionOptions = { allowColumnSelection: true, type: 'Multiple', mode: 'Cell' };
4141
const onClick = function () {
42-
const startIndex = parseInt(textbox.$el.value, 10);
43-
const endIndex = parseInt(textbox1.$el.value, 10);
42+
const startIndex = parseInt(textbox.value.ej2Instances.value, 10);
43+
const endIndex = parseInt(textbox1.value.ej2Instances.value, 10);
4444
grid.value.ej2Instances.selectionModule.selectColumnsByRange(startIndex, endIndex);
4545
};
4646
</script>

0 commit comments

Comments
 (0)