We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Possible enable spinners but disable input?

Thread ID:

Created:

Updated:

Platform:

Replies:

125589 Aug 26,2016 05:15 AM Aug 31,2016 09:31 AM JavaScript 4
loading
Tags: ejCurrencyTextbox
Jemmy Lu
Asked On August 26, 2016 05:15 AM

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.

Karthik Ravichandran [Syncfusion]
Replied On August 29, 2016 09:58 AM

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.

 
[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

 
Regards
Karthik R


Jemmy Lu
Replied On August 30, 2016 01:20 AM

Hello! Your example works perfect!
Thanks for replying!

Jemmy Lu
Replied On August 30, 2016 01:28 AM

By the way I want to ask is also possible two call two functions in one e-change?
like : e-change="onChange;myAnotherFunc"
Thanks!

Karthik Ravichandran [Syncfusion]
Replied On August 31, 2016 09:31 AM

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

 
[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
 


Please let us know if you have any concerns

Regards
Karthik R



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;