Hi There,
I have created the Grid using dropdown list as a filter. I added the dropdown while creating the Columns.
for example:
columns: [
{
title: "Name",
encoded: false,
width: 160,
ui: jQuery.proxy(colFilter, { field: "Name", dataS: dataSource }) // dataSource is having all the values related to Name Column.
},
{
field: "City",
encoded: false,
width: 130,
filterable: {
ui: jQuery.proxy(colFilter, { field: "City", dataS: dataSource }) // dataSource is having all the values related to City Column.
}
}]
function colFilter(element) {
try {
element.kendoDropDownList({
dataSource: this.dataS,
optionLabel: "--Select Value--"
})
} catch (exception) {
alert(exception.Message);
}
}
Suppose that I filter the Name column with any value. I want to show the related entries of the current view in City column filter dropdown. Instead of showing all the values.
How can this will be achieve?
Regards.
I have created the Grid using dropdown list as a filter. I added the dropdown while creating the Columns.
for example:
columns: [
{
title: "Name",
encoded: false,
width: 160,
ui: jQuery.proxy(colFilter, { field: "Name", dataS: dataSource }) // dataSource is having all the values related to Name Column.
},
{
field: "City",
encoded: false,
width: 130,
filterable: {
ui: jQuery.proxy(colFilter, { field: "City", dataS: dataSource }) // dataSource is having all the values related to City Column.
}
}]
function colFilter(element) {
try {
element.kendoDropDownList({
dataSource: this.dataS,
optionLabel: "--Select Value--"
})
} catch (exception) {
alert(exception.Message);
}
}
Suppose that I filter the Name column with any value. I want to show the related entries of the current view in City column filter dropdown. Instead of showing all the values.
How can this will be achieve?
Regards.