void wgFacilityLocationCriteria_InitializePostBack(object sender, ISWG.PostbackEventArgs e) { if (wgFacilityLocationCriteria.ActionName == "AddRow") { _needsRefresh = true; } }
void wgOffering_InitializePostBack(object sender, ISWG.PostbackEventArgs e) { if (wgOffering.ActionName == "AddRow") { _needsRefresh = true; } }
void wgCityStateZip_InitializePostBack(object sender, ISWG.PostbackEventArgs e) { if (wgCityStateZip.ActionName == "AddRow") { _needsRefresh = true; } }
void wgPaymentInfoAudit_InitializePostBack(object sender, ISWG.PostbackEventArgs e) { if (wgPaymentInfoAudit.ActionName == "AddRow") { _needsRefresh = true; } }
/// <summary> /// Builds to the link button to send the OfferingGuid link to the OfferingDetail page in the same folder. /// </summary> /// <param name="sender">Sender, as object.</param> /// <param name="e">Intersoft WebGrid RowEventArgs.</param> protected void wgOffering_InitializeRow(object sender, ISWG.RowEventArgs e) { if (e.Row.Type == ISWG.RowType.Record && e.Row.Table.Name == "OfferingCollection") { string OfferingGuidHyperlink = "OfferingDetail.aspx?OfferingGuid=" + e.Row.Cells.GetNamedItem("OfferingGuid").Value; // configure the column as Hyperlink wgOffering.RootTable.Columns.GetNamedItem("OfferingName").ColumnType = ISWG.ColumnType.HyperLink; // configure the HyperlinkFormatString wgOffering.RootTable.Columns.GetNamedItem("OfferingName").HyperlinkFormatString = OfferingGuidHyperlink; wgOffering.RootTable.Columns.GetNamedItem("OfferingGuid").HyperlinkDisplayText = e.Row.Cells.GetNamedItem("OfferingName").Text; } }
/// <summary> /// Builds to the link button to send the FacilityGuidCityStateZipGuid link to the FacilityLocationCriteriaDetail page in the same folder. /// </summary> /// <param name="sender">Sender, as object.</param> /// <param name="e">Intersoft WebGrid RowEventArgs.</param> protected void wgFacilityLocationCriteria_InitializeRow(object sender, ISWG.RowEventArgs e) { if (e.Row.Type == ISWG.RowType.Record && e.Row.Table.Name == "FacilityLocationCriteriaCollection") { string FacilityGuidCityStateZipGuidHyperlink = "FacilityLocationCriteriaDetail.aspx?FacilityGuidCityStateZipGuid=" + e.Row.Cells.GetNamedItem("FacilityGuidCityStateZipGuid").Value; // configure the column as Hyperlink wgFacilityLocationCriteria.RootTable.Columns.GetNamedItem("FacilityGuid").ColumnType = ISWG.ColumnType.HyperLink; // configure the HyperlinkFormatString wgFacilityLocationCriteria.RootTable.Columns.GetNamedItem("FacilityGuid").HyperlinkFormatString = FacilityGuidCityStateZipGuidHyperlink; wgFacilityLocationCriteria.RootTable.Columns.GetNamedItem("FacilityGuidCityStateZipGuid").HyperlinkDisplayText = e.Row.Cells.GetNamedItem("FacilityGuid").Text; } }
/// <summary> /// Builds to the link button to send the PaymentInfoGuid link to the PaymentInfoDetail page in the same folder. /// </summary> /// <param name="sender">Sender, as object.</param> /// <param name="e">Intersoft WebGrid RowEventArgs.</param> protected void wgPaymentInfo_InitializeRow(object sender, ISWG.RowEventArgs e) { if (e.Row.Type == ISWG.RowType.Record && e.Row.Table.Name == "PaymentInfoCollection") { string PaymentInfoGuidHyperlink = "PaymentInfoDetail.aspx?PaymentInfoGuid=" + e.Row.Cells.GetNamedItem("PaymentInfoGuid").Value; // configure the column as Hyperlink wgPaymentInfo.RootTable.Columns.GetNamedItem("AmazonToken").ColumnType = ISWG.ColumnType.HyperLink; // configure the HyperlinkFormatString wgPaymentInfo.RootTable.Columns.GetNamedItem("AmazonToken").HyperlinkFormatString = PaymentInfoGuidHyperlink; wgPaymentInfo.RootTable.Columns.GetNamedItem("PaymentInfoGuid").HyperlinkDisplayText = e.Row.Cells.GetNamedItem("AmazonToken").Text; } }