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

[Solved] 2013 Q1 Release Bug

3 Answers 80 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 06 Mar 2013, 10:25 PM
Hi,

I upgraded to the 2013 Q1 release today, excited for the new features, but experienced a pretty big bug.  Here is what I'm seeing:

  1. No problems with 2012.2.912 (most recent before 2013 Q1).
  2. Upgrade to 2013 Q1.
  3. On ItemDataBound and on ItemCommands, I'm unable to read "text" problem for grid columns via the following code.  In every case, even when data exists in the column, item("ColumnName").Text returns " ".

Protected Sub TruckersRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
 
    If TypeOf e.Item Is GridDataItem Then
 
        Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
        Dim myFlowStepID As String = item("FlowStepID").Text

Protected Sub TruckersRadGrid_ItemCommand(ByVal sender As Object, ByVal e As GridCommandEventArgs) Handles TruckersRadGrid.ItemCommand
 
    Dim item As GridDataItem = DirectCast(e.Item, GridDataItem)
    Dim myPartyID As String = item("PartyID").Text

When I go back to the previous release, the problem solves itself.   Also, here is the resulting page in an error state:

https://gist.github.com/fastport/5103685

One more note: I believe if I set the visibility of the columns that need the "text" from, the procedures above can see the values.  But I haven't tested this thoroughly.  This is not the case with previous release.  The values are visible server side no problem.

Please let me know if anyone has any ideas what is up, because I am excited to have access to the new features.

Jim

3 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 11 Mar 2013, 01:38 PM
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.

All the best,
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.
0
James
Top achievements
Rank 1
answered on 11 Mar 2013, 01:54 PM
I love performance improvements.  One question.  Can you have multiple DataKeyNames?  If so, can I see a very simple example of how those are declared?

Thanks,

Jim
0
Andrey
Telerik team
answered on 11 Mar 2013, 02:03 PM
Hello,

Yes, you could, here is how to achieve the desired goal:

<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="CustomerID, ProductID, ContactName" AllowMultiColumnSorting="True" CommandItemDisplay="Top"
                   GroupLoadMode="Server">

Note that the presented fields should be existing in the database, otherwise run-time exception will be raised.

Kind regards,
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
James
Top achievements
Rank 1
Answers by
Andrey
Telerik team
James
Top achievements
Rank 1
Share this question
or