Sanyi Posted November 11, 2021 Share Posted November 11, 2021 Hi! In new version 1555 I can't change the options in DBGrid in runtime (old version works!) UniDBGrid1.Options :=UniDBGrid1.Options+[dgRowNumbers]; not working! Please correct it! Regards, Sándor Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 11, 2021 Share Posted November 11, 2021 29 minutes ago, Sanyi said: In new version 1555 I can't change the options in DBGrid in runtime (old version works!) Hi, Please open a ticket in the support portal. And please adjust your forum email address. Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 18, 2022 Author Share Posted January 18, 2022 Hi! I made it. But no answer! Why? 2 month and no result? Regards, Sándor Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2022 Share Posted January 18, 2022 Hello, Some options cannot be set at runtime. On 11/11/2021 at 4:17 PM, Sherzod said: And please adjust your forum email address. ? Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 18, 2022 Author Share Posted January 18, 2022 I wrote, that in new version not working! In old version it works!!!!!! Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2022 Share Posted January 18, 2022 1 minute ago, Sanyi said: I wrote I saw what you wrote. Perhaps there were changes in new versions of ExtJS. Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 18, 2022 Author Share Posted January 18, 2022 But why I become no answer for 2 month. And could you please correct it? I don't think that it cannot be corrected. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2022 Share Posted January 18, 2022 5 minutes ago, Sanyi said: But why I become no answer for 2 month. Sorry for the late reply. We will try to analyze once again. But, some features may be changed in new versions. Why did not adjust your forum email address? Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 18, 2022 Author Share Posted January 18, 2022 The forum notification Emails will arrive. What schould I do? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2022 Share Posted January 18, 2022 1 hour ago, Sanyi said: The forum notification Emails will arrive. What schould I do? Read above post. Or are you using trial version? Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 18, 2022 Author Share Posted January 18, 2022 No. My Customer Portal Login is office@medianova.hu I red it. " Starting from yesterday uniGUI forums started using the new email forums@fmsoft.net. Previous email was info@fmsoft.net. This means that all forum notifications will be sent from forums@fmsoft.net. You may need to adjust your email server whitelist to avoid emails from forums@fmsoft.net to go into spam folder. " Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 18, 2022 Share Posted January 18, 2022 I'm sorry. Here: Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 19, 2022 Author Share Posted January 19, 2022 Done 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2022 Share Posted January 19, 2022 5 hours ago, Sanyi said: Done Thanks. On 11/11/2021 at 3:47 PM, Sanyi said: UniDBGrid1.Options :=UniDBGrid1.Options+[dgRowNumbers]; not working! For now, you can use the workaround. 1. In Design Time: UniDBGrid1.Options -> include [dgRowNumbers] 2. Hide, for example OnFormReady event: procedure TMainForm.UniFormReady(Sender: TObject); begin UniDBGrid1.JSInterface.JSCall('getColumnManager().columns[0].hide', []); end; 2. Show: UniDBGrid1.JSInterface.JSCall('getColumnManager().columns[0].show', []); Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 19, 2022 Author Share Posted January 19, 2022 Thanks. And what it with others? I need to add or remove dgCheckSelect, dgMultiSelect, dgEditing. These will be working? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2022 Share Posted January 19, 2022 Just now, Sanyi said: And what it with others? Hmm... Just now, Sanyi said: I need to add or remove dgCheckSelect, dgMultiSelect, dgEditing. These will be working? I think it's better for you to decide during the design time. 2 minutes ago, Sanyi said: dgEditing You can replace some options with properties, for example dgEditing with ReadOnly. Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 19, 2022 Author Share Posted January 19, 2022 I mean other options... but I need it runtime, it depends on some other values. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 19, 2022 Share Posted January 19, 2022 Just now, Sanyi said: but I need it runtime, it depends on some other values. Specifically, what options did you check? Which ones work. At the beginning of the post, you didn't talk about other options. In any case, you should be aware that not all settings can be changed at runtime. But eventually you can re-create the grid at runtime. Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 19, 2022 Author Share Posted January 19, 2022 Some other values of my programm..... Thats not good news. Something works with old versions, but in the new no more..... Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 20, 2022 Author Share Posted January 20, 2022 Hi Sherzod, I tried your solution but not working. 1. I add dgRowNumbers in my formcreate. When I here call your solution, comes an error: 2. When I add after form create with a button clikc, then I see the column, but without numbers: This is a very big projects, with more then 400 source files! I need the runtime solution which works with Version 1546! Regards, Sándor Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2022 Share Posted January 20, 2022 3 minutes ago, Sanyi said: When I here call your solution, comes an error Hello, Where do you call the code? Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 20, 2022 Author Share Posted January 20, 2022 formcreate Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 20, 2022 Share Posted January 20, 2022 1 hour ago, Sanyi said: formcreate 22 hours ago, Sherzod said: 2. Hide, for example OnFormReady event: Quote Link to comment Share on other sites More sharing options...
Sanyi Posted January 21, 2022 Author Share Posted January 21, 2022 Hi Sherzod, I did it. Conclusion: 1. I'm programming C++. Before I set these options with a pascal code: procedure AddUniDBGridOption(var dg :TUniDBGrid;opt :TUniDBGridOption); begin dg.Options :=dg.Options+[opt]; end; procedure RemoveUniDBGridOption(var dg :TUniDBGrid;opt :TUniDBGridOption); begin dg.Options :=dg.Options-[opt]; end; That works no more in new version. I set the options with C++ code for example Rownumbers: dg->Options =dg->Options+TUniDBGridOptions() <<dgRowNumbers. That works with both of old and new versions. Very strange.... But dgEditing don't works. Here I'm doing what your wrote: I set ReadOnly property of grid. Thanks your help, Regards, Sándor 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.