I have a screen that contains a radgrid on it, when the user clicks to add a new record and they enter the new info I do a check to see if it is a possible duplicate. If it is I want to display a Confirm message box that will inform them that it is a possible dup, but allow them to add the record.
I am currently using a messagebox but would like to use a radwindow, but when I add an even hadler I do not see a way to pass the data to the new method. Or should I try and read the active row of the grid after the confrim?
I am currently using a messagebox but would like to use a radwindow, but when I add an even hadler I do not see a way to pass the data to the new method. Or should I try and read the active row of the grid after the confrim?
public void UpdateTransaction(object sender, Telerik.Windows.Controls.GridViewRowEditEndedEventArgs e)
{
EditData ed = new EditData();
FundTransaction trans = (FundTransaction)e.NewData;
if (trans.FundID != null && trans.TickerID != null)
{
string result = ed.EditFundTransaction(trans.TransactionID, trans.FundID);
if (result != "")
{
if (MessageBox.Show(result, "Confirmation", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
ImportData id = new ImportData();
id.AddTransaction(trans.FundID, trans.TickerID);
}
}
}
}