This is a migrated thread and some comments may be shown as answers.

[Solved] Modal window loses modal behaviour after ajaxRequest()

8 Answers 216 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Terence
Top achievements
Rank 1
Terence asked on 27 Jan 2011, 09:00 PM
Hi,

I'm creating modal popup window to display selected invoices on my new MVC project. I've got everything working fine until the ajaxRequest() call is made, which somehow disables the 'modal' feature.
Here is my code:

function displayCheckedInvoices() {
var $checkedInvoices = $(':checked');
if ($checkedInvoices.length < 1) { 
    alert(
'You need to select invoice(s) to release'); 
    return;
}
var request = unescape('<%= Url.Action("DisplayCheckedInvoices", "Invoice", new { checkedInvoices = "{0}"}) %>');
//create comma delimiter parameter from int array
for
(var i=0; i<$checkedInvoices.length; i++) {
param = param + $checkedInvoices[i].value.toString();
if (i < $checkedInvoices.length-1) 
    {
        param = param +
","
    }
}
var windowElement = $.telerik.window.create({
title:
"Release Invoice",
height: 400,
width: 800,
modal:
true,
resizable:
false,
draggable:
false
}).data('tWindow').center().ajaxRequest($.telerik.formatString(request, param)); 
}

What should i do?
Thanks. 
 

8 Answers, 1 is accepted

Sort by
0
Djordje
Top achievements
Rank 1
answered on 26 Sep 2011, 08:43 AM
I have same problem with modal window, which didn't get its modal behaviour aftert ajaxRequest().
I am using 2011.2.712 version.
0
Venkatesh
Top achievements
Rank 1
answered on 29 Sep 2011, 09:02 AM
Hi, 
  Am also facing the same issue with this version in same scenario...
Any one get idea ?

Thanks in Advance.

regards,
Venkatesh
0
Djordje
Top achievements
Rank 1
answered on 30 Sep 2011, 08:50 AM
I just tried latest build version 2011.2.914, and now I don't have problem of that kind.
Instead I have another problem.
When child modal window is opened from his parent modal window, child window is below parent and therefor could not be seen.
0
Djordje
Top achievements
Rank 1
answered on 30 Sep 2011, 11:31 AM
And here is the solution which describes what I mention earlier.
I have 3 Modal windows : Parent, Child and ChildChild window.
Link in modal Parent window opens modal Child Window which then appears with z-index less then Parent window, therefor Child window appears bellow Parent.
Same is with Child and ChildChild window.
0
Venkatesh
Top achievements
Rank 1
answered on 04 Oct 2011, 03:25 AM
Hi,

  From where did you downloaded this lated Build 2011.2.914.
Because i am able to find only 2011.2.712 in this site..


regards,
Venkatesh
0
Djordje
Top achievements
Rank 1
answered on 04 Oct 2011, 08:04 AM
0
Venkatesh
Top achievements
Rank 1
answered on 04 Oct 2011, 08:07 AM
Thanks for sharing the link :)

regards,
Venkatesh
0
Igor
Top achievements
Rank 2
answered on 11 Oct 2011, 04:05 PM
Hi, guys!
Any progress to find workaround of this issue?
Tags
Window
Asked by
Terence
Top achievements
Rank 1
Answers by
Djordje
Top achievements
Rank 1
Venkatesh
Top achievements
Rank 1
Igor
Top achievements
Rank 2
Share this question
or