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

Undefined is null : error only on IPAD

2 Answers 32 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
mirang
Top achievements
Rank 1
mirang asked on 02 Jul 2012, 05:30 AM
I am getting a very strange error when i try to run the below code on IPAD. 

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script type="text/javascript">
        window.onerror = WindowError;


        //error handler for showing error on the main page in the bottom of the page
        function WindowError(errorMsg, url, linenumber) {
            alert(errorMsg);
            $("#errorDiv").show("Slow");
            $("#errorMsgDiv").html(errorMsg);
        }
    </script>
</head>
<body>
    <form id="frmSrchClient" runat="server" enableviewstate="false">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">
    </telerik:RadScriptManager>
    <telerik:RadSplitter ID="RadSplitter1" Runat="server" SplitBarsSize="">
        <telerik:RadPane Scrolling="None" ID="treeViewPane" runat="server">
            <telerik:RadSplitter SplitBarsSize="3" ID="ContentSplitter"
                BorderSize="0" PanesBorderSize="0" runat="server" Height="100%" Width="100%">
                <telerik:RadPane Scrolling="Both" ID="NavigationPane" runat="server" Width="200"
                    MinWidth="90" Height="100%">
                        <telerik:RadPanelBar ID="NavigationPanelBar" Width="100%" Height="100%"
                            Style="overflow: hidden" EnableEmbeddedSkins="false" Skin="Metro" runat="server"
                            AccessKey="A" ExpandMode="MultipleExpandedItems">
                            <ExpandAnimation Duration="0" />
                            <CollapseAnimation Duration="0" />
                            <Items>
                                <telerik:RadPanelItem Text="First" Height="21" TabIndex="1" Expanded="true">
                                    <Items>
                                        <telerik:RadPanelItem>
                                            <ItemTemplate>
                                                Text
                                            </ItemTemplate>
                                        </telerik:RadPanelItem>
                                    </Items>
                                </telerik:RadPanelItem>
                                <telerik:RadPanelItem Text="Second" Height="21" TabIndex="2" Expanded="true">
                                    <Items>
                                        <telerik:RadPanelItem>
                                            <ItemTemplate>
                                                    Text1
                                            </ItemTemplate>
                                        </telerik:RadPanelItem>
                                    </Items>
                                </telerik:RadPanelItem>
                            </Items>
                        </telerik:RadPanelBar>
                </telerik:RadPane>
            </telerik:RadSplitter>
        </telerik:RadPane>
    </telerik:RadSplitter>
    </form>
</body>
</html>

In the above code if you click on "Text1" you will see that error. This error comes only when i try to run this on IPAD for all other OS's it is working fine. Can you please let me know where I am going wrong. The error only comes when i include the RadPanelBar within the RadSplitter. If if run it alone this error does not come. Can you please let me know the reason behind this I am unable to debug this issue.

2 Answers, 1 is accepted

Sort by
0
mirang
Top achievements
Rank 1
answered on 03 Jul 2012, 04:04 AM
Any updates on this, Is this a known issue ?
0
Kate
Telerik team
answered on 05 Jul 2012, 12:30 PM
Hi Mirang,

I tested the code that you provided and I  was able to replicate the issue that you describe. After some further investigating the issue it turned out that the exception is related to the TouchScrollExtender that we specially designed to improve the support for mobile browsers. We have already considered future improvements related to the TouchScrollExtender and we will add this one as well. Thank you for the report, I also updated your Telerik points. 

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
PanelBar
Asked by
mirang
Top achievements
Rank 1
Answers by
mirang
Top achievements
Rank 1
Kate
Telerik team
Share this question
or