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

Jquery with Edit form

1 Answer 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Oct 2009, 10:18 AM
Hi,

I have been trying to use Jquery to apply some logic to the edit elements on my form.

The grid is auto generated and all the rows are in edit mode I have tried

$("INPUT").Keyup to access the edit items (as this is how the elements appear when i look at the source of the page but the jquery doesnt find it)

I know the jquery is working as I have put an onload alert message.

Is there anything todo with the grid which would prevent it form working?

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 28 Oct 2009, 11:17 AM
Hi Paul,

You need the following script references to include the jQuery library explicitly:

<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
    </Scripts>
</asp:ScriptManager>

as well as the following code for the client pageLoad handler:

function pageLoad()
{
    window.$ = $telerik.$;
}

I hope this helps.

Regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or