Hi gyus
I am using BrowseEditor in my application. There are 3 different scenarios how the user can do the same task of selecting a file for processing:
1) browse to file using dialog that pops up from browse editor
2) enter the path by Ctr+V the path to browse editor
3) drag and drop the file to browse editor
1 and 3 are implemented, no problems with them. But I do have a small problem with 2.
The default behavior I am regular to is that all text is selected when I do Ctrl+A, or if I click the field and it gains focus the whole text is selected. Otherwise I have to manually erase all text by pressing Backspace many times before I can paste new file path.
And I did something wrong, or browseeditor does not implement Ctrl + A behavior.
I succeed to do it by :
Is it a correct approach?
And how can I implement the behavior when gaining a focus leads to selecting all?
Regards,
Artem
I am using BrowseEditor in my application. There are 3 different scenarios how the user can do the same task of selecting a file for processing:
1) browse to file using dialog that pops up from browse editor
2) enter the path by Ctr+V the path to browse editor
3) drag and drop the file to browse editor
1 and 3 are implemented, no problems with them. But I do have a small problem with 2.
The default behavior I am regular to is that all text is selected when I do Ctrl+A, or if I click the field and it gains focus the whole text is selected. Otherwise I have to manually erase all text by pressing Backspace many times before I can paste new file path.
And I did something wrong, or browseeditor does not implement Ctrl + A behavior.
I succeed to do it by :
private void radBrowseEditor1_KeyUp(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyValue.Equals('A'))
if (radBrowseEditor1 != null)
if (radBrowseEditor1.BrowseElement != null)
if (radBrowseEditor1.BrowseElement.TextBoxItem != null)
radBrowseEditor1.BrowseElement.TextBoxItem.SelectAll();
}
Is it a correct approach?
And how can I implement the behavior when gaining a focus leads to selecting all?
Regards,
Artem