artem_niko Posted January 17, 2020 Share Posted January 17, 2020 Hello to all! I'm interesting how I can change caption for ActionColumn in UniDBGrid. Now that was I have: As you see, text in title of column on Russian, but text in filter on ENglish and I does't find how translate him. Please, help. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17, 2020 Share Posted January 17, 2020 24 minutes ago, Артем said: As you see, text in title of column on Russian, but text in filter on ENglish and I does't find how translate him. Hello, procedure TMainForm.UniFormReady(Sender: TObject); var ActionMenuText: string; ActionColIndx: Integer; begin ActionMenuText := 'ActionColumn'; ActionColIndx := 6; with UniDBGrid1 do JSInterface.JSAssign('menuText', [ActionMenuText], Columns[ActionColIndx].JSColumn); end; 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 17, 2020 Author Share Posted January 17, 2020 11 minutes ago, Sherzod said: Hello, procedure TMainForm.UniFormReady(Sender: TObject); var ActionMenuText: string; ActionColIndx: Integer; begin ActionMenuText := 'ActionColumn'; ActionColIndx := 6; with UniDBGrid1 do JSInterface.JSAssign('menuText', [ActionMenuText], Columns[ActionColIndx].JSColumn); end; Perfect!!!! Working very good! Thank's, @Sherzod! 1 Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 17, 2020 Author Share Posted January 17, 2020 One small question: is it pussible rotate text in title of column on vertical? If "yes" - I will create new topic for this question. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 17, 2020 Share Posted January 17, 2020 4 hours ago, Артем said: One small question: is it pussible rotate text in title of column on vertical? If "yes" - I will create new topic for this question. You can try using custom CSS. The forum was the approximate solution... Quote Link to comment Share on other sites More sharing options...
artem_niko Posted January 18, 2020 Author Share Posted January 18, 2020 7 hours ago, Sherzod said: You can try using custom CSS. The forum was the approximate solution... I was find on forum, but in result search was 76 pages and this take many time, that view all 76 pages) 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.