RadTreeListView Column Width CellEditTemplate

3 posts, 0 answers
  1. Patrice
    Patrice avatar
    2 posts
    Member since:
    Aug 2013

    Posted 04 Jun 2014 Link to this post


    I have a RadTreeListView in my application.
    I have severals columns using CellEditTemplate.

    When the size of the element in the CellEditTemplate gets bigger than the column's, the column is not resized.

    For example : 
    <telerik:GridViewDataColumn Header="{localization:Translate Key=PBODetailGrid_Perte, Default=PBODetailGrid_Perte}"
                                                        DataMemberBinding="{Binding Perte, Mode=TwoWay, Converter={StaticResource FormatAmountConverter},ConverterParameter='Perte'}"
                                                            MinWidth="60" >
                                            <TextBox Text="{Binding Perte, 
                                                                        Converter={StaticResource FormatAmountNullConverter}}" HorizontalAlignment="Center"/>

    When the size of the TextBox is more important than the size of the column, the column is not resized.
    Some columns in my RadTreeListView don't use DataTemplate, and their width resize normally.

    Do you have an idea on how I can manage this issue ?

    Thanks by advance :)
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 05 Jun 2014 Link to this post


    I tested how a column with CellEditTemplate defined is re-sized as the text typed into the editor (TextBox) becomes bigger and it worked fine at my side. 

    You can check the attached demo solution as a reference. Would you please check it and let me know how can I observe the problematic behavior?

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Patrice
    Patrice avatar
    2 posts
    Member since:
    Aug 2013

    Posted 05 Jun 2014 in reply to Dimitrina Link to this post

    Thanks for your answer.

    With your sample, I manage to understand the problem.
    One of the requirement of our project is to save the Settings of the Grid (column order, column visibility...), and this conflicted with the resizing process.

    thanks again :)
Back to Top