I have a RadGrid within a RadPageView / RadMultiPage - switching pages using the RadTabStrip. My issue is that when my RadGrid is within the RadPageView, parts of my codebehind no longer work.
The RadGrid is fully functional outside the PageView - however inside of it, it cannot access one of my Unique columns.
The code that it cannot find is as follows: (it cannot find the value of "bytes" because it does not see the column)
How can I rectify this situation?
The RadGrid is fully functional outside the PageView - however inside of it, it cannot access one of my Unique columns.
The code that it cannot find is as follows: (it cannot find the value of "bytes" because it does not see the column)
If
TypeOf
e.Item
Is
GridEditableItem
Then
Dim
gridEditedItem1
As
GridEditableItem = TryCast(e.Item, GridEditableItem)
Dim
bytes
As
Byte
() = (
DirectCast
(gridEditedItem1.EditManager.GetColumnEditor(
"ImageFile"
), GridAttachmentColumnEditor)).UploadedFileContent
If
bytes
Is
Nothing
OrElse
bytes.Length = 0
Then
bytes =
New
Byte
() {}
End
If
'Return bytes
End
If
How can I rectify this situation?