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

Alignment issues

5 Answers 76 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Santosh Bachuwar
Top achievements
Rank 1
Santosh Bachuwar asked on 22 Aug 2008, 03:10 PM
I have added this toolbar to a radgrid where I have all the action with the data below in radgrid at top as toolbar. This toolbar even though I clearly state that

Orientation="Horizontal"

It doesnt show as HOrizontal it is till vertical. And I have tried different skins (vista as mentioned in demos)

Can somebody help here...    Here is the code


<telerik:RadGrid ID="RadGrid1" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True"
                    Skin="Office2007" Width="97%" AllowSorting="True" AllowPaging="True" GridLines="None"
                    runat="server" ShowFooter="True" AllowMultiRowSelection="True" PageSize="7" AllowMultiRowEdit="True">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <MasterTableView Width="100%" GridLines="None" CommandItemDisplay="Top" EditMode="InPlace"
                        HorizontalAlign="NotSet" DataKeyNames="Id">
                        <RowIndicatorColumn Visible="False">
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>
                        <ExpandCollapseColumn Resizable="False" Visible="False">
                            <HeaderStyle Width="20px" />
                        </ExpandCollapseColumn>
                        <EditFormSettings>
                            <PopUpSettings ScrollBars="None" />
                        </EditFormSettings>
                        <CommandItemTemplate>
                            <telerik:RadToolBar ID="RadToolBar1" Orientation="Horizontal" Skin="Vista" runat="server"
                                Width="100%" OnButtonClick="RadToolBar1_ButtonClick">
                                <Items>
                                    <telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" ImageUrl="~/ToolBar/Examples/ApplicationScenarios/GridCommandItem/Images/Update.gif"
                                        Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'>
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Content Verified">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Assign Sales Person">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Send Message">
                                    </telerik:RadToolBarButton>
                                    <telerik:RadToolBarButton Text="Refresh" CommandName="RebindGrid" ImageUrl="~/ToolBar/Examples/ApplicationScenarios/GridCommandItem/Images/Refresh.gif">
                                    </telerik:RadToolBarButton>
                                </Items>
                            </telerik:RadToolBar>
                        </CommandItemTemplate>
                    </MasterTableView>
                    <ClientSettings>
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="True" />
                    </ClientSettings>
                </telerik:RadGrid>

5 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 25 Aug 2008, 01:14 PM
Hello Santosh,

Could you please specify how do you want to change the RadGrid CommandItem online demo. The RadToolBar shown there is in horizontal orientation.

Sincerely yours,
Alex
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Santosh Bachuwar
Top achievements
Rank 1
answered on 25 Aug 2008, 01:45 PM
May be I wasnt clear enough. I have specified the toolbar orientation to Horizontal as stated in the code but still the webpage shows it vertical. So what needs to done to show it to Horizontal. I am also attaching Screenshot for the webpage. ''


Thanks for repsonse


0
Alex Gyoshev
Telerik team
answered on 26 Aug 2008, 12:34 PM
Hi Santosh Bachuwar,

We were not able to reproduce the issue - please find attached the sample project that was used for testing it.

Best wishes,
Alex
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sacha Rice
Top achievements
Rank 1
answered on 01 Sep 2008, 08:59 AM
I was able to reproduce this same bug in VS2008 SP1. In the IDE the orientation of the Toolbar control always remains vertical, however, when the website is built and the project is run the orientation is horizontal. It appears that it is an IDE bug with the Orientation property setting not correctly altering the control to fit the buttons in a horizontal manner.
0
Erjan Gavalji
Telerik team
answered on 01 Sep 2008, 01:31 PM
Hi guys,

We logged the bug in our ToDo list and we will do our best to have it fixed for the next service pack of the suite.

Kind regards,
Erjan Gavalji
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ToolBar
Asked by
Santosh Bachuwar
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Santosh Bachuwar
Top achievements
Rank 1
Sacha Rice
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or