I have a Jquery Accordion and I have a asp.net GridView below that. When I click on the edit button in a gridview row, it goes and grabs some data. Depending on which row is clicked, I want to show/hide an accordion panel. Can I accomplish this in the GridView_RowEditing event, if so, how?
views:
1052answers:
1
+1
A:
ClientScript.RegisterStartupScript
(Me.GetType(), "ClientScript", "$(document).ready(function(){$('#accordion').accordion('activate', parseInt(theIndex));}", True)
So, I haven't tried this, but it seems like it should work. But you might have to play with it a little, theIndex will need to variable passed in from the grid row.
Dan Williams
2009-05-21 13:02:36
When i get a chance, I will give it a shot. Thanks!
Xaisoft
2009-05-22 15:28:25
if it works, then throw the man an upvote
nialljsmith
2009-07-23 10:56:53