Hi,
Is there an automatic way to filter a listbox like Models below? I also need to use filter icon below.
Kind regards,
Sedat AlisAEC Technology Inc.
Sedat Alis said:Is there an automatic way to filter a listbox?
Regards, Jon Summers LA Solutions
Jon Summers said:What programming language do you use?
MDL/DLL
Jon Summers said:Do you want to use the MDL listbox or a Windows ListView or something else?
I prefer MDL listbox function library.
Sedat Alis said:I prefer MDL listbox
There are many MDL functions available to program a ListBox...
mdlDialog_listBoxColumnSetIcon() ... mdlDialog_listBoxSetFilter() ... mdlDialog_listBoxSetSortColumn() ...
A ListBox can have a header row, with a caption for each column. What an MDL ListBox does not have is the icon command bar at the top, so you'll have to roll your own using other MDL widgets.
Download this DataSheet example to see ways to handle a ListBox and its underlying ListModel.
The best way to add data to a ListBox is to create a ListModel. An MDL ListModel is a sophisticated data structure, with many functions available to populate, filter and sort those data. It may be easiest to use the ListModel to filter and sort your data, then redraw the ListBox that displays the ListModel.