This is a migrated thread and some comments may be shown as answers.

[Solved] How to fill RadComboBox in inline insert form

2 Answers 164 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sabarishbabu
Top achievements
Rank 1
sabarishbabu asked on 21 Nov 2009, 12:16 PM
Hi,
 

we are  trying to add custom controls to the appointment inline create/edit form.

In inline create/edit we have added  the new field as Users and used the radcomboBox for showing users.we have to get the users from db and bind into it.

When we double click an empty slot,onFormCreating event is  fired.But we are not able to get the combo box control and fill the users.
But in onFormcreated event ,we can get the control by using e.container.

The problem is this event(onFormcreated event) is not fired.

i would like to load the users in combobox while inline create window opens.


i am giving you the sample coding that  i am using

  <InlineInsertTemplate>
                     
                                    <table>
                                        <tr>
                                            <td>
                                             Subject:
                                            </td>
                                           
                                             <td>
                                                            <asp:TextBox  runat="server"
                                                               ID="DescriptionText"
                                                               Width="240px">
                                                     </asp:TextBox>
                                             </td>
                                                  
                                        </tr>
                                        <tr>
                                            <td>
                                                  <asp:Label ID="lblStartTime" runat="server" Text="Start time:"></asp:Label>
                                            </td>
                                            <td>
                                                <telerik:RadTimePicker ID="tpStartTime"  DateInput-ReadOnly="true"   Skin="Web20" runat="server">
                                                </telerik:RadTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblEndTime" runat="server" Text="End time:" Visible="true"></asp:Label>
                                            </td>
                                            <td>
                                                <telerik:RadTimePicker ID="tpEndTime" DateInput-ReadOnly="true" runat="server" Skin="Web20">
                                                </telerik:RadTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblUser" runat="server" Text="User:" Visible="true"></asp:Label>
                                            </td>
                                            <td>
                                                <telerik:RadComboBox ID="ddlUsers" Skin="Web20"  
                                                DataValueField="UserId" DataTextField="UserName"  
                                                AutoPostBack="false" runat="server">
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblMarkUs" runat="server" Text="Mark as" ></asp:Label>
                                            </td>
                                            <td>
                                                <telerik:RadComboBox ID="ddlMarkUs" Skin="Web20"  AutoPostBack="false" runat="server">
                                                    <Items>
                                                        <telerik:RadComboBoxItem Text="Select" Value="N" />
                                                        <telerik:RadComboBoxItem Text="Assisted user" Value="A" />
                                                        <telerik:RadComboBoxItem Text="Service/Maintenance" Value="S" />
                                                        <telerik:RadComboBoxItem Text="Training" Value="T" />
                                                    </Items>
                                                </telerik:RadComboBox>
                                            </td>
                                        </tr>
                                       
                                        <tr>
                                            <td>
                                            <asp:Button runat="server" ID="btnSchedulerUpdate"
                                            ValidationGroup="vgCreateAppointment" SkinID="btn"
                                            CausesValidation="true"  Text="Update"
                                               />
                                        </td>
                                            <td>
                                                <asp:Button ID="btnSchCreatUpdateCancel"
                                                SkinID="btn"
                                                causesvalidation="false" OnClientClick="hideForm();"
                                                runat="server" Text="Cancel" />
                                        </td>
                                        </tr>
                                       
                                    </table>
                                   
                </InlineInsertTemplate>
               


Thanks for any help

2 Answers, 1 is accepted

Sort by
0
sabarishbabu
Top achievements
Rank 1
answered on 23 Nov 2009, 02:04 PM
Any update?

Thanks for any  help
0
Veselin Vasilev
Telerik team
answered on 25 Nov 2009, 03:54 PM
Hello sabarishbabu,

This is strange that OnFormCreating is fired, but OnFormCreated does not. I tested it and it fires correctly. Is it possible that you cancel the OnFormCreating event?

e.Cancel = true



Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Scheduler
Asked by
sabarishbabu
Top achievements
Rank 1
Answers by
sabarishbabu
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or