R
Ricardo Perdigao
Guest
Martin, This code below was written by Edsel Garcia to do something similar on KUIB 2.0 (coming on July 14Th). It won't work as is because the the way you reference things is a little different, but it should not be hard for you to get the idea or retrofit it for KUIB 1.1: this.$ds.SalesrepDS.read(); var that = this; this.$components.grid0.options.columns[3].template = function(dataItem) { that.$ds.SalesrepDS.filter( {field: "SalesRep", operation: "eq", value: dataItem.SalesRep} ); var view = that.$ds.SalesrepDS.view(); return " " + kendo.htmlEncode(view[0].RepName) + " "; }; this.$components.grid0.options.columns[3].editor = function(container, options) { var input = $(" "); input.attr("name", options.field); // Clear filter to ensure that all values are shown that.$ds.SalesrepDS.filter({}); input.appendTo(container); input.kendoDropDownList({ dataSource: that.$ds.SalesrepDS, dataTextField: "RepName", dataValueField: "SalesRep", }) };
Continue reading...
Continue reading...