rgreat Posted July 9, 2019 Share Posted July 9, 2019 Like this: Quote 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. Quote Link to comment Share on other sites More sharing options...
rgreat Posted July 11, 2019 Author Share Posted July 11, 2019 Anyone? Quote 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. Quote 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. Quote 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; Quote 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. 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.