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

margin doesnt apply

5 Answers 203 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Veteran
Neeraj asked on 05 Oct 2017, 06:10 AM
in my kendo have applied   get effect . if add   attribute, get margin-top applied

<input data-role="numerictextbox"
                   data-format="c"
                   data-min="0"
                   data-max="100"
                   data-bind="visible: isVisible,
                              enabled: isEnabled,
                              value: selectedNumber,
                              events: { change: onChange }"
                   style="width: 180px,margin-top:90px;">

5 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 06 Oct 2017, 12:45 PM
Hi Neeraj,

Generally speaking, the Kendo UI NumericTextBox is a widget created by more than one element. Thus, the margin should be assigned to the wrapper(the parent element). Having said that, this could be achieved with CSS code similar to:

<style>
  .k-widget.k-numerictextbox{
    margin-top: 90px;
  }
</style>

I hope this helps.
  

Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Neeraj
Top achievements
Rank 1
Veteran
answered on 10 Oct 2017, 05:02 AM
and how can disable or make  numeric box in ?
0
Preslav
Telerik team
answered on 10 Oct 2017, 12:26 PM
Hello Neeraj,

Please excuse me but unfortunately, I am not understanding the requirements from your last post.

Having said that, could you please elaborate on them? I look forward to your reply.


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Neeraj
Top achievements
Rank 1
Veteran
answered on 11 Oct 2017, 05:05 AM
Hello, want to make  to be read-only. I  want to edit values in that numeric textBox. How to do in ?
0
Preslav
Telerik team
answered on 12 Oct 2017, 09:05 AM
Hi Neeraj,

Based on your post I assume that your project requires having a readonly Kendo NumericTextBox. Please correct me if I am wrong.

To achieve that use the readonly method:

For example, check this Dojo: https://dojo.telerik.com/AREGIr

If the above is not the case, could you please share more information. For example, send us a screencast that demonstrates the desired functionality.


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
NumericTextBox
Asked by
Neeraj
Top achievements
Rank 1
Veteran
Answers by
Preslav
Telerik team
Neeraj
Top achievements
Rank 1
Veteran
Share this question
or