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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...