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

[Solved] A Problem and a Question with the inline edit RadGrid Demo

2 Answers 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 10 May 2013, 12:11 PM
I'm working with the demo found here: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx#qsf-demo-source

My question is why is the javascript commented out in the code on the demo page?

My problem is that when I try to implement my own inline edit, I get the following error at runtime:  CS0103: The name 'rGridInductions' does not exist in the current context.  I thought that maybe it had something to do with the fact that i'm using nested grids but i just don't know.  Here is the general layout that I have going for the grids.  I only need inline editing for rGridInductions:
<-- Javascript RadCodeBlock is up at the top -->

<
telerik:RadGrid ID="rGrid_Project" runat="server" ...>
    .
    .
    .
    <telerik:RadMultiPage ID="rMulti_Schedule" Runat="server">
            <telerik:RadPageView ID="rPage_Notes" runat="server" Selected="True">
                    <telerik:RadGrid ID="rGrid_Notes" runat="server" CellSpacing="0" ...>
            .
            .
            .                       
                        </telerik:RadGrid>                   
                </telerik:RadPageView>
                 
        <telerik:RadPageView ID = "rPage_Remarks" runat = "server">                                   
                    <telerik:RadGrid ID="rGrid_Remarks" runat="server" CellSpacing="0" ...>                       
            .
            .
            .  
                    </telerik:RadGrid>               
                </telerik:RadPageView>
 
                <telerik:RadPageView ID = "rPage_Inductions" runat = "server">               
                    <telerik:RadGrid ID="rGrid_Inductions_Detail" runat="server" ...>
            .
            .
            .     
                    </telerik:RadGrid>               
                </telerik:RadPageView>
 
                <telerik:RadPageView ID = "rPage_Completions" runat = "server">               
                    <telerik:RadGrid ID="rGrid_Completion_Details" runat="server" ...>
            .
            .
                    .
                    </telerik:RadGrid>               
                </telerik:RadPageView>                               
    </telerik:RadMultiPage>      
    
        <Columns>
        <asp:Panel ID ="pivotchart" runat ="server">   
                <telerik:RadGrid ID="rGrid_Inductions" runat="server"...>           
            .
            .
            .
                </telerik:RadGrid>  
            </asp:Panel>
 
    </Columns>
</telerik:RadGrid>

  Thanks for the help!

2 Answers, 1 is accepted

Sort by
0
Carlos
Top achievements
Rank 1
answered on 13 May 2013, 11:08 AM
a bit of help, please! :)
0
Eyup
Telerik team
answered on 15 May 2013, 10:16 AM
Hi Carlos,

The comments are a temporary issue and they will be removed in the near future.

The error from the application indicates that it tries to find a grid with ID: rGridInductions, however, the grid in the project is named: rGrid_Inductions. Can you please verify that this is expected?

Furthermore, when the container is placed in some type of NamingContainer, the grid cannot be accessed using this approach:
$find("<%= RadGrid1.ClientID %>").get_masterTableView()
Instead, in this case you can try:
sender.get_masterTableView()
or
args.get_tableView()

Hope this helps.

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