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

[Solved] After upgrade cells return   values

1 Answer 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Janez Kalan
Top achievements
Rank 1
Janez Kalan asked on 11 Mar 2013, 02:36 PM
Hi there,

I hope someone can help me. I have a problem with RadGrid after I install latest Telerik ASP.NET AJAX controls Q1 2013. The code now return   values when I select a row. Before the upgrade everything works perfectly.

The code :

ASPX
<telerik:RadGrid ID="ChangeProjectGrid" runat="server" AllowFilteringByColumn="True"
            AllowSorting="True" Font-Bold="False" Font-Italic="False" Font-Overline="False"
            Font-Size="XX-Small" Font-Strikeout="False" Font-Underline="False" GridLines="None"
            EnableLinqExpressions="False" AutoGenerateColumns="False">
            <ClientSettings AllowColumnsReorder="True" EnablePostBackOnRowClick="True" ReorderColumnsOnClient="True"
                EnableRowHoverStyle="True">
                <Scrolling AllowScroll="True" />
            </ClientSettings>
            <MasterTableView AllowMultiColumnSorting="True">
                <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </RowIndicatorColumn>
                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                    <HeaderStyle Width="20px"></HeaderStyle>
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="IDProject" FilterControlAltText="Filter IDProject column"
                        UniqueName="IDProject" Visible="False">
                    </telerik:GridBoundColumn>
                        <telerik:GridCheckBoxColumn UniqueName="Active" AllowFiltering="true" AllowSorting="true"
                        DataField="Active" DataType="System.Boolean" HeaderText="Is Active" HeaderStyle-Wrap="false">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridBoundColumn DataField="ProjectAcronym" FilterControlAltText="Filter ProjectAcronym column"
                        HeaderText="Project Acronym" UniqueName="ProjectAcronym" ReadOnly="True">
                        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" Wrap="False" />
                        <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" Wrap="False" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProjectTitle" FilterControlAltText="Filter ProjectTitle column"
                        HeaderText="Project Title" UniqueName="ProjectTitle" ReadOnly="True">
                        <HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                            Font-Underline="False" Wrap="False" />
                    </telerik:GridBoundColumn>
                           </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>

Code behind

Protected Sub ChangeProjectGrid_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles ChangeProjectGrid.ItemCommand
 
       If TypeOf e.Item Is GridDataItem Then
 
            Try
                Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
                Dim ts As EfamtPlus.TrenutnaSeja
                
                Dim str As String = dataItem("IDProject").Text
               ' code returns empty (& nbsp;) value - on the old telerik controls returns numeric value
            Catch ex As ThreadAbortException
                ' ne naredi nič
 
            Catch ex As Exception
                PublishException(ex)
                Response.Redirect(NapakaUrl, RedirectParameter)
 
            Finally
                ClientScript.RegisterStartupScript(Page.GetType(), "closeWindow", "<script type='text/javascript'>RefreshParentPageAndClose()</script>")
            End Try
 
        End If
    End Sub

I tried to find similar problem on this forum, goole it, but just coudnt find any so if someone could help me i would be very grateful.

Thanks all in the advance.
Janez Kalan

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 14 Mar 2013, 09:34 AM
Hi,

Yes, this is a breaking change introduced in Q1 2013. This modification was done for performance optimization of RadGrid. You could check this sticky thread for more information on the matter and possible work-arounds.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Janez Kalan
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or