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

using the smart tag clutters the markup code

3 Answers 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 09 Dec 2008, 04:13 PM
Hi, I have found a small (but annoying) problem with the latest version of RadGrid (2008/Q3/1125) in VS2008:

I manually added a grid to my page (in the source/markup view):
<telerik:RadGrid ID="grid" runat="server" OnNeedDataSource="grid_NeedDataSource"
    <MasterTableView AutoGenerateColumns="true"
        <ItemStyle CssClass="tr0" /> 
        <AlternatingItemStyle CssClass="tr1" /> 
    </MasterTableView> 
</telerik:RadGrid> 

As soon as I switch to the design view use the smart tag (e.g. to set the AutoGenerateColums option), my markup code is changed and looks totally cluttered:
        <telerik:RadGrid ID="grid" runat="server" OnNeedDataSource="grid_NeedDataSource" AutoGenerateColumns="False"  
                GridLines="None">  
<HeaderContextMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</HeaderContextMenu> 
 
            <MasterTableView AutoGenerateColumns="True" ShowHeader="false"
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
                <ItemStyle CssClass="tr0" /> 
                <AlternatingItemStyle CssClass="tr1" /> 
            </MasterTableView> 
 
<FilterMenu EnableTheming="True"
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
</FilterMenu> 
        </telerik:RadGrid> 
 

Can this be prevented?

Regards,
Martin

3 Answers, 1 is accepted

Sort by
0
Martin
Top achievements
Rank 1
answered on 12 Dec 2008, 01:33 PM
Any news?

Thanks a lot.
0
Georgi Krustev
Telerik team
answered on 12 Dec 2008, 01:46 PM
Hello Martin,

Unfortunately this issue is partially fixed in our latest build. If you are going to configure RadGrid from design time, there still will be HeaderContextMenu and FilterMenu tags added by default, but nothing will be added in MasterTableView tag.

Let me know whether this helps

Best regards,
Georgi Krustev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Martin
Top achievements
Rank 1
answered on 12 Dec 2008, 02:15 PM
Thanks. That's already a big improvement.

Best regards,
Martin
Tags
Grid
Asked by
Martin
Top achievements
Rank 1
Answers by
Martin
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or