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

RadDropDownList in a GridView

4 Answers 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sason
Top achievements
Rank 1
Sason asked on 12 Sep 2011, 10:46 AM

I have a RadDropDownList in a gridview, the Value Changed Event is raised only when I increase/ Decrease the value with the arrows and not when key pressed.

I partially resolved the problem by adding the following code to the Value Changed Event:

     GridSpinEditor gseditor = sender as GridSpinEditor;

                    if (gseditor != null)

                    {

                        this.CurrentCell.Value = gseditor.Value;

                    }

When I press the backspace key the event is raised except if it the last digit.
Any solution?

Thanks,
Dror

4 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 12 Sep 2011, 01:13 PM
Hello Dror,

Do you have a ComboBoxColumn or a DecimalColumn?

Best Regards,
Emanuel Varga
0
Sason
Top achievements
Rank 1
answered on 15 Sep 2011, 08:14 AM

GridViewDecimalColumn.

Thank you,

Dror

0
Emanuel Varga
Top achievements
Rank 1
answered on 15 Sep 2011, 08:19 AM
Hello again,

The GridSpinEditorElement.TextBoxItem.KeyDown event will fire on every keystroke.

If you have any specific requirements either create a small sample on which we can find a solution, or please provide some more details...

Best Regards,
Emanuel Varga
0
Martin Vasilev
Telerik team
answered on 15 Sep 2011, 11:42 AM
Hello Dror,

Are you using the latest version of RadControls for WinForms? I have tested a scenario similar to the described one with Q2 2011 SP1 (2011.2.11.831) and the ValueChanged event was thrown when clicking on up/down arrows and when using the up/down keys in grid's spin editor.

Greetings,
Martin Vasilev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Sason
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Sason
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or