Kendo Popup网格和搜索框 [英] Kendo Popup grid and a search Box

查看:95
本文介绍了Kendo Popup网格和搜索框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个Kendo Popup它包含一个Kendo Grid和一个Html搜索框



如果我在搜索框中给出文字,特定的细节将会出现并显示在网格中





面临的问题是我正在获取搜索到的详细信息,但它没有绑定在网格中



这里是我的代码



Hi All,

I hav a Kendo Popup it contains a Kendo Grid and a Html Search Box

if i give a text in search box the particular details will come and display in the grid


the problem am facing is that am getting the searched details but it is not binding in the grid

here is my code

<script type="text/javascript">
    

    $("#btnSearch").click(function () {

        var TxtsearchvalULN = $("#txtSearch").val();
        $.ajax({

            cache: false,
            type: "POST",
            url: "@(Url.Action("CreditSystemManageMerchantInfoSearch", "Revenue"))",
            dataType: 'json',
            data: { "TxtsearchvalULN": TxtsearchvalULN },
            success: function (jsonData) {
                var grid = $('#ManageDetails').getKendoGrid(); 
                grid.dataSource.data(jsonData);
            },
            error: function (xhr, ajaxOptions, thrownError) {
            }
        });

    });
 </script>

推荐答案

< span class =code-string>#btnSearch)。click( function (){

var TxtsearchvalULN =
("#btnSearch").click(function () { var TxtsearchvalULN =


#txtSearch)。val();
("#txtSearch").val();


.ajax({

cache: false
类型: POST
url: @(Url.Action( CreditSystemManageMerchantInfoSearch 收入 ))
dataType:' json'
数据:{ TxtsearchvalULN:TxtsearchvalULN},
成功: function (jsonData){
var grid =
.ajax({ cache: false, type: "POST", url: "@(Url.Action("CreditSystemManageMerchantInfoSearch", "Revenue"))", dataType: 'json', data: { "TxtsearchvalULN": TxtsearchvalULN }, success: function (jsonData) { var grid =


这篇关于Kendo Popup网格和搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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