Vertical Splitter RTL Support

2 posts, 0 answers
  1. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 18 Nov 2009 Link to this post

    Dear telerik,

    We're trying to add RTL support to our application that uses the Q3/2009 RadSplitter control, but we're getting an error in the javascript embedded resource file as follows:
    a.RadSplitter._preInitialize=function(b){a.RadSplitterController.getInstance()._addSplitter(b);  
     
    …  
     
    }},_ensureItemsOrder:function(g,t){this._fixItemsIndeces(g);  
    if(t){var o=this._splitters[g];  
    var l=this._panes;  
    var q=o.panes;  
    var e=q?q.length:0;  
    var r=o.splitbars;  
    var p=r?r.length:0;  
    var c=e+p;  
    var f=[];  
    for(var h=e-1;  
    h>=0;  
    h--){var d=q[h];  
    f[f.length]=d;  
    var n=l[d];  
    n.indexInPanes=e-1-n.indexInPanes;  
    n.index=(c-1-n.index);  
    n.isLastPane=false;  
    var j=n.prevSplitBarId;  
    n.prevSplitBarId=n.nextSplitBarId;  
    n.nextSplitBarId=j;  
    }o.panes=f;  
    var m=this._splitBars; //_splitBars is null, but _splitbars in not null  
    var k=[];  
    for(var h=p-1;  
    h>=0;  
    h--){var s=r[h];  
    k[k.length]=s;  
    var b=m[s]; //since m is null, m[s] is a problem  
    …  
     
    I added the above comments for clarity. Note that the error seems to be in the line var b=m[s] but m is null because it was assigned above as m=this._splitBars instead of _splitbars.

    Can you please suggest a solution?

    Salah A. Malaeb
    TeknoBuild
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 18 Nov 2009 Link to this post

    Hello Salah A. Malaeb,
    We are aware of this problem and it is already fixed. The fix is available in the internal build that you can download from your account. In case you prefer not to use an internal build, I can offer you the following workaround:
    <body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
             
            <telerik:RadSplitter ID="RadSplitter1" runat="server">
                <telerik:RadPane ID="RadPane1" runat="server"></telerik:RadPane>
                <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Both" />
                <telerik:RadPane ID="RadPane2" runat="server"></telerik:RadPane>
            </telerik:RadSplitter>
             
            <script type="text/javascript">
            Telerik.Web.UI.RadSplitterController._splitBars = Telerik.Web.UI.RadSplitterController._splitbars;
            </script>
        </form>
    </body>

    All the best,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top