BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Nurkmez,
Thanks for using Syncfusion products.
We would like to let you know that, we have included the controls which are suitable for Essential studio LightSwitch HTML application. Also we can create CheckBox and RadioButton widgets by adding Custom Control in the LightSwitch application.
Follow the below steps to add the Custom Control in LightSwitch application.
Step 1: Select the CustomControl property in the designer and change its control type as Custom Control as shown below.
Step 2: Then click on the Edit Render Code which is in the properties panel. This will open Browser.js file like the following image.
Step 3: In this file add our widgets as shown in the following code snippet.
[Browse.js] myapp.Browse.ScreenContent_render = function (element, contentItem) { // Write code here. var itemRadio = $("<input type='radio'id='radio' data-role='none'/>"); itemRadio.appendTo($(element)); var item1 = $("<label id='radiolabel' for='radio' data-role='none'> Radiobutton </label>"); item1.appendTo($(element)); var itemTemplate = $("<input type='checkbox'id='check' data-role='none'/>"); itemTemplate.appendTo($(element)); var item = $("<label id='checklabel' for='check' data-role='none'> Checkbox </label>"); item.appendTo($(element)); itemTemplate.ejCheckBox(); itemRadio.ejRadioButton(); }; |
For your convenience we have prepared the sample based on your requirement, and the same can be downloaded from the following location.
Sample Location: Sample
Please let us know if you have further concern.
Regards,
Saranya.S
Hi Nurkmez,
Thanks for using Syncfusion products.
We would like to let you know that, we have included the controls which are suitable for Essential studio LightSwitch HTML application. Also we can create CheckBox and RadioButton widgets by adding Custom Control in the LightSwitch application.
Follow the below steps to add the Custom Control in LightSwitch application.
Step 1: Select the CustomControl property in the designer and change its control type as Custom Control as shown below.
Step 2: Then click on the Edit Render Code which is in the properties panel. This will open Browser.js file like the following image.
Step 3: In this file add our widgets as shown in the following code snippet.
[Browse.js] myapp.Browse.ScreenContent_render = function (element, contentItem) { // Write code here.
var itemRadio = $("<input type='radio'id='radio' data-role='none'/>");
itemRadio.appendTo($(element));
var item1 = $("<label id='radiolabel' for='radio' data-role='none'> Radiobutton </label>");
item1.appendTo($(element)); var itemTemplate = $("<input type='checkbox'id='check' data-role='none'/>");
itemTemplate.appendTo($(element));
var item = $("<label id='checklabel' for='check' data-role='none'> Checkbox </label>");
item.appendTo($(element)); itemTemplate.ejCheckBox(); itemRadio.ejRadioButton(); }; |
For your convenience we have prepared the sample based on your requirement, and the same can be downloaded from the following location.
Sample Location: Sample
Please let us know if you have further concern.
Regards,
Kasithangam
Hi Nurkmez,
Thanks for your update.
Please let us know if you have further queries.
Regards,
Saranya.S
myapp.AddEditpassengerItem.Seniorcitizen_render = function (element, contentItem) { // Write code here. var itemTemplate = $("<input type='checkbox'id='check' data-role='none'/>"); itemTemplate.appendTo($(element)); itemTemplate.ejCheckBox({ enableTriState:true, change: function (args) { contentItem.value = args.isChecked; } }); |
Also, we have logged an issue in change event’s isChecked argument (isChecked return true for intermediate state also instead of returns the null) in our database. A new support incident (142433) to track the status of this issue has been created under your account. Please follow incident for further queries related to this feature.
Please let us know if you have further queries,
Regards,
Sasikala Nagarajan