Resizing clientside a column resize all autogenerated columns

4 posts, 0 answers
  1. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 18 Jun 2009 Link to this post

    Hello,

    How to resize only one column only ?
    When I chenge my first column clientside all the others get changed according some strange proportional rule (not totally respected from what I see).

    Here is my grid:
    <div style="width: 100%;">  
        <Telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
            AllowSorting="True" ShowStatusBar="true" GridLines="None" ShowGroupPanel="True" > 
            <PagerStyle Mode="NextPrevAndNumeric" /> 
            <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True" ReorderColumnsOnClient="True">  
                <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" /> 
                <Scrolling AllowScroll="True" ScrollHeight='400px' UseStaticHeaders="True" SaveScrollPosition="True" /> 
                <Selecting AllowRowSelect="True" /> 
            </ClientSettings> 
            <MasterTableView Width="100%" TableLayout='Fixed' AllowMultiColumnSorting="true">  
                <ItemStyle Wrap='true'  /> 
                <HeaderStyle Width='100px' /> 
                <AlternatingItemStyle Wrap='true' /> 
            </MasterTableView> 
            <SortingSettings SortedBackColor="Azure" /> 
        </Telerik:RadGrid> 
    </div> 
     


    Thanks again for help.

    CS
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 23 Jun 2009 Link to this post

    Hello Christian,

    Thank you for contacting us.

    The described behavior is expected, when the scrolling of the grid is allowed. Please find the attached test project, which uses the posted grid definition. You can compare the behavior of your project and the attached one and describe what the differences are.

    I am looking forward to hearing from you.

    Regards,
    Georgi Krustev
    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. UI for ASP.NET Ajax is Ready for VS 2017
  4. CSurieux
    CSurieux avatar
    465 posts
    Member since:
    Jan 2007

    Posted 24 Jun 2009 Link to this post

    Hello Georgi,

    I have tested your sample, works quite fine.
    Even if I set exactly same parameters as in my sample

    MasterTableView

     

    TableLayout='Fixed' Width="100%"  and autogenerated columns= true

    I just noticed that columns content overflow each other when size is smaller than words....

    I don't understand what is happening on my side.
    Each time I size a column by adding x it seems that all others get a factor 2 or 3 and resize by 2x or 3x ????
    Some column are hidden in codebehind during ColumnCreated event ???? Others get their header changed ???
    All values are set in ItemDatabound.
    Could it be empty values in some columns ?
    Some columns receive &nbsp; in place of string.empty, could this fool resizing ?
    Some less accepted value data type ?

    (sorry my text get red and there is no way to change color in this editor)

    I will have to spend lot of time on this ....

    Best regards

    CS

  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 24 Jun 2009 Link to this post

    Hello Christian,

    Based on this information, it is hard to determine what is causing this behavior. If the issue persists, you can open a formal support ticket, and send us a small working project, demonstrating your logic, and the unwanted behavior. We will review it locally, and advise you further.

    Greetings,
    Georgi Krustev
    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.
Back to Top