How to use jquery inside GridView inside UpdatePanel
Posted on 2010-09-16
I have a GridView inside an UpdatePanel which is cool and works well.
The GridView provides the option to edit rows.
One of the columns in the GridView is a date column for which I am using the jquery datepicker.
Now when the page initially loads the GridView is in read mode, and therefore doesn't load the datepicker.
But when you click the edit button the UpdatePanel does its thing and reloads what it needs to present a row for editing.
What I can't get my head around is how to:
a) load the jquery library as before the UpdatePanel I was using Page.ClientScript.RegisterClientScriptBlock which means that the script is loaded intelligently rather than statically.
If someone can help me solve this it would be much appreciated.