This is a migrated thread and some comments may be shown as answers.

Search box in a ribbon bar

3 Answers 156 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
superold
Top achievements
Rank 1
superold asked on 24 Aug 2007, 05:47 PM
Hi,

What I want to accomplish is to add a "quick search" box inside the ribbon, aligned MiddleCenter and anchored to the right, is it possible? have any ideas?

thanks
/ jorge

3 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 27 Aug 2007, 03:59 PM
Hi j0rge,

You can use the following code to add RadTextBox in the RadRibbonBar:
 
protected override void OnLoad(EventArgs e) 
    base.OnLoad(e); 
    RadTextBox rtb = new RadTextBox(); 
 
    Size textBoxSize = new Size(100, 20); 
 
    rtb.Bounds = new Rectangle((this.radRibbonBar1.Width - textBoxSize.Width) / 2, 5, textBoxSize.Width, textBoxSize.Height); 
    rtb.Anchor = AnchorStyles.Left | AnchorStyles.Right; 
 
    this.radRibbonBar1.Controls.Add(rtb); 
 

What else you can do is a little unsupported hack:
  1. Add a RadRibbonBar to the form, it will be automatically named radRibbonBar1;
  2. Add a RadTextBox to the form, it will be named radTextBox1.
  3. Go to Form1.Designer.cs and locate line this.Controls.Add(radTextBox1);
  4. Change the line to this.radRibbonBar1.Controls.Add(radTextBox1);
  5. Find the line radTextBox1.Location = new System.Drawing.Point(...);
  6. Change the point to something like (200, 5) - this way the radTextBox1 will move in the visible area of the RadRibbonBar.
  7. Now see the form in the Designer. You'll be able to see the text box in the ribbon.
Note: You won't be able to move the RadTextBox using the mouse, but can use the keyboard to accomplish this (or set location and size properties from the Property grid).

BTW, how is your evaluation going? What you think about our controls? Are there any controls that you are missing in the suite? Any feedback is welcome. Thanks in advance.


Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
superold
Top achievements
Rank 1
answered on 28 Aug 2007, 03:23 PM
Hi Evtim,

I am still evaluating your product. My main problem is overall performance, not specifically for any component, but for all so it seems.

When is your next release due?

I'll give this hack a try. Thanks
/ jorge
0
Dwight
Telerik team
answered on 28 Aug 2007, 05:35 PM

Hi j0rge,

On the 3rd of September there will be a beta of our Q2 2007 release. We would appreciate your feedback as it will help us build our controls to better serve our clients' needs.

We will also appreciate your feedback on the performance problems you have. We are confident that our controls perform very well in the latest release (Q1 SP2), but we may be missing something. For example, the latest version of RadGridView has been improved with more than 30% over the Q1 2007 version, and it handles large data sources quite well. RadTreeView, on the other hand, is 5 times faster when loading 50,000 nodes than the standard treeview control. Themes are also optimized and now the initial theme loading time is the fastest ever. There are still a couple of small optimizations awaiting in the pipeline, but having the rich functionality of our controls in mind, we are not sure we can do better. 

At any rate, we will appreciate it if you share what type of performance do you expect from our controls. Thanks in advance.
 

Sincerely yours,

Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
RibbonBar
Asked by
superold
Top achievements
Rank 1
Answers by
Dwight
Telerik team
superold
Top achievements
Rank 1
Share this question
or