BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
i have a problem in filtering data of datamanager, as i have a grid and above it there is a multi select dropdown
i wanna filter with the selected option(s) of this dropdown, is it possible?
in case of single value selected , it works perfect, the problem appears in multiselection
filteredActiveData = ej.DataManager(data).executeLocal(ej.Query().where("groups", ej.FilterOperators.equal, itemsObj.option("value"), false));
function onchange()
{
var griddata=[];
var dataSource=[];
var itemsObj=$("#select").data("ejDropDownList");
var val=(itemsObj.option("value")).split(",");
for (i=0;i<val.length;i++)
{
var values=parseInt(val[i]);
var data=ej.DataManager(window.gridData).executeLocal(ej.Query().where("EmployeeID", ej.FilterOperators.equal, values, true));
data.map(function(x){dataSource.push(x)})
}
$("#Grid").ejGrid({
dataSource: dataSource
});
} |