简体   繁体   English

在Kendo Grid中单击编辑时,在Kendo窗口中填充文本框/ DDl

[英]Populating Textboxes/DDls in Kendo Window on Click of Edit Of kendo Grid

Im using Kendo Grid And Kendo Window.. On click of Edit in Kendo Grid, Need to populate a kendo window which consists of Textboxes.. Im not using the editable"popup" because there is a grid in Kendo Window. 我使用Kendo Grid和Kendo Window。点击Kendo Grid中的Edit,需要填充一个由Textboxes组成的kendo窗口。我没有使用可编辑的“弹出窗口”,因为Kendo Window中有一个网格。 Anyways.. Here Is my Window 无论如何..这是我的窗口

                        if (!window.data("kendoWindow")) {
                            window.kendoWindow({
                                visible: true
                                , resizable: false
                              //, content:' /api/Info/'
                                , modal: true
                                , actions: ["Close"],
                                close: function (e) {
                                }
                            });
                        }

                            window.data("kendoWindow").title(header);
                            window.data("kendoWindow").center();
                            window.data("kendoWindow").open();
                    }

Im currently getting Data from the selected Row of Kendo Grid. 我目前从选定的Kendo Grid行获取数据。 What I need to do is just populate the Kendo Window with the data.. I tried using the - content:"api/foo" But its not working.. I think I need to explicitly set the textBox values..How Do I do that?! 我需要做的就是用数据填充Kendo窗口..我尝试使用 - content:“api / foo”但是它无法工作..我想我需要明确设置textBox值..我该怎么做那?! Please Help ! 请帮忙 ! Thanks! 谢谢!

You need to bind selected row item (Observable Object) to Window Form. 您需要将选定的行项(Observable Object)绑定到Window Form。 Here are some links about value binding: 以下是有关值绑定的一些链接:

Value Binding Demo 价值绑定演示

Value binding API 值绑定API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM