rgreat Posted July 9, 2019 Share Posted July 9, 2019 Like this: Link to comment Share on other sites More sharing options...
rgreat Posted July 9, 2019 Author Share Posted July 9, 2019 Tried to do this with caption stored in Column.GroupHeader while column number in Column.Caption, but this way number field column is inconsistent in it's height. Link to comment Share on other sites More sharing options...
rgreat Posted July 11, 2019 Author Share Posted July 11, 2019 Anyone? Link to comment Share on other sites More sharing options...
Sherzod Posted July 11, 2019 Share Posted July 11, 2019 25 minutes ago, rgreat said: Anyone? Hi, We will try to analyze. Link to comment Share on other sites More sharing options...
rgreat Posted July 11, 2019 Author Share Posted July 11, 2019 1 hour ago, Sherzod said: We will try to analyze. Thank you. Also i use this code to make captions to look good: UniSession.SetStyle('.myCpt{word-wrap: break-word; white-space: pre-line;}'); for i:=0 to DBG1.Columns.Count-1 do begin DBG1.Columns[i].Title.Caption:='<span class="myCpt">'+DBG1.Columns[i].Title.Caption+'</span>'; end; And maybe that's not the best way to make caption word wrap. Link to comment Share on other sites More sharing options...
Sherzod Posted July 11, 2019 Share Posted July 11, 2019 26 minutes ago, rgreat said: Also i use this code to make captions to look good... Can you check this approach? var I: integer; begin UniSession.SetStyle('.myCpt{word-wrap: break-word; white-space: pre-line;}'); UniSession.SetStyle('#'+ dd.JSId +' .x-column-header-text-wrapper{vertical-align: bottom; text-align: center;}'); for I:=0 to dd.Columns.Count-1 do begin dd.Columns[i].Title.Caption:='<span class="myCpt">'+dd.Columns[i].Title.Caption+'</span><span><br><br>'+ IntToStr(I+1) +'</span>'; end; end; Link to comment Share on other sites More sharing options...
rgreat Posted July 11, 2019 Author Share Posted July 11, 2019 1 hour ago, Sherzod said: Can you check this approach? Well... Not perfect. but definitely step in right direction. Text align is at bottom. But this is both a blessing and a curse. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now