Prevent focus out of datagrid cell?
hi,
can't figure 1 out. have datagrid itemeditend bound function "erorrcheck" checks correctness of value entered in cell. if value not allowable, need focus prevented leaving cell.
i tried these 2 method solve problem, neither worked:
1) if value entered isn't allowed, @ end of function "errorcheck" datagrid's editeditemposition used.
2) "editerror" flag set in function "errorcheck". function "forcecursor" bound datagrid's item_focus_out event. in "forcecursor" function, "editerror" flag checked error, , if "true", datagrid's edititemposition used.
one problem have found may compounding ability find solution itemeditend triggered twice when user tabs out of 1 cell. what's going on that?
can't figure 1 out. have datagrid itemeditend bound function "erorrcheck" checks correctness of value entered in cell. if value not allowable, need focus prevented leaving cell.
i tried these 2 method solve problem, neither worked:
1) if value entered isn't allowed, @ end of function "errorcheck" datagrid's editeditemposition used.
2) "editerror" flag set in function "errorcheck". function "forcecursor" bound datagrid's item_focus_out event. in "forcecursor" function, "editerror" flag checked error, , if "true", datagrid's edititemposition used.
one problem have found may compounding ability find solution itemeditend triggered twice when user tabs out of 1 cell. what's going on that?
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment