I am using the Radgrid as part of a form in asp.net web forms.
People click on "add new record" button to add a new record, fill out the entire row and then,
instead of clicking on "insert" they just click on the "submit" button at the bottom of the page.
I would like to detect if this has occured, and if it has, I would like the row to be inserted.
How can I accomplish this?
I have already tried what is below, and it does not work. If an item is currently being inserted, RadGrid1.Items is still 0.
foreach (GridDataItem item in RadGrid1.Items)
{
//Set the Name property for the Detail table
if(item.IsInEditMode)
{
var x = "here";
}
}
People click on "add new record" button to add a new record, fill out the entire row and then,
instead of clicking on "insert" they just click on the "submit" button at the bottom of the page.
I would like to detect if this has occured, and if it has, I would like the row to be inserted.
How can I accomplish this?
I have already tried what is below, and it does not work. If an item is currently being inserted, RadGrid1.Items is still 0.
foreach (GridDataItem item in RadGrid1.Items)
{
//Set the Name property for the Detail table
if(item.IsInEditMode)
{
var x = "here";
}
}