File tree Expand file tree Collapse file tree 4 files changed +643
-194
lines changed
selection-column-existing
selection-column-multiple-method Expand file tree Collapse file tree 4 files changed +643
-194
lines changed Original file line number Diff line number Diff line change 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";
2929import { ref } from " vue" ;
3030const textbox = ref (null );
3131const grid = ref (null );
32- const selectionOptions = { type : " Multiple " , mode: " Cell" };
32+ const selectionOptions = { allowColumnSelection : true , mode: " Cell" };
3333const 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 >
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ import { ButtonComponent as EjsButton } from "@syncfusion/ej2-vue-buttons";
5151import { data } from " ./datasource.js" ;
5252import { ref } from " vue" ;
5353const grid = ref (null );
54- const selectionOptions = { type: " Multiple" , mode: " Cell" };
54+ const selectionOptions = { allowColumnSelection : true , type: " Multiple" , mode: " Cell" };
5555const selectColumns = function (columns ) {
5656 grid .value .ej2Instances .selectionModule .clearColumnSelection ();
5757 grid .value .ej2Instances .selectionModule .selectColumns (columns);
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ import { ref } from 'vue';
3737const textbox = ref (null );
3838const textbox1 = ref (null );
3939const grid = ref (null );
40- const selectionOptions = { type: ' Multiple' , mode: ' Cell' };
40+ const selectionOptions = { allowColumnSelection : true , type: ' Multiple' , mode: ' Cell' };
4141const 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 >
You can’t perform that action at this time.
0 commit comments