gerhardhziegler Posted April 4 Share Posted April 4 Dear friends here, do you have any idea how to disable the "NewEvent" Event always shown when the user clicks or range-selects the panel? Any ideas appreciated. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 4 Share Posted April 4 Hello, I will try to check. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 5 Share Posted April 5 19 hours ago, gerhardhziegler said: do you have any idea how to disable the "NewEvent" Event always shown when the user clicks or range-selects the panel? Any ideas appreciated. Hello, Try this approach: MainForm.Script -> Ext.override(Ext.calendar.view.Day, { allowSelection: false }); Ext.override(Ext.calendar.view.Week, { allowSelection: false }); Ext.override(Ext.calendar.view.Month, { allowSelection: false }); 1 Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted April 5 Author Share Posted April 5 2 hours ago, Sherzod said: Hello, Try this approach: MainForm.Script -> Ext.override(Ext.calendar.view.Day, { allowSelection: false }); Ext.override(Ext.calendar.view.Week, { allowSelection: false }); Ext.override(Ext.calendar.view.Month, { allowSelection: false }); You are the best, simply. 1 Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted April 5 Author Share Posted April 5 4 hours ago, Sherzod said: Hello, Try this approach: MainForm.Script -> Ext.override(Ext.calendar.view.Day, { allowSelection: false }); Ext.override(Ext.calendar.view.Week, { allowSelection: false }); Ext.override(Ext.calendar.view.Month, { allowSelection: false }); But it doesnt work. Its still shown when I am clicking or rangeselecting. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 5 Share Posted April 5 3 minutes ago, gerhardhziegler said: But it doesnt work. Sorry, this seems to have worked for me. 4 minutes ago, gerhardhziegler said: Its still shown when I am clicking or rangeselecting. How can we reproduce this? Which browser are you using? Device (desktop, mobile) !? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted April 5 Author Share Posted April 5 26 minutes ago, Sherzod said: Sorry, this seems to have worked for me. How can we reproduce this? Which browser are you using? Device (desktop, mobile) !? UniGui 1.50.0.1480, GoogleChrome , Win 8 to Win 11. D 2010 at the moment. triton.modified, Desktop. MainForm.Script is practically empty, the three lines are the the beginning. Maybe its possible to overrule somwhere in the calendar scripts itself? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 5 Share Posted April 5 28 minutes ago, gerhardhziegler said: UniGui 1.50.0.1480, GoogleChrome , Win 8 to Win 11. D 2010 at the moment. triton.modified, Desktop. MainForm.Script is practically empty, the three lines are the the beginning. Maybe its possible to overrule somwhere in the calendar scripts itself? Can you test these codes on a demo example? Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted April 5 Author Share Posted April 5 Sure, I will try tomorrow and post it here! 1 Quote Link to comment Share on other sites More sharing options...
gerhardhziegler Posted April 7 Author Share Posted April 7 On 4/5/2024 at 2:11 PM, Sherzod said: Can you test these codes on a demo example? The testproject, just built with the script you sent me, exactly did what it should. My main-project did not. You see the structure of the project here und how I applied the script (similar to the test project) https://youtu.be/WLY-wXynAHI The mainform.Script is not overwritten, no where, I checked in the debugger. Any ideas? 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.