im wanting to open a radwindow from a hyperlink in a grid. the window provides a way to update the row item, so populates a form within a window with the existing field values.
previously it was being done on rowclick so just worked with loading the fields from the GridDataItem and opening the window via
this now needs to be done via a hyperlink on one of the columns.
the hyperlink column is added in the code behind
could i still call the existing method by getting the GridDataItem when the link is clicked?
previously it was being done on rowclick so just worked with loading the fields from the GridDataItem and opening the window via
Me.pBlocks.VisibleOnPageLoad = True
this now needs to be done via a hyperlink on one of the columns.
the hyperlink column is added in the code behind
hlc =
New GridHyperLinkColumn
Me.uxBlocks.Columns.Add(hlc)
hlc.HeaderText = GetCaption(p.Name)
hlc.UniqueName = p.Name
hlc.DataTextField = p.Name
hlc.DataNavigateUrlFields = {p.Name}
hlc.DataNavigateUrlFormatString =
"linktowindow?q={0}"
hlc.Display = True
hlc.HeaderStyle.Width =
Unit.Pixel(170)
hlc.ItemStyle.Wrap =
True
could i still call the existing method by getting the GridDataItem when the link is clicked?