ChenHaibin Posted January 25, 2013 Posted January 25, 2013 How to get unidbgrid value of a cell ?do not need to access the dataset...... Quote
Hayri ASLAN Posted January 25, 2013 Posted January 25, 2013 UniDBGrid1.Columns[5].Field.AsString; or for ajax event get clicked cell UniDBGrid1.Columns[strToInt(Params.Values['colindex'])-1].Field.AsString; Quote
ChenHaibin Posted January 25, 2013 Author Posted January 25, 2013 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 ?? Quote
Hayri ASLAN Posted January 25, 2013 Posted January 25, 2013 Yes you can like this : if UniDBGrid1.Columns[strToInt(Params.Values['colindex'])-1].Field.Asinteger>0 then UniPanel1.Visible:=True else UniPanel1.Visible:=False; Quote
ChenHaibin Posted January 26, 2013 Author Posted January 26, 2013 If using the clientEvents do it would be better. How can I do that? Quote
Hayri ASLAN Posted January 27, 2013 Posted January 27, 2013 what is your purpose? if you say that, it would be better for us for help. Quote
ChenHaibin Posted January 27, 2013 Author Posted January 27, 2013 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 Quote
Hayri ASLAN Posted January 27, 2013 Posted January 27, 2013 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; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.