|
<ejs-grid [dataSource]='data' ...>
<e-columns>
<e-column field='ShipCountry' editType='dropdownedit' [edit]='editparams'></e-column>
</e-columns>
</ejs-grid> |
|
public ngOnInit(): void {
this.editparams = { params: { showClearButton: true } };
} |
|
this.editparams = { params: { popupWidth: 200 } }; |
my data is too long to display on the screen. Can I down the line of them?
|
import { Tooltip, TooltipEventArgs } from '@syncfusion/ej2-popups';
ngAfterViewInit(){
//Initialize Tooltip component
this.tooltip = new Tooltip({
// set target element to tooltip
target: '.e-list-item',
// set position of tooltip
position: "TopCenter",
// Triggers before the tooltip is rendered
beforeRender: this.onBeforeRender.bind(this)
});
this.tooltip.appendTo('body');
}
// Tooltip’s beforeRender event handler
onBeforeRender(args: TooltipEventArgs): void {
// The current target item element text is set as the tooltip content
this.tooltip.content = args.target.innerText;
// The tooltip is properly updated with the dynamically changed content
this.tooltip.dataBind();
} |
|
<e-column field='ShipCountry' editType='dropdownedit' [edit]='editParams'></e-column> |
|
public editParams = { params: { close: this.onClose.bind(this) } }
// Edit dropdown’s close event handler
onClose(args) {
this.tooltip.close();
} |
I did it. Thank you so much!