Hi,
I have an ultrawebgrid and one of the columns is a button type. When the user clicks this button, I need to grab the key field from the grid and display a modalpopup. Can somebody tell me how to do that?
This is the code i have on the page_load
{
// Create the template and add to it.
UWG1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Button;
BindData();
}
Put the following in the Initailizelayout event of the grid:
e.Layout.Bands[0].Columns.FromKey("View").Header.Caption = "View";
e.Layout.Bands[0].Columns.FromKey("View").Width = Unit.Pixel(100);
then on the client side add the following:
<script id="igClientScript" type="text/javascript">
<!--
//Add code to handle your event here.
var keyValue=cell.Row.getCell(1).getValue(); //1 is the index of the key field, replace with your field index of the key
// -->
</script>