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. Image for the cookie policy date

CurrencyTextBox : how to make the buttons Inc/Dec visible = false;

HI
I need to put (visible = false;) to the buttons (Increment / Decrement) of a CurrencyTextBox.

is there a way ? please ! (may be by JavaScript)

thanks Sync!


1 Reply

YG Yavanaarasi G Syncfusion Team January 29, 2008 01:54 PM UTC

Hi Faleh,

Sorry for the delay in responding.

I need to put (visible = false;) to the buttons (Increment / Decrement) of a CurrencyTextBox.is there a way?

It is not possible to disable the (Increment / Decrement) buttons of a currency textbox. But with the help of the following code snippet you can prevent user from incrementing or decrementing.



[Java script]
function GetDetails( sCapt, oData )

{

var sRes = "" ;

var sText = "";

sRes = sCapt ;

sRes = oData ["ID"];

sRes = sRes.substring(0,(sRes.length-1));

sRes = sRes + ":\t" + sCapt + " Event is fired.";

sRes =sRes+ "ID"+"\t\t"+":" +oData ["ID"]+"";

sRes =sRes+ "Text"+"\t\t"+":" +oData ["Text"]+"";

return sRes;

}


Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Tools.Web/6.1.0.34/71335/main.htm

Please let me if you have any concerns.

Regards,
Yavana.G




Loader.
Live Chat Icon For mobile
Up arrow icon