Possible enable spinners but disable input?
Hi,I'm using a currencyTextbox and I would like to ask is it possible to achieve enable the spinners but disable input directly?
Or when the user clean the input then full 1 as default?
Thanks.
SIGN IN To post a reply.
4 Replies
KR
Karthik Ravichandran
Syncfusion Team
August 29, 2016 01:58 PM UTC
Hi Jemmy,
We have analysed your query. We would like to inform you that, we can partially disable the input textbox by adding the readOnly to the element. Please refer the below code snippet.
We have analysed your query. We would like to inform you that, we can partially disable the input textbox by adding the readOnly to the element. Please refer the below code snippet.
|
[Script]
function oncreate(args) {
this.element.prop('readonly', true);
} |
For your convenience we have prepared the sample, please refer the below link
For you another query, To reset the Textbox value to default value please refer the code
|
[script]
function onChange(args) {
if (this.model.value == null)
this.option('value', this.model.minValue);
} |
For your convenience we have prepared the sample, please refer the below link
http://jsplayground.syncfusion.com/s4eirwiv
Please let us know if you have any queries
Karthik R
JL
Jemmy Lu
August 30, 2016 05:20 AM UTC
Hello! Your example works perfect!
Thanks for replying!
JL
Jemmy Lu
August 30, 2016 05:28 AM UTC
By the way I want to ask is also possible two call two functions in one e-change?
like : e-change="onChange;myAnotherFunc"
Thanks!
KR
Karthik Ravichandran
Syncfusion Team
August 31, 2016 01:31 PM UTC
Hi jemmy,
Thank for your update,
we would like to inform you that we cannot provide multiple handlers in change event. Instead you can call multiple function handlers insider the change event. Please refer the below code snippet
we would like to inform you that we cannot provide multiple handlers in change event. Instead you can call multiple function handlers insider the change event. Please refer the below code snippet
|
[script]
$scope.custom = function (e) {
$scope.function1.call(this, e);
$scope.function2.call(this, e);
}
$scope.function1 = function (args) {
alert("function1")
};
$scope.function2 = function (args) {
alert("function2");
} |
For your convenience we have prepared the sample, it can be available in below link
http://jsplayground.syncfusion.com/c4xujrpy
http://jsplayground.syncfusion.com/c4xujrpy
Please let us know if you have any concerns
Regards
Karthik R
SIGN IN To post a reply.
- 4 Replies
- 2 Participants
-
JL Jemmy Lu
- Aug 26, 2016 09:15 AM UTC
- Aug 31, 2016 01:31 PM UTC