Jump to content

supress "NewEvent" at TUniCalendarPanel


Recommended Posts

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
});

 

  • Happy 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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) !?

Link to comment
Share on other sites

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?
 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...