This question is locked. New answers and comments are not allowed.
I am using the following code block for a window:
My problem is that the close button (or any button I add to the toolbar) will not work. I am getting no javascript error in the page. I can close the window using javascript code:
and it works, but I would like it to work with the toolbar buttons as well.
Thanks in advance,
George
<% Html.Telerik().Window() .Name("createwindow") .Title("Title") .Draggable(true).Scrollable(false) .Buttons(b => b.Close()) .Content(() => {%> Html content here... <%}) .Width(800).Modal(true).Visible(false) .Render(); %>My problem is that the close button (or any button I add to the toolbar) will not work. I am getting no javascript error in the page. I can close the window using javascript code:
function closeCreateWindow() {var window = $('#createwindow').data('tWindow');window.close();}and it works, but I would like it to work with the toolbar buttons as well.
Thanks in advance,
George
6 Answers, 1 is accepted
0
Hello George,
I have tried to reproduce the problem, but to no avail. I am sending my test project for your reference. Could you please examine it and try to reproduce the problem locally?
All the best,
Hristo Germanov
the Telerik team
I have tried to reproduce the problem, but to no avail. I am sending my test project for your reference. Could you please examine it and try to reproduce the problem locally?
All the best,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
George
Top achievements
Rank 1
answered on 08 Sep 2010, 01:34 PM
I found the issue, thank you very much for the quick response. It was an external script loading outside the scriptregistrar, but I couldn't see it because it produced no errors.
0
Bob
Top achievements
Rank 1
answered on 16 Nov 2010, 11:56 PM
Hi Hristo,
I am using the 2010.3.1110.235 release, and the Window.zip solution you provided here won't work on this release. Do you have any ideas why?
Thanks,
Bob
I am using the 2010.3.1110.235 release, and the Window.zip solution you provided here won't work on this release. Do you have any ideas why?
Thanks,
Bob
0
Hi Bob,
Attached is updated project with the 2010.3.1110.235 and I can't find any problems.
Sincerely yours,
Hristo Germanov
the Telerik team
Attached is updated project with the 2010.3.1110.235 and I can't find any problems.
Sincerely yours,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Bob
Top achievements
Rank 1
answered on 17 Nov 2010, 05:12 PM
Hi Hristo,
I downloaded the new zip file, extracted it to my workspace, and opened the solution with Visual Studio 2010. I had to convert the solution from VS2008 to VS2010. I did not upgrade to ASPNET 4.0. I immediately got 9 error messages referring to Window.vsmdi and LocalTestRun.testrunconfig being missing, so I deleted the references. I also deleted the line "debugger;" from the closeCreateWindow function in the Index.aspx view. When I run it in debug mode, I am asked to modify the web.config file to allow debugging, and I do so.
When I click the "Show" button, I get the error "Invalid argument." in jquery-1.4.3.....js[dynamic]. When I click on the "Continue" button, the window shows up as requested, but only the first time. It is broken after that, and nothing happens when I click on the "Show" button.
Do you have any idea why I am having these problems?
Thanks,
Bob
UPDATE:
I have decided that it is VS2010 and the conversion of the solution from 2008 to 2010 that has been causing my problems. If I use VS2008 it works just fine. With VS2010 I seem to end up with Telerik 2010.2.825 instead of Telerik 2010.3.1110, despite the fact that 2010.3.1110 is in the zip file. This seems to be the source of my problems. At any rate, I now have my REAL application working correctly!
Thanks for your help Hristo.
I downloaded the new zip file, extracted it to my workspace, and opened the solution with Visual Studio 2010. I had to convert the solution from VS2008 to VS2010. I did not upgrade to ASPNET 4.0. I immediately got 9 error messages referring to Window.vsmdi and LocalTestRun.testrunconfig being missing, so I deleted the references. I also deleted the line "debugger;" from the closeCreateWindow function in the Index.aspx view. When I run it in debug mode, I am asked to modify the web.config file to allow debugging, and I do so.
When I click the "Show" button, I get the error "Invalid argument." in jquery-1.4.3.....js[dynamic]. When I click on the "Continue" button, the window shows up as requested, but only the first time. It is broken after that, and nothing happens when I click on the "Show" button.
Do you have any idea why I am having these problems?
Thanks,
Bob
UPDATE:
I have decided that it is VS2010 and the conversion of the solution from 2008 to 2010 that has been causing my problems. If I use VS2008 it works just fine. With VS2010 I seem to end up with Telerik 2010.2.825 instead of Telerik 2010.3.1110, despite the fact that 2010.3.1110 is in the zip file. This seems to be the source of my problems. At any rate, I now have my REAL application working correctly!
Thanks for your help Hristo.
0
Hi Bob,
I forgot about the bug in the official release and I apologize for that.
Attached is a modified project with the hotfix version.
All the best,
Hristo Germanov
the Telerik team
I forgot about the bug in the official release and I apologize for that.
Attached is a modified project with the hotfix version.
All the best,
Hristo Germanov
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items