copy and paste in GridView

5 posts, 0 answers
  1. aleks
    aleks avatar
    4 posts
    Member since:
    Jan 2016

    Posted 15 Nov 2016 Link to this post

    I have a gridview which have as numeric columns, when I select add display the textbox type kendoMaskedtextbox,
    the problem is that you can not copy and paste it, when edit some content if you can, some solution for this?
  2. Stefan
    Admin
    Stefan avatar
    416 posts

    Posted 16 Nov 2016 Link to this post

    Hello Jorge,

    The described behaviour is not a known issue. And it was not reproducible in my testing scenario.

    Could you please clarify if a custom editor is used for some of the columns in the Grid?

    Also, a runnable example reproducing the issue will help us to investigate what may be causing the issue and to provide a suggestion best suited for it.

    Thank you in advance.

    Regards,
    Stefan
    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. aleks
    aleks avatar
    4 posts
    Member since:
    Jan 2016

    Posted 22 Nov 2016 Link to this post

    I' using a kendoMaskedtextbox how custom editor, this is my code:

     

    field: "NumeroTelefonico",
                      title: "No. Télefonico",
                      width: "120px",
                      attributes: { style: "text-align:center;" },
                      editor: function (container, options) {
                          $('<input id="appNoTelefonico" type="tex" value="' + options.model.NumeroTelefonico + '" data-bind="value:NumeroTelefonico" maxlength="10"/>')
                              .appendTo(container)
                              .kendoMaskedTextBox({
                                  mask: "0000000000"
                              });
                      }

     

  4. aleks
    aleks avatar
    4 posts
    Member since:
    Jan 2016

    Posted 22 Nov 2016 in reply to aleks Link to this post

    I'm using a kendoMaskedTextBox how custom editor
  5. Stefan
    Admin
    Stefan avatar
    416 posts

    Posted 24 Nov 2016 Link to this post

    Hello Jorge,

    Thank you for the additional information.

    Please have in mind that it is not recommended to use ID as this can create a scenario where you have multiple DOM elements with the same ID. Also, the value binding is not necessary as the values from the Grid will be bound automatically.

    Please check the Dojo example demonstrating how to add the custom editor and that the copy and paste are working as expected. The example is using JavaScript, but the implementation in JSP is similar:

    http://dojo.telerik.com/EjOVO

    I can assume that there is a custom code which may be interfering with the MaskedTextBox. In order to investigate further, please send a runnable example reproducing the issue.

    Regards,
    Stefan
    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.
Back to Top