Hi,
I have a problem in grid editing where when I click on an edit item in a row which is in edit mode (shows editors for the cells) that the value in the edit item gets selected. I have debugged a lot of things and tried different things. it seems that the element.focus() also selects the value (were element is the native html element).
It is probably related to some custom code I have. But, when i try the smartclient demo row editing, then I see somewhat of the same, when I click in a edit item in a row (in edit mode) then I briefly see that the complete value gets selected before the cursor is placed in the correct location in the edit item.
So it seems that Smartclient repairs the select (if selectOnFocus is false), and my code kind of prevents this 'repair'.
Does this make sense somehow? (I hope)
I hope you have any pointers I can check to solve this. Thanks!
gr. Martin
I have a problem in grid editing where when I click on an edit item in a row which is in edit mode (shows editors for the cells) that the value in the edit item gets selected. I have debugged a lot of things and tried different things. it seems that the element.focus() also selects the value (were element is the native html element).
It is probably related to some custom code I have. But, when i try the smartclient demo row editing, then I see somewhat of the same, when I click in a edit item in a row (in edit mode) then I briefly see that the complete value gets selected before the cursor is placed in the correct location in the edit item.
So it seems that Smartclient repairs the select (if selectOnFocus is false), and my code kind of prevents this 'repair'.
Does this make sense somehow? (I hope)
I hope you have any pointers I can check to solve this. Thanks!
gr. Martin
Comment