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

Vertical Splitter RTL Support

1 Answer 33 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
loowool
Top achievements
Rank 2
loowool asked on 18 Nov 2009, 02:27 PM
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

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 18 Nov 2009, 04:00 PM
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.
Tags
Splitter
Asked by
loowool
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Share this question
or