Jump to content

Recommended Posts

Posted

Thank you!

If I would like to set a unipanel hidden or displayed in clientevent by the value of unidbgrid cell
How to do it?

 

As you said and I think as bellow:

 

for ajax event get clicked cell

if UniDBGrid1.Columns[strToInt(Params.Values['colindex'])-1].Field.AsString>0 then

  UniPanel1.Visibale:=False

else

   UniPanel1.Visibale:=False

 

??


 

Posted

Yes you can like this : 

 

 

if UniDBGrid1.Columns[strToInt(Params.Values['colindex'])-1].Field.Asinteger>0 then

  UniPanel1.Visible:=True

else

   UniPanel1.Visible:=False;

Posted

What I mean is:

1.A unidbgrid and a unipanel in Frame inside.Several buttons the unipanel.
2.According to the value in the unidbgrid set unipanel to be displayed or hidden, and at the same time we need to decide those buttons in the unipanel to be visibled or hidden.

3.Can be used the Extjs ClientEvents achieved then I do not have access to the server.This can improve efficiency

Posted

ok. you do this:

 

in unidbgrid.ajaxevent :

 

 if column is certain (you see column index left side) you write :

 

 

if UniDBGrid1.Columns[(columnindex)].Field.Asinteger>0 then

  UniPanel1.Visible:=True

else

   UniPanel1.Visible:=False;

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...