Jump to content

unidbgrid with checkbox state on click


donlego

Recommended Posts

hello

any body know how to know what state on unidbgrid with checkbox column if click on checkbox column,

i want to get the state of checkbox ,

the condition/state of checkbox on click the checkbox box column

unigui ver 1486

 

 

Link to comment
Share on other sites

hello sherzod

i create test case for you

please check then unchek the checkbox column

what i want is if the checkbox is checked=true then uniedit value= uniedit value+unidbgrid row value on valnya value

else

uniedit value= uniedit value-unidbgrid row value on valnya value

 

for now i get always 2 , just check the first row checked column

 

unigui_check_box.rar

Link to comment
Share on other sites

1 hour ago, donlego said:

any solution for this

Hello,

Try this:

UniDBGrid1 -> ClientEvents -> ExtEvents -> function cellclick:

function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts)
{
    if (e==undefined) return false;
}

 

Link to comment
Share on other sites

hello sherzod

on test case app it work , but on my real project your solution is not work, id ont know what missing,

is there any other solution , to know if i click on the checkbox and return the state of checkbox is checked or unchecked ?

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...