Can someone explain how to set a default date for a date field in a RowAdding section.
<ig:RowAddingColumnSetting ColumnKey="LaunchDate" EditorID="dpLaunchDate"
DefaultValueAsString = "3/12/2013"/>
Where I can make the date a Today instead of hard coded?
Hello Al,
Thank you for your feedback! If you need any additional assistance, please feel free to contact me.
Sincerely,
Tsanna
I am glad you have resolved your issue. If you have any additional questions, please feel free to contact me.
Isolved the issue with nulls in the row adding with a change to the Rowediting Template CLientBindings
SetValueJavaScript="$get({ClientID}).value=_checkForNull({value});"
I did a check for null java script and this fixed the issue.
THanks for the help.
Al
I'm just checking if you need more assistance with this issue, please feel free to contact me.
Get_UpdatedCells and set_cancel are client side functions available from the client side RowUpdating event, therefore you're unable to access them through the server-side. The presented of you code snippet seems to work properly. To achieve the same using the server-side event, the RowUpdating event may be handled as such:
protected void WebDataGrid1_RowUpdating(object sender, Infragistics.Web.UI.GridControls.RowUpdatingEventArgs e)
{
var updatedCellsLength = e.Values.ToString().Length;
var updatedCellNewValue = e.Values.ToString();
var updatedCellOldValue = e.OldValues.ToString();
for (int i = 0; i < updatedCellsLength; i++)
if (updatedCellNewValue == updatedCellOldValue)
return;
}
e.Cancel = true;
For any further questions, please feel free to contact me.