-
AbhijitJ said 1 year, 1 month ago:
Hi Ashish,
While using wijmo checkbox we are facing below issue.
on a data entry view, we have a checkbox; user is expected to check the checkbox. now after the view is posted to the server for saving to database.
now in the edit mode of the same view, values are to be fetched from the database and shown to the user. In this when we try to set true/1 value to the checkbox , value for wijmo checkbox does not get set.
If we replace wijmo checkbox with simple html checkbox control, it works.can you please check and let me know about this issue?
| # -
Hello Abhijit,
Can you kindly post a small sample replicating the same so that I can check and can assist you accordingly ?
Thanks for your cooperation.
Regards
Ashish| # -
AbhijitJ said 1 year ago:
Hi Ashish,
here is the sample code checkboxthe place where we fail is, we are unable to check-un-check the checkbox control at runtime.
@model CheckBoxIssue.Models.TestModel
@{
ViewBag.Title = "TestController";
}
@using (Html.BeginForm())
{@Html.EditorFor(model => model.IsWijmoCheckBox) Wijmo Checkbox @Html.EditorFor(model => model.IsNormalCheckBox) Normal Checkbox }
| # -
Hello,
You need to call Refresh method of the wijmo checkbox after setting its value and may refer to the following link discussing the same:
http://wijmo.com/topic/setting-selectedchecked-on-wijradiowijcheckboxwijdropdown-doesnt-work/
For more details on client side API, kindly refer to the following link:
http://wijmo.com/wiki/index.php/Checkbox
However, if the issue still persists, then kindly post a small sample reproducing the issue as it seems that I may be missing out something. This would help me in finding the cause and providing an appropriate solution for same at the earliest.
Regards
AshishAnswer| # -
AbhijitJ said 1 year ago:
Hi Ashish,
The checkbox issue has been resolved. thanx.
-Abhijit
| #
You must be logged in to reply to this topic.

