I m working on a website which allows users to subscribe for emails and sms
on page load i bind a grid to page whch has following columns
sms_verified_status|smscheckbox|emailverifiedStatus|emailCheckbox
if
email_verified_status=yes
then only i want to enable the checkbox for email and same for sms
in webservice, this all data is taken in datatable and then row by row data is bound to flexigris
the flexxigrid binding code is
new XElement("cell", row["AC_EMAIL_checkbox"]),
new XElement("cell", row["UD_EMAIL_VERIF_STATUS"]),
depending on email verified status the chechbox should be enabled or disabled
can i do so while binding the row?
how to do so?
In following line i m creating checkbox to be inserted in flexigrid
dr["AC_EMAIL_FLG"] = "<input id='Checkboxemail_"+dr["USR_ID"].ToString()+ "' type='checkbox' checked onclick='checkEmail(this)' >";
i tried adding enabled='true' and enabled='false' but didnt work
dr["AC_EMAIL_FLG"] = "<input id='Checkboxemail_"+dr["USR_ID"].ToString()+ "' type='checkbox' checked onclick='checkEmail(this)' Enabled='false' >";