55143681 Posted July 21, 2021 Share Posted July 21, 2021 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 27 minutes ago, 55143681 said: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimDBGrid1 do begin JSInterface.JSConfig('columnLines', [dgColLines in Options]); JSInterface.JSConfig('rowLines', [dgRowLines in Options]); end; end; Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 5 minutes ago, Sherzod said: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimDBGrid1 do begin JSInterface.JSConfig('columnLines', [dgColLines in Options]); JSInterface.JSConfig('rowLines', [dgRowLines in Options]); end; end; Thank you Dear。 1 Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 16 minutes ago, 55143681 said: Thank you Dear。 But how to write this with cBuilder? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 2 minutes ago, 55143681 said: Options.Contains(dgColLines) Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 55 minutes ago, Sherzod said: Options.Contains(dgColLines) Error: Options is not defined Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 1 minute ago, 55143681 said: Options is not defined UnimDBGrid->Options ? Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 1 minute ago, Sherzod said: UnimDBGrid->Options ? void __fastcall TMainmForm::UnimFormCreate(TObject *Sender) { UnimDBGrid1->JSInterface->JSConfig("columnLines", "Options.Contains(dgColLines)"); UnimDBGrid1->JSInterface->JSConfig("rowLines", "Options.Contains(dgRowLines)"); } Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 This code have no effect for cbuilder: void __fastcall TMainmForm::UnimFormCreate(TObject *Sender) { UnimDBGrid1->Options.Contains(dgColLines); UnimDBGrid1->Options.Contains(dgRowLines); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 1 minute ago, 55143681 said: void __fastcall TMainmForm::UnimFormCreate(TObject *Sender) { UnimDBGrid1->JSInterface->JSConfig("columnLines", "Options.Contains(dgColLines)"); UnimDBGrid1->JSInterface->JSConfig("rowLines", "Options.Contains(dgRowLines)"); } UnimDBGrid1->JSInterface->JSConfig("columnLines", "UnimDBGrid1->Options.Contains(dgColLines)"); Can you check!? Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 2 minutes ago, Sherzod said: UnimDBGrid1->JSInterface->JSConfig("columnLines", "UnimDBGrid1->Options.Contains(dgColLines)"); Can you check!? Abnormal with page "Loading....." Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 Sorry I'm not familiar with the cbuilder syntax... https://stackoverflow.com/questions/14810555/how-to-use-delphi-in-operator-in-c-builder Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 2 hours ago, Sherzod said: Sorry I'm not familiar with the cbuilder syntax... https://stackoverflow.com/questions/14810555/how-to-use-delphi-in-operator-in-c-builder Just the follow code will works well: UnimDBGrid1->JSInterface->JSConfig("columnLines", "true"); UnimDBGrid1->JSInterface->JSConfig("rowLines", "true"); why use this code? Options.Contains(dgColLines) Quote Link to comment Share on other sites More sharing options...
55143681 Posted July 21, 2021 Author Share Posted July 21, 2021 Just this code : if( UnimDBGrid1->Options.Contains(dgRowLines) && UnimDBGrid1->Options.Contains(dgColLines) ) { UnimDBGrid1->JSInterface->JSConfig("columnLines", "true"); UnimDBGrid1->JSInterface->JSConfig("rowLines", "true"); } Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 21, 2021 Share Posted July 21, 2021 Yes I know. Okay. 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.