Using the HTML5 verison of Kendo UI in a grid. Many grid cells need a DropDownList, which I can populate with data no problem.
I cannot however filter the second DropDownList based off the first one. I have been through all the examples but nothing works.
I need to understand why my second dropdown is not filtering from the first one. What am I doing wrong?
001.function loadNigoIssueGrid(frm) {002. var legendText = "grdNigoIssueDelv";003. grd = plUtil.initGrid(legendText, frm, "3px");004. var modelData = gridData;005. var dataSource = new kendo.data.DataSource({006. transport: {007. read: function (e) {008. 009. var dsData = modelData;010. e.success(dsData);011. },012. destroy: function (e) {013. e.success();014. }015. 016. },017. batch: true,018. schema: {019. data: "nonRiskRequirements",020. model: {021. fields: {022. WorkType: { type: "string" },023. SubType: { type: "string"},024. Name: { },025. Reason: { },026. Notes: { },027. Result: { },028. Critical: { type: "boolean" },029. Applicant: { type: "boolean" },030. Insured: { type: "boolean" },031. Policyowner: { type: "boolean" },032. Payor: { type: "boolean" },033. Producer: { type: "boolean" },034. ProviderName: { }035. }036. }037. }038. });039. grd.kendoGrid({040. columns: [041. { field: "WorkType", title: "Work Type", width: "134px", editor: workTypeDropDown },042. { field: "SubType", title: "Sub Type", width: "134px", editor: issueSubTypeDropdownList },043. { field: "Name", width: "134px" },044. { field: "Reason", width: "136px", editor: bindReasonTypeDropDown, template: "#=Reason#" },045. { field: "Notes", width: "136px" },046. { field: "Result", width: "136px" },047. { field: "CriticalFlag", width: "136px", template: '#if (CriticalFlag) {#<input type="checkbox" #= CriticalFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },048. { field: "RequiredSignatureApplicantFlag", width: "136px", template: '#if (RequiredSignatureApplicantFlag) {#<input type="checkbox" #= RequiredSignatureApplicantFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },049. { field: "RequiredSignatureInsuredFlag", width: "136px", template: '#if (RequiredSignatureInsuredFlag) {#<input type="checkbox" #= RequiredSignatureInsuredFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },050. { field: "RequiredSignaturePolicyOwnerFlag", title: "Policy Owner", width: "136px", template: '#if (RequiredSignaturePolicyOwnerFlag) {#<input type="checkbox" #= RequiredSignaturePolicyOwnerFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },051. { field: "RequiredSignaturePayorFlag", width: "136px", template: '#if (RequiredSignaturePayorFlag) {#<input type="checkbox" #= RequiredSignaturePayorFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },052. { field: "RequiredSignatureProducerFlag", width: "136px", template: '#if (RequiredSignatureProducerFlag) {#<input type="checkbox" #= RequiredSignatureProducerFlag ? "checked=checked" : "" # class="chkbx"></input>#}#' },053. { field: "ProviderName", title: "Provider Name", width: "136px" },054. { command: [{ text: "Delete", className: "pl-grid-delete-command", template: "<a class='k-button k-button-icontext pl-grid-delete-command'><span class='k-icon k-delete'></span>Delete</a>" }], width: "100px" }055. 056. ],057. dataSource: dataSource,058. sortable: { allowUnsort: false },059. filterable: true,060. selectable: "row",061. scrollable: true,062. editable: true,063. toolbar: [064. { name: "Add", className: "k-grid-addWork", id: "k-grid-addWorks" },065. 066. 067. 068. ],069. change: function (e) {070. }071. });072. }073. 074. var workTypeDataSource = [075. { DisplayText: "NIGO", WorkType: 1 },076. { DisplayText: "ISSUE", WorkType: 2 },077. { DisplayText: "DELV", WorkType: 3 }078. ];079. 080. var workSubType = [081. { DisplayText: "BUSJU", WorkType: 1 },082. { DisplayText: "GENERAL", WorkType: 1 },083. { DisplayText: "HIPAA", WorkType: 1 },084. { DisplayText: "ILLUSTRATN", WorkType: 1 },085. { DisplayText: "MEDINFO", WorkType: 1 },086. { DisplayText: "QUOTE", WorkType: 1 },087. { DisplayText: "REG60", WorkType: 1 },088. { DisplayText: "RELEASE", WorkType: 1 },089. { DisplayText: "REPLACEMNT", WorkType: 1 },090. { DisplayText: "TIA", WorkType: 1 },091. { DisplayText: "TICKET", WorkType: 1 },092. { DisplayText: "EFT", WorkType: 3 },093. { DisplayText: "GENERAL", WorkType: 3 },094. { DisplayText: "HIV", WorkType: 3 },095. { DisplayText: "ILLUSTRATN", WorkType: 3 },096. { DisplayText: "MEDICAL", WorkType: 3 },097. { DisplayText: "PREMALLOC", WorkType: 3 },098. { DisplayText: "QUOTE", WorkType: 3 },099. { DisplayText: "SIGNAMEND", WorkType: 3 },100. { DisplayText: "SIGNAPP", WorkType: 3 },101. { DisplayText: "SIGNAPP2", WorkType: 3 },102. { DisplayText: "SIGNAVIATN", WorkType: 3 },103. { DisplayText: "SIGNAVOCTN", WorkType: 3 },104. { DisplayText: "SIGNRECPT", WorkType: 3 },105. { DisplayText: "SIGNTRAVEL", WorkType: 3 },106. { DisplayText: "SOH", WorkType: 3 },107. { DisplayText: "TRUST", WorkType: 3 },108. { DisplayText: "GENERAL", WorkType: 2 },109. { DisplayText: "ILLUSTRATN", WorkType: 2 },110. { DisplayText: "QUOTE", WorkType: 2 },111. { DisplayText: "SOH", WorkType: 2 },112. { DisplayText: "SUITBLTY", WorkType: 2 }113. ];114. 115. function workTypeDropDown(container, options) {116. jq('<input name="WorkType" id="WorkType" data-text-field="DisplayText" data-field-value="DisplayText" data-bind="value:' + options.field + '"/>')117. .appendTo(container)118. .kendoDropDownList({119. dataSource: workTypeDataSource,120. dataTextField: "DisplayText",121. dataValueField: "DisplayText"122. }); 123. }124. 125. function issueSubTypeDropdownList(container, options) {126. jq('<input name="SubType" data-text-field="DisplayText" data-field-value="DisplayText" data-bind="value:' + options.field + '"/>')127. .appendTo(container)128. .kendoDropDownList({129. 130. dataSource: workSubType,131. dataTextField: "DisplayText",132. dataValueField: "DisplayText",133. cascadeFrom: "WorkType"134. });135. }