Unable to deactivate multiple selection for radio button in mvcjqgrid

Posted by Manorama under ASP.NET MVC on 9/4/2013 | Points: 10 | Views : 2769 | Status : [Member] | Replies : 2
hi all

i am using mvcJqgrid.In that grid i used radio buttons to select rows .Like this
function CustomFormatter(cellvalue, options, rowobject) {
return '<input type="radio" value="Edit" onclick="showMenuItems(' + options.rowId + ')">';
}
but when i check radio button for two rows...2 radio buttons are in checked mode.but functionality is at a time i can able to check only one radio button.i am unable to resolve this.Please Guide me

ManoRama


Responses

Posted by: Bandi on: 9/4/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
May be try this
Set multiselect: false in the grid definition

Refer this link
http://mvcjqgrid.skaele.it/Home/Multiselect

References:
http://stackoverflow.com/questions/3657143/jqgrid-onselectrow-events-custom-multiselect?rq=1
http://stackoverflow.com/questions/7401253/radio-button-column-mutually-exclusive-within-all-grid-rows-for-this-radio-colum/7401729#7401729

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Manorama on: 9/6/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for reply ... i got the solution i used name="edit" for radiobtn

ManoRama

Manorama, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response