Radcombo alignment

6 posts, 0 answers
  1. Pan hal
    Pan hal avatar
    61 posts
    Member since:
    Aug 2009

    Posted 21 Aug 2009 Link to this post

    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. 
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 24 Aug 2009 Link to this post

    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.
  3. Pan hal
    Pan hal avatar
    61 posts
    Member since:
    Aug 2009

    Posted 24 Aug 2009 Link to this post

    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.  
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Aug 2009 Link to this post

    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.
  5. Pan hal
    Pan hal avatar
    61 posts
    Member since:
    Aug 2009

    Posted 04 Sep 2009 Link to this post

    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.
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 Sep 2009 Link to this post

    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.
Back to Top