# RadzenNumeric: Paste (ctrl+v) a number from memory

**URL:** <https://forum.radzen.com/t/radzennumeric-paste-ctrl-v-a-number-from-memory/5370>\
**Category:** Radzen.Blazor Components\
**Created:** [October 22, 2020, 12:50pm UTC](https://forum.radzen.com/t/radzennumeric-paste-ctrl-v-a-number-from-memory/5370 "2020-10-22T12:50:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctnet](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@ctnet](https://forum.radzen.com/u/ctnet)\
**Post date:** [October 22, 2020, 12:50pm UTC](https://forum.radzen.com/t/radzennumeric-paste-ctrl-v-a-number-from-memory/5370/1 "2020-10-22T12:50:15Z")

</div>

Dear Radzen Team!

In RadzenNumeric nothing happen when try to paste a number from memory (ej. 23,48 : comma is decimal separator for Culture in this case), but it's ok if the number is 23.48 but it's converted in 2348.

I think, Could it be a bug in OnPaste function (any IsNumeric validation without Culture)?

thank you

---

<div class="post-metadata">

**Author:** ![ctnet](https://forum.radzen.com/letter_avatar_proxy/v4/letter/c/dec6dc/32.png) [@ctnet](https://forum.radzen.com/u/ctnet)\
**Post date:** [October 23, 2020, 10:07am UTC](https://forum.radzen.com/t/radzennumeric-paste-ctrl-v-a-number-from-memory/5370/2 "2020-10-23T10:07:58Z")

</div>

Hi again,

IMO, I think problem is in this javascript function

> numericOnPaste: function (e) {  
> if (e.clipboardData) {  
> var value = e.clipboardData.getData('text');
> 
> ```
> if (value && /^-?\d*\.?\d*$/.test(value)) {
> return;
> }
> 
> e.preventDefault();
> }
> 
> ```
> 
> },

inside Radzen.Blazor.js

EDIT:  
Posible solution : change regular expression to

`/^-?\d*[\.\,]?\d*$/`

thank you!

---

<div class="post-metadata">

**Author:** ![Charlie](https://forum.radzen.com/user_avatar/forum.radzen.com/charlie/32/6383_2.png) [@Charlie](https://forum.radzen.com/u/Charlie)\
**Post date:** [June 15, 2021, 3:03pm UTC](https://forum.radzen.com/t/radzennumeric-paste-ctrl-v-a-number-from-memory/5370/3 "2021-06-15T15:03:32Z")

</div>

Hi! I'm experiencing the exact same behaviour with the exception that nothing is pasted if content has a comma separator and my culture is set ut use a comma separator. If content has a period pasting works fine but then it's not valid numeric entry due to culture. I'm using the latest nuget (3.5.2)

@enchev, @korchev could you please advice or suggest a possible workaround?

Thanks in advance 🙂
