ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Keys and Names function in Checkbox Grid
Title:
B
I
{code}
?
Currently we get keys of checkbox columns. How can we change it keys and Name like “12324,Mango”,”54676,Apple”, Similar to getSelection() function of Multiselect Grid, but I’m looking for this function in Checkbox grid. $('#btnGetAllSelection').click(function () { var checks = $('#JobPosition').data('checks'); var keys = []; for (var k in checks) keys.push(k); $('#log').html(JSON.stringify(keys));
Save Changes
Cancel
Deep
asked at 09 Mar 2016
you could modify the js to add the Name besides the Id, to get the name you need the row as jquery object $row.data('model').Name
at 09 Mar 2016
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK