Wednesday, July 16, 2014

LightSwitch 2013 HTML5 - settings for (enable/disable controls, datepicker text, allowing space in text box)

Enable / disable controls:
To enable / disable controls from Light Switch HTML5 screens,  set .isEnabled property to true/false in the screen created method.








Edit text in date picker control:
Some time we need text for different language in date picker, I tried changing my computers culture setting to another language still I was not able to achieve the year text from other language.
So I  came up with the solution of editing the text using jquery as follows;












Adding space in text control:
I am not sure what is wrong with adding space while doing any search using text box control in LightSwitch, I found simple solution on the same to overcome the problem we need to set stopPropagation() property  for keydown event of the controls postRender event.



No comments:

Post a Comment