问题描述
$("#floor").kendoDropDownList({dataSource:{transport:{read:function(option){varurl=roomWebService+"GetLousByJiDiId";vardata={};ajaxWebService(url,data,null,option.success,null);}},schema:{data:function(response){varresult=$.parseJSON(response.d);returnresult;}}},dataTextField:"MingCheng",dataValueField:"Id",index:0,change:onChange});functiononChange(){varLouId=$("#floor").val();grid=$("#grid").kendoGrid({dataSource:{transport:{read:function(option){varurl="../WebServices/FangJianShenQing_WebService.asmx/GetFangJianByLouId";vardata={"LouId":LouId};ajaxWebService(url,data,null,option.success,null);}},schema:{data:function(response){varresult=$.parseJSON(response.d);returnresult;}},pageable:false,serverPaging:false,serverFiltering:true,serverSorting:true},filterable:false,sortable:false,scrollable:false,selectable:false,pageable:false,columns:[{field:"Key",title:"楼层"}],detailInit:InitLouCengRooms});}detailInit:InitLouCengRooms这个方法是个自定义的属性,我写kendolistview用的,就是从这里开始传过来的值就变了,始终是点第一次下传过来的值