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

Radcombo alignment

5 Answers 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pan hal
Top achievements
Rank 1
Pan hal asked on 21 Aug 2009, 03:13 PM
In the Radgrid we use a Editable Radcombo, The data is set to right but when the combo is clicked for editing the combo data move to left and after editing again it will move back to right. Is there any way to set even the editing too on the right side. 

5 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 24 Aug 2009, 10:04 AM
Hello,

You need to set HorizontalContentAlignment="Right" on RadComboBox.

Best wishes,
Valeri Hristov
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
Pan hal
Top achievements
Rank 1
answered on 24 Aug 2009, 08:41 PM
Its not working. I have added one GridViewDataColumn(editable) in RadGridview. The GridviewDatacolumn  combo data should align to right while editing.
Can you provide me an example code.  
0
Valeri Hristov
Telerik team
answered on 26 Aug 2009, 10:10 AM
Hi Pan,

I used the following XAML and it works:

<

 

telerikGridView:RadGridView ItemsSource="{Binding}" AutoGenerateColumns="False">
    <telerikGridView:RadGridView.Columns>
        <telerikGridView:GridViewDataColumn DataMemberBinding="{Binding FirstName}"
            
TextAlignment="Right">
            <telerikGridView:GridViewDataColumn.CellEditTemplate>
                <DataTemplate>
                    <telerikInput:RadComboBox HorizontalContentAlignment="Right"
                        
SelectedValue="{Binding FirstName, Mode=TwoWay}
                        
SelectedValuePath="Content">
                        <telerikInput:RadComboBoxItem Content="Joe" />
                        <telerikInput:RadComboBoxItem Content="Jim" />
                        <telerikInput:RadComboBoxItem Content="John" />
                    </telerikInput:RadComboBox>
                </DataTemplate>
            </telerikGridView:GridViewDataColumn.CellEditTemplate>
        </telerikGridView:GridViewDataColumn>
    </telerikGridView:RadGridView.Columns>
</
telerikGridView:RadGridView>

What am I missing?

Sincerely yours,
Valeri Hristov
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
Pan hal
Top achievements
Rank 1
answered on 04 Sep 2009, 02:54 PM
Thanks!!!.
   HorizontalContentAlignment    will only make the combo header content to the right but the requirement is that the combo drop down content(data) should also be in the right . The combo in grid should stay right of the column and also its content in the drop down too. Can you please help here.
0
Valeri Hristov
Telerik team
answered on 10 Sep 2009, 01:05 PM
Hi,

You will need to set HorizontalContentAlignment of each RadComboBoxItem. However, this seems to be broken in the current version of the control, I suggest downloading the internal build from tomorrow, that will fix this issue.

Kind regards,
Valeri Hristov
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
ComboBox
Asked by
Pan hal
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Pan hal
Top achievements
Rank 1
Share this question
or