Example
Source
Run as server control
A simplifed search interface can be created using the
simpleSearchFilter
property which allows search criteria to be applied to multiple columns to give the best possible chance of finding a match
Include the Javascript library file
<script src="../dbnetgrid.js"></script>
Client-side script
window.onload = initGrid ////////////////////////////////////////////////////////////////////////////////////////////// function initGrid() ////////////////////////////////////////////////////////////////////////////////////////////// { var dbnetgrid1 = new DbNetGrid( "dbnetgrid1" ) with ( dbnetgrid1 ) { connectionString="samples" fromPart="customers" searchType="simple" simpleSearchFilter = [ ["Contact Information", "companyname like '%{token}%' or contactname like '%{token}%' or contacttitle like '%{token}%'"], ["Phone/Fax Number", "phone like '%{token}%' or fax like '%{token}%'"], ["Address Information", "address like '%{token}%' or city like '%{token}%' or region like '%{token}%' or country like '%{token}%'"] ] loadData() } }
HTML
<div id=dbnetgrid1></div>