Welcome Guest Search | Active Topics | Sign In | Register

Grid & Date picker problem Options
Nick
Posted: Thursday, October 29, 2009 12:01:29 PM
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,
eo_support
Posted: Thursday, October 29, 2009 12:09:18 PM
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
Nick
Posted: Thursday, October 29, 2009 12:55:16 PM
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,
eo_support
Posted: Thursday, October 29, 2009 12:57:02 PM
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.
Nick
Posted: Thursday, October 29, 2009 1:18:21 PM
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?
Nick
Posted: Thursday, October 29, 2009 1:27:37 PM
Rank: Member
Groups: Member

Joined: 7/14/2009
Posts: 15
Sorry, my bad. You have already sent the code.

Thanks,


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.