jquery通过WCF数据服务自动完成 [英] jquery Autocomplete through WCF data service

查看:112
本文介绍了jquery通过WCF数据服务自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<script type="text/javascript">
    $(document).ready(function () {
        var qry = "Db.svc/CustTypes?select=CustTypeTitle&$format=json";
        $('#Makes').autocomplete({
            source: qry
        });
    });
</script>





1.我无法从odata服务中提取单列。上面的代码仍显示CustType表中的所有列。



2.如何将其绑定到自动完成jquery UI以仅显示相关记录。



1. I'm unable to extract single column from odata service. above code still shows all the columns in CustType table.

2. How to bind it to autocomplete jquery UI to show only related records.

推荐答案

document )。ready( function (){
var qry = Db.svc / CustTypes? select = CustTypeTitle&
(document).ready(function () { var qry = "Db.svc/CustTypes?select=CustTypeTitle&


format = json;
format=json";


' #制作')。自动完成({
source:qry
});
});
< / script>
('#Makes').autocomplete({ source: qry }); }); </script>





1.我无法从odata服务中提取单列。上面的代码仍显示CustType表中的所有列。



2.如何将其绑定到自动完成jquery UI以仅显示相关记录。



1. I'm unable to extract single column from odata service. above code still shows all the columns in CustType table.

2. How to bind it to autocomplete jquery UI to show only related records.


这篇关于jquery通过WCF数据服务自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆