I have a page with a grid and that grid uses the commanditemtemplate. When the page first loads, it's in a "New" mode that I use in my code to hide the commanditemtemplate. Essentially, the page loads and since the mode is "New," runs this code in the PreRender method of RadGrid1:
That part works fine. However, I have a Save button above the grid (not part of the grid) that, when clicked, sets the mode to "Edit" and causes a page postback. Now that the mode is "Edit," the PreRender method of RadGrid1 runs this code:
This is the part that's not working. After the first page postback, a blue "footer" appears at the bottom of the grid that says "Ready," but I get no commanditemtemplate. My CommandItemTemplate only contains a Button control aligned on the right side of the grid. Interestingly enough, if I click the Save button again to cause a second page postback, I do get my commanditemtemplate along with the blue "footer" that says "Ready."
Any ideas?
Thank you,
Eric Skaggs
RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None; |
That part works fine. However, I have a Save button above the grid (not part of the grid) that, when clicked, sets the mode to "Edit" and causes a page postback. Now that the mode is "Edit," the PreRender method of RadGrid1 runs this code:
RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Bottom; |
This is the part that's not working. After the first page postback, a blue "footer" appears at the bottom of the grid that says "Ready," but I get no commanditemtemplate. My CommandItemTemplate only contains a Button control aligned on the right side of the grid. Interestingly enough, if I click the Save button again to cause a second page postback, I do get my commanditemtemplate along with the blue "footer" that says "Ready."
Any ideas?
Thank you,
Eric Skaggs