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

Rad button

2 Answers 241 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tobin
Top achievements
Rank 1
Tobin asked on 05 Oct 2007, 08:58 AM
Hi Telerik,
I would like to have an explanation. I am creating a number pad that works as the number pad of keyboard. when user press on number pad (touch screen), the value that pressed will be scattered to the textbox

example: number pad '1' is pressed then textbox = 1 and next, number pad '2' is pressed  then textbox = 12

The Problem is when i press '1' twice and it within a second (fast) then in textbox only have one '1'. But if i am using microsoft button then in then textbox i have two '1'.  Wy it is so? Is it because the respond of telerik rad button is slower? because when i pressed slower then in the textbox will have two '1'.

2 Answers, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 08 Oct 2007, 03:15 PM
Hello Tobin,

Indeed, when double click is fired, the consecutive click is not fired. The reason for this is that we support different modes for raising click events (on MouseUp, on MouseDown and on MouseHover). This is not natively supported by the WinForms framework so we have to deal with its logic for click events.

We agree that the current behavior is not balanced very well. Our plans are to clean and fix the event system for the next release, including the Click event.

For now, a solution that will work in your case is to handle both Click and DoubleClick events with one handler - with the property grid in design time, or with code like this:

// In Form.Load event:
this.radButton1.Click += new EventHandler(radButton1_Click);
this.radButton1.DoubleClick += new EventHandler(radButton1_Click);

private void radButton1_Click(object sender, EventArgs e)
{
    this.radTextBox1.Text += "1";
}

Hope this was helpful.

On another note, I would also like to turn your attention to the License Developers functionality that our site offers. Basically, you can add yourself as a license developer to your company's purchase. This will ensure that you will get all benefits that come with the license, i.e. faster responses from our support team, better support resources, and direct access to the licenses from your own account. You can find more information on license developers here: www.telerik.com/faq/.  
 

All the best,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tobin
Top achievements
Rank 1
answered on 09 Oct 2007, 02:05 AM
Thanks Telerik Team..
It works.
Tags
GridView
Asked by
Tobin
Top achievements
Rank 1
Answers by
Angel
Telerik team
Tobin
Top achievements
Rank 1
Share this question
or