Hi,
Within one of our reports we use MultiColumn Headers. Unfortunately it seems that the headers that we add dynamically in code (not the original headers generated from the data) do not respond to any events even though the ClickAction is set.
{
c.Header.RowLayoutColumnInfo.OriginY = 0;
ColumnHeader ch = new Infragistics.WebUI.UltraWebGrid.ColumnHeader(true);
ch.RowLayoutColumnInfo.OriginY = 1;
ch.RowLayoutColumnInfo.OriginX = c.Header.RowLayoutColumnInfo.OriginX;
e.Layout.Bands[0].HeaderLayout.Add(ch);
}
Is there anyway in which to fire an event either client or server side?
Many thanks
Russ
Just wondering if this was ever answered - I am trying to do a similar thing. I can add a link to a header by doing the following:
UltraWebGrid1.Columns[11].Header.Caption = @"<a target='_blank' href ="" " + link + @" "">Total Cost $</a>";
This worked fine. But when I tried to do something similar with the following:
ch = new ColumnHeader(false);ch.Caption = @"<a target='_blank' href ="" " + link + @" "">Total Cost</a>";ch.RowLayoutColumnInfo.OriginX = 11;ch.RowLayoutColumnInfo.OriginY = 0; ch.RowLayoutColumnInfo.SpanX = 6;ch.ClickAction = Infragistics.WebUI.UltraWebGrid.HeaderClickAction.Select;UltraWebGrid1.Bands[0].HeaderLayout.Add(ch);
It does not work. I see the exact text "<a target='_blank' href ="" " + link + @" "">Total Cost</a>" as the header with no link.
Am I missing something else that I need to do? Or is a multi-column header not capable of having a link as a caption?
Just wondering if anyone has any insight on how to handle the issue mentioned previously?
Thanks!
As I am not that familiar with java script, could you please provide a code sample or point me in the right direction of how to change the caption on the client side.