RadDropDownList in a GridView

5 posts, 0 answers
  1. Sason
    Sason avatar
    32 posts
    Member since:
    Aug 2012

    Posted 12 Sep 2011 Link to this post

    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

  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 12 Sep 2011 Link to this post

    Hello Dror,

    Do you have a ComboBoxColumn or a DecimalColumn?

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sason
    Sason avatar
    32 posts
    Member since:
    Aug 2012

    Posted 15 Sep 2011 Link to this post

    GridViewDecimalColumn.

    Thank you,

    Dror

  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 15 Sep 2011 Link to this post

    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
  6. Martin Vasilev
    Admin
    Martin Vasilev avatar
    1061 posts

    Posted 15 Sep 2011 Link to this post

    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 >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready