Hello,
I have a grid inside a user control with ajax. On the command item template, there is a linkbutton which initially has its visible property set to false. After a viewstate property is set, the grid's rebind method is called, which in turn causes the ItemCreated event to fire, at which time I find the linkbutton and set its visible property to true. The problem is, the button disappears again after a postback. I thought the problem was with the viewstate, but I changed the ItemCreated to always set it to visible. I found that when the postback occurs, the ItemCreated event fires but the button still disappears after being set to visible on the server. I also tried calling the rebind() method on every page_load but that causes problems with other postback commands (edit, delete). Is there a way to tell the command item to rebind?
Thank you
(Using Q2 2010 and IE7)
I have a grid inside a user control with ajax. On the command item template, there is a linkbutton which initially has its visible property set to false. After a viewstate property is set, the grid's rebind method is called, which in turn causes the ItemCreated event to fire, at which time I find the linkbutton and set its visible property to true. The problem is, the button disappears again after a postback. I thought the problem was with the viewstate, but I changed the ItemCreated to always set it to visible. I found that when the postback occurs, the ItemCreated event fires but the button still disappears after being set to visible on the server. I also tried calling the rebind() method on every page_load but that causes problems with other postback commands (edit, delete). Is there a way to tell the command item to rebind?
Thank you
(Using Q2 2010 and IE7)