Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Subject & Location
posted

How can we set Subject and Location fields automatically on appointment dialog , based upon the Location and Owner from our database , when user create new appointment . instead of letting user enter those fields.

Parents
No Data
Reply
  • 49378
    posted

    Hi ishugautam,

    It has been some time since your post, in case you still need assistance I would be glad to help.

    The input fields for Subject and Location are located in the AppointmentAdd.ascx form. In order to be able to access the you need to set the runat="server" properties for both fields. I am pasting the required markup of the input fields alongside their respective label definitions to avoid any ambiguity:

                        <td valign="top" nowrap>
                            <label class="Fonts" runat="server" id="SubjectLabel" for="tbSubject">
                                Subject:&nbsp;</label>
                        </td>
                        <td style="width: 100%">
                            <input class="Fonts" id="tbSubject" style="width: 100%" tabindex="1" type="text" runat="server"/>
                        </td>
                    </tr>
                    <tr width="100%">
                        <td valign="top" nowrap>
                            <label class="Fonts" runat="server" id="LocationLabel" for="tbLocation">
                                Location:</label>
                        </td>
                        <td style="width: 100%" align="left">
                            <input class="Fonts" id="tbLocation" style="width: 100%" tabindex="2" type="text" runat="server">
                        </td>

    Once the input fields have runat server property set, they can be accessed from the code-behind, i.e. from AppointmentAdd.ascx.cs. There, from your Page_Load method you could set their value based on the values in your database.

    Please contact me if you have any questions.

    Petar Ivanov
    Developer Support Engineer
    Infragistics, Inc.
    http://ko.infragistics.com/support

Children
No Data