C1scheduler - resorting contact group

Posted by: spaceage15 on 11 September 2023, 3:23 pm EST

  • Posted 11 September 2023, 3:23 pm EST

    Is there an easy way to re-sort the contacts of the C1Scheduler on the fly after the scheduler as been loaded? I have a task asking where users need to be able to move the selected contact group column left or right with click of an arrow keyboard key.

    Can this be done or will appointments lose their ownership once the contact group changes?

    Regards,

    Edd

  • Posted 12 September 2023, 6:54 am EST

    Hi Edd,

    After the C1Schedule has been loaded, you can rearrange the order of contacts at runtime using the C1Schedule.DataStorage.ContactStorage.Contacts collection. Please see the attached sample project for reference.

    Attachment: ScheduleContactMove.zip

    Best Regards,

    Kartik

  • Posted 14 September 2023, 6:25 pm EST

    Hello Kartik,

    Thanks for the reply. I used your example to achieve my goal, but I have one problem. When moving a contact column, the contact column that was selected loses focus- as in no longer selected.

    I’ve attached a sample project so you can see when you click the MoveRight-button.

    Is there a way to reselect that contact column? The C1Schedule.SelectedGroupItem doesn’t allow me to set it.

    Any suggestions?

    Regards

    Edd

    c1ScheduleContactMoveRight.zip

  • Posted 15 September 2023, 6:50 am EST

    Hi Edd,

    We could see the behavior you mentioned on our end. We have shared the observations with the development team to get their insights on it and will let you know the updates as soon as possible.

    [Internal Tracking ID: C1WIN-31092]

    Best Regards,

    Kartik

  • Posted 15 September 2023, 2:49 pm EST

    Kartik, Thank you.

    In the meantime, is there a workaround to what I’m trying to perform?

    Also, I was wondering if there was an event for the contact GroupItemSelected? Because then I can just bring up a context menu to move the column left/right.

    Any suggestions are welcomed.

    Regards

  • Posted 18 September 2023, 6:58 am EST

    Hi Edd,

    As per the development team, the read-only SelectedGroupItem property is currently a limitation of the C1Schedule. The development team has considered this as an enhancement request. Currently, there is no workaround for this.

    Unfortunately, there is no such event in the C1Schedule. To handle your requirement, you can handle the BeforeContextMenuShow event and show your custom ContextMenu with reordering options. Please see the attached sample project for reference (ScheduleContactMove_Reorder.zip).

    Best Regards,

    Kartik

  • Posted 18 September 2023, 6:45 pm EST

    Thank you Kartik,

    this example was the exact workaround I needed. We can work with this until the SelectedGroupItem request gets satisfied. I look forward for that.

    Cheers!

    -Edd

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels