I have a rather complex application that has many UI components. I'm attempting to use the radDock and create a ToolWindow that has search capabilities. This ToolWindow has a RadPanel on it with RadTextBoxes for the different fields they can search. It also has a RadButton to perform the search. What I'd like to do is have it so when the user clicks in the panel or clicks in the textbox, that the AcceptButton for the form becomes the search button...
example:
private void customerSearchNumberTextBox_GotFocus(object sender, EventArgs e){ this.AcceptButton = customerSearchButton;}private void customerSearchButton_Click(object sender, EventArgs e){ int i = 1;}However, this isn't working...the GotFocus event fires, and the above code is executed, but when I hit 'enter' nothing happens....the click event doesn't fire...thoughts?

string itemName = rows[0].GetProperty("Name").ToString();
DocumentWindow documentTop = new DocumentWindow();
documentTop.Text = itemName;
documentTop.DocumentButtons = DocumentStripButtons.All;
//dosnt want to add a document because I cannot find the Form that opened this.
if (this.ParentForm is FloatingWindow)
{
//todo: find a way to call the DockManager and add a new document.
}
//this works only when the ToolWindow object is Docked.
if (this.ParentForm is RadRibbonForm1)
{
((RadRibbonForm1)this.ParentForm).radDock1.AddDocument(documentTop);
}


radTreeView1.Nodes.CollectionChanged += new Telerik.WinControls.Data.NotifyCollectionChangedEventHandler(Nodes_CollectionChanged); List<TreeItem> items = new List<TreeItem>(); { TreeItem t1 = new TreeItem(); t1.id = 1; t1.Label = "Home"; t1.ImageKey = "airplane"; items.Add(t1); } { TreeItem t1 = new TreeItem(); t1.id = 2; t1.pid = 1; t1.Label = "Level 2"; t1.ImageKey = "comments"; items.Add(t1); } radTreeView1.ValueMember = "id"; radTreeView1.ParentMember = "pid"; radTreeView1.DisplayMember = "Label"; radTreeView1.Tag = "ImageKey"; radTreeView1.DataSource = items;
void Nodes_CollectionChanged(object sender, Telerik.WinControls.Data.NotifyCollectionChangedEventArgs e) { RadTreeNode n = ((RadTreeNode)e.NewItems[0]); ((RadTreeNode)e.NewItems[0]).ImageKey = n.Tag.ToString(); }public class TreeItem { public int id { get; set; } public int pid { get; set; } public string Label { get; set; } public string ImageKey { get; set; } }
grid.TableElement.ScrollToRow(e.Row);
RadSchedulerLocalizationProvider.CurrentProvider =
New CustomSchedulerLocalizationProvider
Everything appears translated in the local language except the days of the week in RadScheduler's header columns which are still in English:
Monday, Tuesday, Wednesday...
Is it possible to programmatically change the text of these header columns?
Best regards,
Alain