This is a migrated thread and some comments may be shown as answers.

Avoid reformating?

4 Answers 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ManniAT
Top achievements
Rank 2
ManniAT asked on 06 Apr 2009, 11:47 PM
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

4 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 09 Apr 2009, 11:52 AM
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.
0
ManniAT
Top achievements
Rank 2
answered on 09 Apr 2009, 02:03 PM
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
0
ManniAT
Top achievements
Rank 2
answered on 09 Apr 2009, 03:10 PM
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
0
Yavor
Telerik team
answered on 13 Apr 2009, 10:40 AM
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.
Tags
Grid
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Yavor
Telerik team
ManniAT
Top achievements
Rank 2
Share this question
or