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

RTL Toolbar with vertical direction

3 Answers 93 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Kamel
Top achievements
Rank 1
Kamel asked on 07 Jul 2009, 07:40 AM
I have the following code in default.aspx
<telerik:RadToolBar ID="RadToolBar1" runat="server" Orientation="Vertical" dir="rtl">
                <Items>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 0">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 1">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                    <telerik:RadToolBarDropDown runat="server" Text="DropDown 2">
                        <Buttons>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 1">
                            </telerik:RadToolBarButton>
                            <telerik:RadToolBarButton runat="server" Text="Child Button 2">
                            </telerik:RadToolBarButton>
                        </Buttons>
                    </telerik:RadToolBarDropDown>
                </Items>
            </telerik:RadToolBar>


when I open the page in browser, and click on "drop down 0" then sub-menu opens, then when i click on it again for 2 times, the sub-menu's width is enlarged and each time I click the "drop down 0", the sub-menu gets wider. Is there a solution to this problem?


3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 07 Jul 2009, 08:44 AM
Hi Kamel,

Thanks for the report.

Actually, you're right and we admit this is a bug. I've forwarded your report to our dev team and the issue will be fixed in the next hotfix.

Please excuse us for the temporary inconvenience.

Kind regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Kamel
Top achievements
Rank 1
answered on 07 Jul 2009, 09:26 AM
Dear,
I could turn around the bug but using the following code:


<script type="text/javascript">  
        function dropDownOpened(sender, args)  
        {  
            var rtbSlide =  args.get_item().get_dropDownElement().parentNode;
            rtbSlide.style.width=100;
        }  
</script>


and putting the OnClientDropDownOpened="dropDownOpened in the RadToolbar declaration.

Hope this helps someone.
0
Paul
Telerik team
answered on 07 Jul 2009, 11:32 AM
Hi Kamel,

That's OK if you want to set fixed width. Anyway, thanks for the feedback.

Regards,
Paul
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ToolBar
Asked by
Kamel
Top achievements
Rank 1
Answers by
Paul
Telerik team
Kamel
Top achievements
Rank 1
Share this question
or