Pass date range when onClick the cell in scheduler to DatePicker

Hi,


I need to pass start and end dates when clicking the date cell in the scheduler to 

DatePicker & disable the ShowQuickWindow, AppointmentWindowOpen. The purpose is to get the date from the MultipleResource table after rescheduling that date and updating it to the database. I need to update the date from datepicker.



Thank you,

Thaya

(sorry for my bad English)


3 Replies

BS Balasubramanian Sattanathan Syncfusion Team January 21, 2022 01:36 PM UTC

Hi Thaya,

Greetings from Syncfusion Support.

We have achieved your requirement by using the cellClick event which can be viewed from the below attachment

Code snippet:

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

        <div>

            <ej:DatePicker runat="server" ID="datepick" Width="100%"></ej:DatePicker>

        </div>

        <br /><br /> <br />

        <div>

            <ej:Schedule ID="Schedule1" ClientIDMode="Static" Views="Day,Week,Month" Width="100%" Height="550px" ShowQuickWindow="false" CurrentDate="1/8/2022" CellClick="onCellClick" runat="server">

            </ej:Schedule>

        </div>

 

    <script type="text/javascript">

        function onCellClick(args) {

            var datePickerObj = $("#MainContent_datepick").data("ejDatePicker");

            datePickerObj.option('value', args.startTime);

        }

    </script>

</asp:Content>


Kindly try the above solution and let us know if you need further assistance.

Regards,
Balasubramanian S


Attachment: ASPX_Sample(19.1.0.56)_141ccdb7.zip


TK Thayaparan Kumarakuru replied to Balasubramanian Sattanathan January 24, 2022 08:12 AM UTC

Thank you so much for your reply.



VM Vengatesh Maniraj Syncfusion Team January 25, 2022 03:50 AM UTC

You are most welcome!!!


Loader.
Up arrow icon