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

Version Upgrade Issues

2 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nate
Top achievements
Rank 1
Nate asked on 12 Sep 2014, 07:05 PM
Hey all,

Short Desc:
I have been given an interesting task of taking an old system (built on .Net 3.5) and upgrading to 4.5. This system uses the RadGrid from version Q3 2011. When I update my framework it looks like the radgrid is not rendering out the correct table tag that it needs to. Is there a rendering mode or a setting I am missing to fix this?

Long Desc:

Before I get to the code, here are my guidelines I have to stick to.
1) I cannot update my telerik license due to budget.
2) I have to run as .Net 4 or up. 

The code for the rad grid is pretty straitforward. (I apologize for the wall of code)

01.<telerik:RadGrid ID="grdCustomers" runat="server" GridLines="None"
02.    AllowSorting="true" OnItemCreated="grdCustomers_ItemCreated" OnSortCommand="grdCustomers_SortCommand"
03.    OnItemCommand="grdCustomers_ItemCommand"
04.    OnNeedDataSource="grdCustomers_NeedDataSource">
05.    <HeaderContextMenu>
06.        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
07.    </HeaderContextMenu>
08.    <ClientSettings>
09.        <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="true" ClipCellContentOnResize="false" />
10.    </ClientSettings>
11.    <MasterTableView AutoGenerateColumns="False" HierarchyLoadMode="ServerOnDemand" DataKeyNames="CustomerID" TableLayout="Auto"
12.        Name="Master">
13.        <RowIndicatorColumn>
14.            <HeaderStyle Width="20px"></HeaderStyle>
15.        </RowIndicatorColumn>
16.        <ExpandCollapseColumn>
17.            <HeaderStyle Width="20px"></HeaderStyle>
18.        </ExpandCollapseColumn>
19.        <AlternatingItemStyle CssClass="config_alternating_item" />
20.        <Columns>
21.            <telerik:GridTemplateColumn UniqueName="IDColumn" HeaderText="ID" SortExpression="CustomerID">
22.                <ItemTemplate>
23.                <asp:LinkButton ID="lbtnID" runat="server"
24.                    CommandName="EditCustomer"
25.                    CommandArgument='<%# ourObject.CustomerID %>' />
26.                <br />
27.                <asp:Literal ID="ltCreatedOn" runat="server" />
28.                </ItemTemplate>
29.            </telerik:GridTemplateColumn>
30.            <telerik:GridTemplateColumn HeaderText="Name" UniqueName="NameColumn" SortExpression="Name">
31.                <ItemTemplate>
32.                    <asp:LinkButton ID="lbtnName" runat="server"
33.                    CommandName="EditCustomer"
34.                    CommandArgument='<%# CustomerID %>'/>
35.                </ItemTemplate>
36.            </telerik:GridTemplateColumn>
37.        </Columns>
38.    </MasterTableView>
39.    <FilterMenu>
40.        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
41.    </FilterMenu>
42.</telerik:RadGrid>


When this gets rendered into html in .net 3.5 it creates the source below
01.<div id="pregenID" class="RadGrid RadGrid_Default" tabindex="0">
02.    <table class="rgMasterTable" border="0" id="pregenID" style="width:100%;table-layout:auto;empty-cells:show;">
03.        <colgroup>
04.            <col>
05.            <col>
06.        </colgroup>
07.        <thead>
08.            <tr>
09.                <th scope="col" class="rgHeader" title="">
10.                    <a title="Click here to sort" href="postback">ID</a>
11.                </th>
12.                <th scope="col" class="rgHeader" title="">
13.                    <a title="Click here to sort" href="postback">Name</a>
14.                </th>
15.            </tr>
16.        </thead>
17.        <tbody>
18.            <tr class="rgRow" id="pregenID">
19.                <td>
20.                    <a id="col1">cust id</a>
21.                    <br>
22.                    9/9/2014
23.                </td>
24.                <td>
25.                    <a id="col2">cust name</a>
26.                </td>
27.            </tr>
28.            <tr class="rgAltRow config_alternating_item" id="pregenID">
29.                <td>
30.                    <a id="col1">cust2 id</a>
31.                    <br>
32.                    9/6/2014
33.                </td>
34.                <td>
35.                    <a id="col2">cust2 name</a>
36.                </td>
37.            </tr>
38.        </tbody>
39.    </table>
40.</div>


Here is the one being generated in 4.5
01.<div id="pregenID" class="RadGrid RadGrid_Default">
02.    <a id="pregenID" href="postback">cust id</a>
03.    <br>
04.    9/9/2014
05.</div>
06.<td>
07.    <a id="pregenID" href="postback">cust name</a>
08.</td>
09.</tr>
10.<tr class="rgAltRow config_alternating_item" id="pregenID">
11.    <td>
12.        <a id="pregenID" href="postback">cust2 id</a>
13.        <br>
14.        9/6/2014
15.    </td>
16.    <td>
17.        <a id="pregenID" href="postback">Admin User</a>
18.    </td>
19.</tr>

2 Answers, 1 is accepted

Sort by
0
Nate
Top achievements
Rank 1
answered on 15 Sep 2014, 11:38 PM
Hey guys,

It is probably looking like this will need a version update, which the team is not willing to sprint for at the moment. If anyone has a different solution please let me know.
0
Maria Ilieva
Telerik team
answered on 17 Sep 2014, 11:44 AM
Hello Nate,

Note that Q3 2011 version of the controls provide a .NET 4.0 distribution of the dll's. therefore in the bin40 folder of your installed controls you should be able to locate it and use it in case .NET 4.0 framework is used.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Grid
Asked by
Nate
Top achievements
Rank 1
Answers by
Nate
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or