Hi,
I'm creating a RadGrid on the Page_Init phase. It cotains both temlate columns and ordinary ones. I have problems with one of the template columns.
Here is the code that instantiates the templates (creating a button and a placeholder):
This works fine, my button is always visible. The problem is that the StatusHolder_DataBinding is adding some images based on the data. This images are visible the first time, but disappears during postbacks (like clicking the button in the template).
Thanks for any help
I'm creating a RadGrid on the Page_Init phase. It cotains both temlate columns and ordinary ones. I have problems with one of the template columns.
Here is the code that instantiates the templates (creating a button and a placeholder):
public void InstantiateIn(System.Web.UI.Control container) |
{ |
// Info |
ImageButton lbInfo = new ImageButton(); |
lbInfo.ImageUrl = Resources.UrlImages.Table_Info; |
lbInfo.CommandName = COMMAND_INFO; |
lbInfo.AlternateText = Resources.Glossary.Information; |
lbInfo.DataBinding += new EventHandler(this.Info_DataBinding); |
lbInfo.ID = "lbInfo"; |
container.Controls.Add(lbInfo); |
// Status |
PlaceHolder phStatusHolder = new PlaceHolder(); |
phStatusHolder.DataBinding += new EventHandler(this.StatusHolder_DataBinding); |
phStatusHolder.ID = "phHolder"; |
container.Controls.Add(phStatusHolder); |
Literal lit = new Literal(); |
lit.Text = "ONLY TEST, THIS LABEL IS ALWAYS VISIBLE"; |
phStatusHolder.Controls.Add(lit); |
} |
Thanks for any help