Hello Telerik,
I'm currently trying to get some columns in a KendoUI Grid to display a value OTHER than the value I want to pass in the "read" function to use in filtering the servery side query. Right now all the other columns are using the actual displayed value to pass back to the filtering query on the backend. So we're frequently using strings like "John Doe, Jane Doe" instead of a lstUserIDs "1,2" because we can't seem to get filtering functions to pass the id values instead of display values. Here's a sample of the actual case in question. I wasn't able to determine from the serverside demo in the docs how this might be accomplished, or even if it could.
With the column configured as below, I end up with an error "VM8499:3 Uncaught ReferenceError: asset_class_nm is not defined". Changing the inner field to "asset_class_nm" works, but then I again have a text list of the names instead of the list of internal bigint IDs that I'd like. Thanks!
,{
field:
"asset_class_nm"
,
title:
"Asset Class"
,
attributes: {
style:
"text-align: left;"
},
filterable: {
dataSource: {
transport: {
read: {
url:
"srv_get_asset_classes.cfm"
,
dataType:
"json"
,
data: {
field:
"asset_class_id"
}
}
}
},
multi:
true
}
}