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

copy and paste in GridView

4 Answers 243 Views
MaskedTextBox
This is a migrated thread and some comments may be shown as answers.
aleks
Top achievements
Rank 2
aleks asked on 15 Nov 2016, 03:51 PM
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?

4 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 16 Nov 2016, 02:58 PM
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 (charts) and form elements.
0
aleks
Top achievements
Rank 2
answered on 22 Nov 2016, 10:24 PM

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"
                          });
                  }

 

0
aleks
Top achievements
Rank 2
answered on 22 Nov 2016, 11:13 PM
I'm using a kendoMaskedTextBox how custom editor
0
Stefan
Telerik team
answered on 24 Nov 2016, 12:39 PM
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.
Tags
MaskedTextBox
Asked by
aleks
Top achievements
Rank 2
Answers by
Stefan
Telerik team
aleks
Top achievements
Rank 2
Share this question
or