|
Query |
Response | |
|
1) Is it or it will be possible to make drag&drop between rows and not just between 2 grids like it is shown here: https://ej2.syncfusion.com/angular/documentation/grid/row.html#drag-and-drop (so I would like to drag&drop to reorder rows, which is possible in EJ1 but not in example in EJ2 (https://js.syncfusion.com/demos/web/#!/bootstrap/grid/rows/drag-and-drop))
|
Currently we don’t have support to reorder rows within the grid and hence we have considered ‘Row Drag and drop support within a single grid’ as a feature and logged report for the same. This feature will be available in any of our upcoming release.
| |
|
2) I can not find datasource.ts with cascadeData. Would it be possible to get it? |
Please find the code example for ‘cascadeData’ and you can download the dataSource.ts file from the below link
export let cascadeData: Object[] = [
{
OrderID: 10248, CustomerID: 'VINET', EmployeeID: 5, OrderDate: new Date(8364186e5),
ShipName: 'Vins et alcools Chevalier', ShipCity: 'Reims', ShipAddress: '59 rue de l Abbaye',
ShipRegion: 'CJ', ShipPostalCode: '51100', ShipCountry: 'Australia', ShipState: 'Queensland', Freight: 32.38, Verified: !0
},
{
OrderID: 10249, CustomerID: 'TOMSP', EmployeeID: 6, OrderDate: new Date(836505e6),
ShipName: 'Toms Spezialitäten', ShipCity: 'Münster', ShipAddress: 'Luisenstr. 48',
ShipRegion: 'CJ', ShipPostalCode: '44087', ShipCountry: 'Australia', ShipState: 'Tasmania', Freight: 11.61, Verified: !1
},
{
OrderID: 10250, CustomerID: 'HANAR', EmployeeID: 4, OrderDate: new Date(8367642e5),
ShipName: 'Hanari Carnes', ShipCity: 'Rio de Janeiro', ShipAddress: 'Rua do Paço, 67',
ShipRegion: 'RJ', ShipPostalCode: '05454-876', ShipCountry: 'United States', ShipState: 'New York', Freight: 65.83, Verified: !0
},
. . .
];
Cascase-data : http://www.syncfusion.com/downloads/support/directtrac/general/ze/datasource-355833170.zip
| |
|
2 B) I wonder, how is it possible to create DropDown where parameter in original object would be just id of the country |
Yes we can customize the default editor control properties by using column.edit feature.
Documentation : https://ej2.syncfusion.com/angular/documentation/grid/how-to.html#cascading-dropdownlist-with-grid-editing
In this demo, we can override the DropDown datasource by using column.edit feature. Please find the code example
| |
|
3) Is it possible to have the same always visible checkbox in EJ2? |
Yes we can always visible checkbox by using following properties .
displayAsCheckBox - If displayAsCheckBox is set to true, it displays the column value as a check box instead of Boolean value when the Grid normal state.
“booleanedit" – If we set column.editType as booleanedit, it shows the checkbox while edit state.
If you want to edit a grid record by single click , we need to bind click event for grid cells( ‘e-rowcell)’ in dataBound event. Please find the code example
| |
|
4) Is it possible to have TimePicker in Grid? |
Yes we can render the your own control by using ‘column.edit’ feature. Please find the documentation for your reference.
|
<e-column field="ownerId" headerText="Owner" editType="dropdownedit" [edit]='ddParams'></e-column>
this.ddParams = {
create: () => {
this.employeElem = document.createElement('input');
return this.employeElem;
},
read: (args) => {
return this.employeObj.text;
},
destroy: () => {
this.employeObj.destroy();
},
write: (args) => {
this.employeObj = new DropDownList({
dataSource: this.employeList,
fields: {text: 'text', value: 'id'},
value: args.rowData.ownerId,
});
this.employeObj.appendTo(this.employeElem);
}
};
