Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » OnGridCellInplaceControlDateTimeInputVerify problem. Collapse All
Subject Author Date
Rado Manzela Nov 20, 2008 - 8:46 AM

Is there some problem with downloads? When I log in, I can download prof-uis freeware, but I cannot download full 2.83 (I’m using 2.82) - download does not start, there is timeout.


It seems that CExtGridWnd::OnGridCellInplaceControlDateTimeInputVerify is not called when user changes the date using dropdown button and calendar control. Is this by design or is it bug? How can I validate change in gridWnd in this case? (I don’t want to validate it in the cell, because allowed values depends on other cells in the grid).


Thank you.

Technical Support Nov 20, 2008 - 1:35 PM

Thank you for reporting the run-time issue. We will fix it ASAP. Meanwhile you can download 2.83 from our ftp server (the info was sent to you by email).

The CExtGridCell::OnInplaceControlDateTimeInputVerify() and CExtGridCell::OnInplaceControlDateTimeInputComplete() virtual methods should be used for verifying the date value changing in the in-place editor.

The CExtGridCellDateTime::OnValueChanging() and CExtGridCellDateTime::OnValueChanged() virtual methods should be used for verifying the date picker popup menu item selection.

Rado Manzela Nov 22, 2008 - 6:54 AM

The problem is that CExtGridCellDateTime::OnValueChanging() is called also when I call SetDateTime(). I need only to validate changes made by user in any way (inplace control edit and date picker) and save them into database.


Another problem is that when date cell is initally empty, and user start editing, it shows current date. It is good, but there is bug in CExtGridCell::OnInplaceControlDateTimeInputVerify() - dtInitial is set to current date althought there was no initial date. I’ve tried to initialize status of empty cell to COleDateTime::null, but in this case grid cannot start editing of the date. It seems like bug to me.


I need to implement grid where each row shows data for one day. User can edit existing dates and at end of the grid there is empty row to allow user to add next day. He is not allowed to use day which is already contained in the grid. In this case I need to show him error message about duplicit date and reset date to original (previous date for editing of existing date or empty date when adding new day). How can I do this?


I’ve tried to override OnPopupDatePickerSelChange() but I cannot get pointer to grid window to call duplicity verification function.


Give me some direction, please. Thank you.

Rado Manzela Nov 23, 2008 - 12:16 PM

Nevermind, I’ve found a solution