Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
Invalid Date Value in Grid
posted

I am having some problems with a grid I am creating. On this grid, of type UltraGrid, I have several columns, but there are two particular ones that are resulting in problems for me.

  1. Column called EndDate that has a style of Date. 
  2. Column called Delete that has a style of Button

The problem that occurs is when the user enters the EndDate field and specifies an invalid date (such as 2/31/2008). Then after specifing this invalid value they click on Delete column for that row. When I click on the Delete Column is when I get some unusual behaviors that are causing problems start. When I click on the Delete button if fires the OnCellDataError Event, followed by the OnCellClick Event, followed by another calling of the OnCellDataError Event. This results in two error messages coming up before the user is asked to confirm the deletion of the row.

Is there any way to either prevent the user from clicking the delete column if there is an error in the EndDate Column or a way to prevent the error message from coming up when the user deletes the column?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    There's no CellClick event in the grid that I am aware of. Do you mean ClickCellButton?

    I tested this out and I do see a problem here. If the date cell has an error and fires CellDataError, then the button cell should never get focus and should not fire the click event at all. This looks like a bug to me. You should report this to Infragistics Developer Support so they can check it out.  

     Get Help

     

Children