5 Answers, 1 is accepted
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.
Can you provide me an example code.
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.
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.
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.