|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
Hi,
We have a scenario where we select a date from date picker inside the Grid and hit the save button. The save button is doing some javascript validation like checking if the date column is empty or not. The problem is that if we select the date from date picker and hit save button then the javascript validation does not recognize if something has been selected from the date picker. However, the problem is not there if we click anywhere on the Grid before hitting the save button.
Can you please help us in this?
Thanks,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, This is normal. You will need to submit the date value to the Grid before you call your validation functions. It will be something like this:
Code: JavaScript
//Use this when FullRowMode is set to true
eo_GetObject("Grid1").editItem(-1, true);
- Or -
Code: JavaScript
//Use this when FullRowMode is set to false
eo_GetObject("Grid1").editCell(-1, null, true);
Thanks
|
|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
Thanks for the update.
So, is it means that if the Date Picker is visible on the Grid then Date is still NOT there in the column?
Regards,
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
That is correct. The value is not submitted to the Grid at that point.
|
|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
So, is there any way we can get the value submitted on click of Save button?
|
|
Rank: Member Groups: Member
Joined: 7/14/2009 Posts: 15
|
Sorry, my bad. You have already sent the code.
Thanks,
|
|