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

RadMultiPage / RadPageView issue

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 15 Aug 2011, 06:34 PM
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)

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?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 18 Aug 2011, 02:24 PM
Hi Samantha,

We cannot be sure exactly what is the cause of the issue from the provided information. Can you also paste your grid and toolbar declaration. Also, which event of the grid is your code from and what exception do you get?

Generally, if the grid is available in the current pageview and the event you use is a command event or ItemDataBound, the data from its controls should be accessible.

Best wishes,
Tsvetina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
Samantha
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or