Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
I have a telerik:RadDataForm with an EditTemplate.
In that template I have a number of telerik:DataFormDataField's defined.
What I would like is to have the keyboard focus automatically set to one of these fields (not the first), when I do a BeginEdit().
How?
public
MainWindow()
{
InitializeComponent();
this
.DataForm.BeginningEdit += DataForm_BeginningEdit;
}
private
void
DataForm_BeginningEdit(
object
sender, System.ComponentModel.CancelEventArgs e)
var dataForm = sender
as
RadDataForm;
var fields = dataForm.ChildrenOfType<DataFormDataField>();
var field = fields.FirstOrDefault(x => x.Name ==
"Est"
);
var textBox = field.FindChildByType<TextBox>();
textBox.Focus();