Avoid execution of Select event from codebehind

  1. #1

    Avoid execution of Select event from codebehind

    I have a datefield object, with a 'Select' directevents, how can I make that event only run when manually selecting a date? and AVOID it being executed from the codebehind by assigning it a value, for example MydatefieldID.SelectedDate = '01/01/2021'


    thanks!
  2. #2
    Hello @JCarlosF!

    If I understand your question, I believe you can limit date change events as you want by triggering them only when chosen from the date picker. But in case you also allow typed in, you'd probably need extra code with a before handler to return false when a change is initiated neither by the picker or text input.

    You may also tinker on other events, like onBlur to process changes as, regardless of the picker or manual input, you'd be able to discern a change between the onFocus or serverUpdate and onBlur user interaction.

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] How to avoid page load on every action/Direct event
    By Vamsi in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: May 14, 2015, 8:21 PM
  2. [CLOSED] [1.0] How to select a treenode in codebehind?
    By klaus.schwarz in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 01, 2010, 3:00 PM
  3. [CLOSED] Is it possible to Select Items of a multi select during ajax event
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 29, 2010, 6:28 PM
  4. Replies: 1
    Last Post: Apr 06, 2010, 1:46 PM
  5. [0.8.2] Select row from codebehind fire event
    By SouthDeveloper in forum 1.x Help
    Replies: 6
    Last Post: Jan 21, 2010, 12:07 PM

Posting Permissions