Point Posted November 12, 2020 Share Posted November 12, 2020 Hi, Trigger button not hide when datasource autoedit = false. even though the properties of the trigger button have been set to hidereadonly = true. Any suggestion? many thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 4 hours ago, Popo said: Trigger button not hide when datasource autoedit = false. even though the properties of the trigger button have been set to hidereadonly = true. Hello, Can you please clarify? Quote Link to comment Share on other sites More sharing options...
Point Posted November 12, 2020 Author Share Posted November 12, 2020 hi sherzod, i mean like in this video. btdbedit.mp4.mp4 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 9 minutes ago, Popo said: i mean like in this video. Do you have a test app? Quote Link to comment Share on other sites More sharing options...
Point Posted November 12, 2020 Author Share Posted November 12, 2020 here a test app unidbedit_trigerbtn.7z Quote Link to comment Share on other sites More sharing options...
Point Posted November 12, 2020 Author Share Posted November 12, 2020 I mean, the trigger button on unidbedit should be hidden like the trigger button on unidblookupcombobox when the record status is read only. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 8 minutes ago, Popo said: I mean, the trigger button on unidbedit should be hidden like the trigger button on unidblookupcombobox when the record status is read only. Yes, I see. I'm analyzing. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 12, 2020 Share Posted November 12, 2020 2 hours ago, Popo said: I mean, the trigger button on unidbedit should be hidden like the trigger button on unidblookupcombobox when the record status is read only. This workaround? UniDBEdit -> function afterrender(sender, eOpts) { sender.setReadOnly(!sender.getEditable()); Ext.override(sender, { setEditable: function() { this.setReadOnly(this.getEditable()); this.callParent(arguments) } }); } Quote Link to comment Share on other sites More sharing options...
Point Posted November 12, 2020 Author Share Posted November 12, 2020 It's work very well. Thanks you. but now I have another problem when screen mask enabled to that unidbedit. every time I type a letter in the unidbedit, the screen mask appears. Can the screen mask appear only when clicking the trigger button? FYI, I avoid synchronous mode in my project. Quote Link to comment Share on other sites More sharing options...
Point Posted November 13, 2020 Author Share Posted November 13, 2020 hi sherzod, function click(sender, eOpts) { sender.showMask('Loading, Please Wait...'); ajaxRequest(sender, 'test'); } procedure TMainForm.UniDBEdit1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName='test' then begin Sleep(1000); end; end; That code show mask but not only button trigger, could you help me Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 13, 2020 Share Posted November 13, 2020 13 hours ago, Popo said: Hi, In the test case, I don't see this behavior. Quote Link to comment Share on other sites More sharing options...
Point Posted November 13, 2020 Author Share Posted November 13, 2020 1 hour ago, Sherzod said: Hi, In the test case, I don't see this behavior. in the previous test case i am not enabled screen mask yet. and then I enable it, hope screen mask appears when I click the trigger button. but screen mask appear everytime I type in the unidbedit. 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.