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

Cannot Get Values From Cells - ItemCommand Event

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 18 Aug 2015, 01:23 PM

I am having a strange problem. First let me start by saying that I am using the Telerik controls supplied by DotNetNuke. So I can not "upgrade" to any other version of the Telerik controls. I am stuck with what I am given.

I wrote a module initially using Telerik v2012.2.724.35 (which was bundled with DNN v6.02.09)and it worked great. I unfortunately am forced to upgrade to a new DNN version because of a bog in Telericks RADSchedule (which effect the month of November only). So...now I am running DNN that comes with Telerik v2013.1.403.40

The problem is that when I click on a button inside the RADGrid and the ItemCommand event fires, previously I was able to obtain the value of each cell in the row that the button was activated in. The *same exact code* running in v2013.1.403.40 of Telerick now returns to me " " for every single cell in the row. It's like the new Telerik version doesn't bind the data to the GridDataItem (e.Item) within the ItemCommand event like it used to.

What am I missing? How do I get the selected row's data like I had before?

1 Answer, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 20 Aug 2015, 12:27 PM

So I guess no one here came across this change. 

Ok, so after scouring the internet and trying everything I could think of to fix this...I stumbled across the following "article"... http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate

You would think they would make this stuff easier to find. Apparently the ".Visible" property's behavior was changed, so that if the column is not visible, it also does not bind data. They created a new property called ".Display" that would hide the column but still bind the data. I had to change my code to use the new property and then the grid's behavior was returned to what it was previously.

Tags
Grid
Asked by
Ben
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Share this question
or