I'm creating a GridHyperLinkColumn programattically.
I'd need to add an attribute of rel="shadowbox" to the <a> tag which is created by this control.
and I added this code:
protected override void RdGridItemCreated(object sender, GridItemEventArgs e)
{
base.RdGridItemCreated(sender, e);
if (e.Item is GridDataItem)
{
// enable shadowbox
var item = (GridDataItem) e.Item;
var link = (HyperLink)item["Code"].Controls[0];
link.Attributes.Add("rel", "shadowbox");
}
}
which adds the shadowbox rel element.
But shadowbox control doesn't work with it.
Is there any known issues between RadGrid and ShadowBox?
Many thanks
I'd need to add an attribute of rel="shadowbox" to the <a> tag which is created by this control.
and I added this code:
protected override void RdGridItemCreated(object sender, GridItemEventArgs e)
{
base.RdGridItemCreated(sender, e);
if (e.Item is GridDataItem)
{
// enable shadowbox
var item = (GridDataItem) e.Item;
var link = (HyperLink)item["Code"].Controls[0];
link.Attributes.Add("rel", "shadowbox");
}
}
which adds the shadowbox rel element.
But shadowbox control doesn't work with it.
Is there any known issues between RadGrid and ShadowBox?
Many thanks