We're adding our new rows from our datamodel using a shortcut keyboard command. Now I want the newly added row to be in editmode and selected with keyboard focus so I can just start typing.
I've gotten things to work the first time a row is added, however when I add any row after that using just the keyboard. The editmode wont release from the first row. The CurrentItem property wont update. I've tried doing canceleditmode commitedit setting current item etc. before selecting the new row and doing "beginEdit" however the edit will still be stuck at the first row.
Here is an example of what I've done in my event that is fired when I add a new row:
I'm doing more here than I need I know this, but I cannot get it to update the CurrentItem before I do BeginEdit.
I tried the beta version of the Q3 release and it is working there, but I'm wondering if I can get this to work with the released Q2 release.
I can force the behviour to work be using the Rebind method before I set focus and current item. However this comes with a severe performance hit.
I've gotten things to work the first time a row is added, however when I add any row after that using just the keyboard. The editmode wont release from the first row. The CurrentItem property wont update. I've tried doing canceleditmode commitedit setting current item etc. before selecting the new row and doing "beginEdit" however the edit will still be stuck at the first row.
Here is an example of what I've done in my event that is fired when I add a new row:
datamodel.AddedRow += delegate
{
Grid.CommitEdit();
Grid.CancelEdit();
Grid.UnselectAll();
if(!Grid.IsKeyboardFocused)
Grid.Focus();
Grid.CurrentItem = datamodel.Selected[0];
Grid.SetIsCurrent( datamodel.Selected[0], true );
Grid.BeginEdit();
};
I'm doing more here than I need I know this, but I cannot get it to update the CurrentItem before I do BeginEdit.
I tried the beta version of the Q3 release and it is working there, but I'm wondering if I can get this to work with the released Q2 release.
I can force the behviour to work be using the Rebind method before I set focus and current item. However this comes with a severe performance hit.