Avoid reformating?

5 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 06 Apr 2009 Link to this post

    Hi,

    is there a way to avoid the reformating of the source when changing edit modes?

    Before my Grid (part) looks like this:
    <Columns> 
        <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="32px" HeaderStyle-Width="32px" /> 
        <telerik:GridBoundColumn DataField="LanguageCode" HeaderText="LNG" ReadOnly="True" SortExpression="LanguageCode" UniqueName="LanguageCode" ItemStyle-Width="33px" HeaderStyle-Width="33px" ItemStyle-Font-Bold="true" /> 
        <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title" ItemStyle-Width="150px" HeaderStyle-Width="150px" /> 
        <telerik:GridBoundColumn DataField="TheContent" HeaderText="TheContent" ReadOnly="False" SortExpression="TheContent" UniqueName="TheContent" /> 
        <telerik:GridButtonColumn CommandName="DoActivate" Text="Aktivieren" ButtonType="PushButton" /> 
    </Columns> 
     

    After a switch to design (and back I guess) it looks like this:
    <Columns> 
                            <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="32px" HeaderStyle-Width="32px" > 
    <HeaderStyle Width="32px"></HeaderStyle> 
     
    <ItemStyle Width="32px"></ItemStyle> 
                            </telerik:GridEditCommandColumn> 
                            <telerik:GridBoundColumn DataField="LanguageCode" HeaderText="LNG" ReadOnly="True" SortExpression="LanguageCode" UniqueName="LanguageCode" ItemStyle-Width="33px" HeaderStyle-Width="33px" ItemStyle-Font-Bold="true" > 
    <HeaderStyle Width="33px"></HeaderStyle> 
     
    <ItemStyle Font-Bold="True" Width="33px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title" ItemStyle-Width="150px" HeaderStyle-Width="150px" > 
    <HeaderStyle Width="150px"></HeaderStyle> 
     
    <ItemStyle Width="150px"></ItemStyle> 
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="TheContent" HeaderText="TheContent" ReadOnly="False" SortExpression="TheContent" UniqueName="TheContent" /> 
                            <telerik:GridButtonColumn CommandName="DoActivate" Text="Aktivieren" ButtonType="PushButton" /> 
                        </Columns> 

    This behaviour is extremely frustrateing since pages become very "unreadable" after this.

    Regards

    Manfred
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 09 Apr 2009 Link to this post

    Hello Manfred,

    I tested the columns setup, and the columns remained formatted properly.
    If the issue persists on your end, you can open a formal support ticket, and send us additional information, such as version/visual studio version and code. You can also send the complete problematic code, in the form of a small working project, for additional testing.  

    Sincerely yours,
    Yavor
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 09 Apr 2009 Link to this post

    Hi,

    to reproduce I do the following.
    Place a grid on the page.
    Add some Data Source and assign it to the Grid.
    --this generates <telerik:GridBoundColumns
    Now I add some "ItemStyle-Width" and "HeaderStyle-Width" to some columns (as attributes).
    In the properties Window I change a setting - and the reformating happens!!

    Regards

    Manfred
  5. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 09 Apr 2009 Link to this post

    Hi,

    to keep the things simple (and show an additional issue :)) I made a short video showing this "extra tag".
    By the way - the "additional issue" is that grid sometimes does not show it's properties in the properties pane.
    After switching to Shared / Design and back to source the properties are visible.
    This happens occasionally - sometimes it works for hours - sometimes each "unselect" and select again results in missing properties.

    http://www.pp-p.com/sfiles/bug1.html

    By the way - this was just one property - it becomes (of course) more worse when the are more columns - properties.
    And - just found out today - RadFileExplorer does the same thing.
    Some Attributes get extended to "inline parameters".

    Regards

    Manfred
  6. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 13 Apr 2009 Link to this post

    Hello Manfred,

    Indeed, this behavior is observed. I have passed this issue along to our developers, and they will soon look into it. Thank you for bringing this discrepancy to our attention.

    All the best,
    Yavor
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017