Posted 8 September 2017, 7:59 pm EST
Hi,
We are using farpoint spread version v4.0.3507 in our asp.net application.We have used the AJAX control tool kit's DateCalendarCellType in our application.On double click of the cell, the calendar control appears over the cell and the user can select the date from it,
I have follwoing clarifications needed :
1. In case if the user tried to edit the date value with an invalid dateformat other than "dd/mmm/yyyy" format or with an invalid text, on click of save , the spread would highlight those cells with invalid datetime format specified. Currently, the spread is placed with in the update panel. On click of the save button, We call a java script function to display "Save in Progress" message followed by data saved successfully. Is there any way such that I can validate the spread if all the cell values are in the correct format?
On click of save button:
void btnSave_Click(object sender, ImageClickEventArgs e)
{
FpSpreadTestPlan.SaveChanges();
//// can we validate the spread here??? Is there any way we can validate the datetime cell before the "Save in progress" message is shown?
SaveChanges();// this saved the data into the database
}
2. In case if we use the .htc files for custom datetime cell type, please can you guide me as how to validate the value for dd/mmm/yyyy date format?
Any guidance at the earliest will be of much help.
Thanks.
2010/03/calendarControl.GIF