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

[Solved] Window Resize causes JS error

4 Answers 64 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.
Shane
Top achievements
Rank 1
Shane asked on 14 Sep 2011, 03:44 AM
HI
I am using 2011 Q2 release
I have a telerik window containing a grid which is popped up after clicking on a button on a grid in the main page.
Everything is working as expected, except the window resize. Dragging any corner will resize the window correclty, however, when resizing the window by dragging the bottom right corner of the window, although the window is resizing correctly, a javascript error is produced.
In Google Chrome:
Uncaught TypeError: Property ' ' of object #<Object> is not a function  

in IE9:  
Object doesn't support property or method ' '

This error is generated from telerik.window.min.js. 

The Popup window code is as:
@(Html.Telerik().Window()
        .Name("Window")
        .Title("Property Links")
        .Draggable(true)
        .Resizable(resizing => resizing
            .Enabled(true)
            .MinWidth(400)
        )
        .Modal(true)
        .Buttons(b => b.Close())
       .Content(
           @<text>
<h3>
    Active Properties - <span id="popupTitle"></span>
</h3>
@(Html.Telerik().Grid<propertyobject>()
                    .Name("PopupGrid")
                    .ClientEvents(events =>
                        {
                            events.OnRowSelect("codesApi.SelectProperty");
                            events.OnDataBinding("onPopupDataBind");
                        })
                    .DataBinding(dataBinding => dataBinding.Ajax()
                        .Select("SelectPropertyAjax", @ViewBag.RouteValue))
                    .DataKeys(keys => keys.Add(c => c.PropertyId))
                    .Columns(columns =>
                        {
                            columns.Bound(o => o.PropertyId).Width(50);
                            columns.Bound(o => o.PropertyGroupCode).Width(50).Title("Group");
                            columns.Bound(o => o.ProjectShortName).Width(70).Title("Short Name");
                            columns.Bound(o => o.PropertyTypeCode).Width(50).Title("Type");
                            columns.Bound(o => o.ApplicationAgreementDate).Width(50).Title("App. Agreement");
                            columns.Bound(o => o.GrantCommencePurchDate).Width(50).Title("Commenced");
                            columns.Bound(o => o.ExpirySaleDate).Width(50);
                             
                        })
                    .Selectable()
                    .Sortable(sorting => sorting.Enabled(true))
                    .Pageable(paging => paging.PageSize(10, new int[4] { 10, 15, 25, 50 }).Style(GridPagerStyles.PageSizeDropDown | GridPagerStyles.NextPreviousAndNumeric))
                    .Footer(true)
                     
)
</text>)
        .Scrollable(true)
        .Width(800)
        .Height(510)
        .Visible(false)
 
    )

Has anyone encountered this issue? Is there a fix?

Thanks
Shane

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Sep 2011, 09:29 AM
Hello Shane,

Thank you for bringing this problem to our attention - your points have been updated. Please find attached the hotfix.

Regards,
Georgi Tunev
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
Shane
Top achievements
Rank 1
answered on 16 Sep 2011, 03:38 AM
Thanks for the prompt response Georgi , however the issue still exists in Internet Explorer.

Google Chrome is woking correctly.
IE9 working correctly, IE8 is working okay
IE9 in compatibility mode is still getting errors as
is IE7 in ie7 standards  document mode.
Failing in Quirks mode as well for earlier browsers.

The issue is now occurring when dragging any corner of the window to resize.

We have been testing in IE9, and getting the errors when changing the document mode.
Our target audience for this application uses IE7, so this must work in default

Thanks
Shane
0
Accepted
Georgi Tunev
Telerik team
answered on 16 Sep 2011, 02:48 PM
Hello Shane,

Thank you for reporting that - we found the reason for the problem and fixed it in the new build.


Best wishes,
Georgi Tunev
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
Shane
Top achievements
Rank 1
answered on 21 Sep 2011, 01:50 AM
Thanks Georgi

All working correctly now
Tags
Window
Asked by
Shane
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Shane
Top achievements
Rank 1
Share this question
or