剑道窗口弹出窗口

时间:2013-08-06 18:16:54

标签: popup window kendo-ui

问题:当点击从窗口弹出窗口输入密钥时,它将打开另一个窗口弹出窗口。 从我的主页面(1)我有一个按钮,它将打开一个窗口弹出窗口(2),当点击一个图像然后一个新的窗口弹出窗口打开,当它关闭时,它应该回到popuup(2)即。这是父窗口。它关闭它并转到它的父窗口,当点击它再次输入它打开该窗口。确认没有其他调用正在调用此openWindow ...直到它打开它,不知何故看起来该窗口打开一个输入事件。

ListOf Survey第1页 - 创建按钮 - >这将打开另一个kendo窗口弹出窗口,在这个弹出窗口中有一个添加图标,当点击这个图像时它会打开一个新的弹出窗口kendowindow

ListOf Suvery Page : SurveyList.cshtml
<div id="windowSurveyList"></div>
<input type="button" id="idCreate" value="Create" class="ui-submit k-button saveGroup" />         


 $('#idCreate').click(function () {
        openSurveyWindow(-1);   // -1 is for add mode
    });
function openSurveyWindow(idOfSurvey) {

    var window = $("#windowSurveyList").kendoWindow({
        content: {
            url: "/OrderSurvey/Survey",
            data: { surveyId: idOfSurvey }
        },
        width: "900px",
        height: "768px",
        title: "Create Survey",
        modal: true,
        actions: [

        ]
    });


    var kendoWindow = $("#windowSurveyList").data("kendoWindow");
    kendoWindow.open();
    kendoWindow.center();
}

在弹出页面上 - SurveyCreate.cstml(这将通过上面的窗口弹出打开)                                                     签名类型                                                                        

        </tr>
</table>

<input type="image"  id="idAddItem" src="Images/add-icon.png" name="image" width="28" height="28" title="Add an Item"/>

 $('#idAddItem').click(function () {

    openItemSelectWindow(); // Adding Mode

});

function openItemSelectWindow() {


            $("#windowSurveyPopup").html('');
            var window = $("#windowSurveyPopup").kendoWindow({
                content: {
                    url: "/OrderSurvey/Survey/AddItemSelect",
                    data: {}
                },
                width: "300px",
                height: "170px",
                title: "Add Item Select",
                modal: true,
                actions: [

                ],
                close: function () {              




                }
            });

            var kendoWindow = $("#windowSurveyPopup").data("kendoWindow");
            kendoWindow.open();
            kendoWindow.center();

}

在windowSurveyPopup窗口中 - AdItemSelect.cstml

<table>
<tr>
    <td>
         <div id="UPCLabel"><span class="Dierbergs-label">UPC:</span></div>
    </td>
    <td>               
         <input type="text" name="UPCFind" id="UPCFind" class="Dierbergs-label"  size="15" maxlength="15" onclick="clearTextOC(this)" onKeyUp="numericFilter(this);" />

    </td>       
</tr>
</table>

<table style="width:82%"> 
 <tr class="spaceUnder">          
     <td style="width:82%">            
         <input type="button" id="idFind" style="float:right" value="Find" class="ui-submit k-button saveGroup" />     
    </td>       
 </tr>
</table>

因此,如果您关闭AdItemSelect弹出窗口,它将返回到SurveyCreate页面,但是当我在SurveyCreate页面上的任何位置按Enter键时,它会弹出AdItemSelect弹出窗口,我们正在使用放大器进行发布和订阅,以便我们可以传递来自不同的页面..

0 个答案:

没有答案
相关问题