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

RadGrid inside a NestedViewTemplate

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James Hacking
Top achievements
Rank 1
James Hacking asked on 09 Nov 2010, 01:27 PM
Hi,

I have a radgrid inside a nestedviewtemplate of a parent grid. The nested grid has an editformtemplate which is displayed in a popup edit form.

The controls in this editformtemplate have events bound to javascript functions, which is where my problem begins. These functions are never fired.

Is there something i'm missing here?

Many thanks,

JH

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 10 Nov 2010, 11:30 AM
Hello James,

Following is a sample code for similar scenario. Check whether you have attached events like this.

ASPX:
<NestedViewTemplate>
   <telerik:RadGrid ID="RadGrid2" runat="server" DataSourceID="SqlDataSource2" >
        <MasterTableView DataKeyNames="TerritoryID" EditMode="PopUp">
            <EditFormSettings EditFormType="Template">
                <FormTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind( "TerritoryID") %>'
                                 OnBlur="TextBox2onblur();"></
asp:TextBox>
                    <br />
                    <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server">
                       <ClientEvents OnBlur="RadNumericTextBoxOnBlur" />
                    </telerik:RadNumericTextBox>
                     . . . . . . . . . .
                </FormTemplate>
            </EditFormSettings>
         </MasterTableView>
    </telerik:RadGrid>
</NestedViewTemplate>

Note: If you are using Telerik controls (like RadNumericTextBox) , you don't need to use brackets when attaching client events like in asp.net controls.

Java Script:
<script type="text/javascript">
    function RadNumericTextBoxOnBlur() {
       
    }
    function TextBox2onblur() {
        
    }
</script>

Could you please paste your code or elaborate your scenario if it doesn't help.

Thanks,
Princy.
Tags
Grid
Asked by
James Hacking
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or