on 11-02-2015 7:31 AM
Hi everyone,
I want to uncheck a checkbox which i selected in edit mode.
checkbox values :1 to 4 are coming from the odata and in edit mode i selected checkbox 8.
On clicking cancel button, checkbox 8 should be unchecked and the view get restored to 4 checked boxes.
How do i achieve it?
Please share your ideas.
Thanks,
Saurabh Singh.
Hi,
If you're going with jQuery, then apply this code on press cancel
$('#id of CheckBox').prop('checked', true);
$('#id of CheckBox').prop('checked', false);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Storing each checkboxes value in a variable is a tiring process and is not feasible for large number of checkboxes. So all i had to do was call the url (odata) to display detail page on cancel button click and it worked. This way its efficient, not much of coding is required , just re-using the existing function.
Thanks Pradeep and Indrajith for your efforts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.