Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have explained my property problem in the below.

Database

I have maintained SpInsertUpdateUsers these are the parameters(userID,UserName,..IsEtaTech)


i have maintained that If IsETATech has value Null/False then it will be Updated value as false"

it is working fine.

Now coming to View

In view i have maintained

IsETATech: {
title: 'ETA Tech',
type: 'checkbox',
values: { 'false': 'Inactive', 'true': 'Active' },
defaultValue: 'false',
list: false
}

this property has maintain database value when i tried to fetch the data from db that has display accurate value(ie True or False).

Case 1: I want to disable checkbox for some users for that i have maintained the below function

function GetIsTeamActiveStatus(teamId)
{
var userrole= @HttpContext.Current.Session["RoleId"];

if ((userrole!="1") && (userrole!="3"))
{

$('#Edit-IsETATech').prop('disabled', true);
$('#Edit-IsETATech').siblings()[0].disabled=true;
}

}

This is also working fine but the Main problem is when i want to update the record the "IsETATech" property is passing null value because of that the user flag changed as false.Next time user has lost "True" flag because of null it as changed as false.

So could you please help me for this any other logic is there or give me any suggestion to resolve this.
Posted
Updated 6-Aug-14 10:42am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900