select cell contents onEdit

3 posts, 0 answers
  1. Lee
    Lee avatar
    23 posts
    Member since:
    Jun 2014

    Posted 23 May Link to this post

    I have an editable grid using InCell as the Edit Mode.  I have one field that is editable.  When that cell gets focus I want it to select the contents of the cell.  So for instance if the cell contains "100" and it gets focus I want the "100" to be selected so that the user can type over it with out having to backspace.   I have tried putting a this.select();  in the onEdit Code when that column is being edited but it isn't working.

    Thx for help

    Lee

  2. Georgi
    Admin
    Georgi avatar
    148 posts

    Posted 24 May Link to this post

    Hi Lee,

    It is possible to achieve that by calling the select method on the input inside the cell. Have in mind that when editing numeric data the input is replaced with numeric text box dynamically. In the dojo illustrates how to achieve the aforementioned approach.


    Regards,
    Georgi
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Lee
    Lee avatar
    23 posts
    Member since:
    Jun 2014

    Posted 24 May in reply to Georgi Link to this post

    Worked beautifully.  Thanks for reply

    Lee

Back to Top