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

Compilation error when using onDetailTableBind

2 Answers 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Luke Templin
Top achievements
Rank 1
Luke Templin asked on 17 Jun 2010, 10:30 PM
I receive the following error when I add the ONDetailTableBind to  the attributes for the grid.

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS1061: 'ASP.radgridmasterdetaildisplay_aspx' does not contain a definition for 'GetTrans' and no extension method 'GetTrans' accepting a first argument of type 'ASP.radgridmasterdetaildisplay_aspx' could be found (are you missing a using directive or an assembly reference?)

Source Error:

Line 13:     <asp:ScriptManager ID="sm" runat="server" />
Line 14:     
Line 15: <telerik:RadGrid ID="demoGrid" runat="server" OnNeedDataSource="GetData" Line 16:          AutoGenerateColumns="false" PageSize="20" OnDetailTableDataBind="GetTrans"
Line 17:         AllowPaging="true"   RegisterWithScriptManager="true">

Source File: c:\Documents and Settings\...\TelerikDemo\RadGridMasterDetailDisplay.aspx    Line: 15

Any ideas?

The problem goes away wne the OnDetailTableDataBind attribute is removed.

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 18 Jun 2010, 07:40 AM
Hello Luke,

The error is caused because your page does not have GetTrans handler implemented in radgridmasterdetaildisplay.aspx.

Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Luke Templin
Top achievements
Rank 1
answered on 18 Jun 2010, 01:26 PM
IT turns out it was implemented but inadvertently I had made the GetTrans method private - changing it to protected allowed everything to work

Thanks.
Tags
Grid
Asked by
Luke Templin
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Luke Templin
Top achievements
Rank 1
Share this question
or