来自图像数据类型SQL Server的Kendo自动完成模板

时间:2018-05-29 19:00:06

标签: jquery sql-server kendo-ui kendo-template

我需要从SQL Server中以图像数据类型保存的数据库中显示图像,我该怎么做?

<script>  
$("#txtCodigoInterno").kendoAutoComplete({
                dataTextField: "articulo",
                dataValueField: "cod_articulo",
                minLength: 3,
                clearButton: true,
                template: kendo.template($("#template").html()),
                dataSource: srcArticulos,
    });
</script>

<input type="text" id="txtCodigoInterno" placeholder="Buscar"  style="width: 750px; font-size:8pt;" class="k-textbox" />
<script id="template" type="text/x-kendo-template">
    <span>
        <img src="#:image #" alt="#: articulo #" />
        #: articulo #
    </span>
</script>

0 个答案:

没有答案