wangxuebin Posted September 21, 2013 Share Posted September 21, 2013 for the unidbgrid of v0.93.1000, I encounter two problems: 1.When I set one or more columns of unidbgrid's "locked" to true,then in browser,the unidbgrid disappeared; 2.When I set some two columns to have a identical upper level title(two layers) ,the two always moved to the rightmost position. Anyone have any good ideas about these problems? Thanks in advance! wxb_km 2013.9.21. Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted September 23, 2013 Share Posted September 23, 2013 Hello wxb_km, i don´t know if i understand everything right - but: To set Visible / Unvisible AND for the "Order" of the fields i use: for x:= 0 to uniMainModule.QueryXY.FieldCount-1 do begin uniMainModule.QueryXY.Fields[x].Visible:=false; if uniMainModule.QueryXY.Fields[x].FieldName ='ID_VERTRAG' then begin uniMainModule.QueryXY.Fields[x].Visible:=true; uniMainModule.QueryXY.Fields[x].DisplayWidth:= 4; uniMainModule.QueryXY.Fields[x].Index:=1; // the Problem !!! end; ... in this case i think: delphi starts Index with "1" .. and uniGui with "0" .. or something .. to set the index right , i store the fields in a array and set the "index" after the " for x:= 0 to uniMainModule.QueryXY.FieldCount-1 .." loop - and it works to show "icons" i use: procedure TUniMainModule.QueryXY(Sender: TField; var Text: string; DisplayText: Boolean); begin DisplayText:=true; text:=sender.AsString; text:='<img width=16 height=16 src="'+uniservermodule.FilesFolderURL+'/103-Person.png"/>'; end; to realise a wordwrap in uniGrid i use: procedure TUniMainModule.ZVERTRAGVERTRAGSBEZEICHNUNGGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin DisplayText:=true; text:= '<p class="secwordwrap">' + sender.AsString + '</p>'; in Servermodule / Custom CSS i have: .secwordwrap { word-wrap: break-word; white-space: pre-line; padding: 2 5 2 5;} For the manipulation of the title text i use: Query - FieldEditor - add all fields ... Select field - DisplayLabel i hope this will help a litte bit :-) 1 Quote Link to comment Share on other sites More sharing options...
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.