Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149112 | Nov 14,2019 07:45 PM UTC | Nov 17,2019 06:10 AM UTC | JavaScript - EJ 2 | 1 |
![]() |
Tags: ListBox |
Please give me an example using listbox filter with remote data
<body>
<input id='listbox' />
</body>
|
import { ListBox } from '@syncfusion/ej2-dropdowns';
import { Query, DataManager, ODataV4Adaptor } from '@syncfusion/ej2-data';
let listObj: ListBox = new ListBox({
dataSource: new DataManager({
url: 'https://services.odata.org/V4/Northwind/Northwind.svc/',
adaptor: new ODataV4Adaptor
}),
query: new Query().from('Products').select('ProductName').where('ProductID', 'greaterthan', 2).take(4),
fields: { text: 'ProductName' }
});
listObj.appendTo('#listbox');
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.