Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
67 views

Hello friends,

I am using C# and asp.net to do the following.

When the customer clicks the Transmit Button, I need to have a confirm popup. When the customer presses "Ok", I need to continue with the code behind function. For this I used asp.net ModalPopupExtender. And Created 2 functions in the code behind for "OK" and "Cancel" click events. My aspx code is as follows:

<!-- Panel --> 


<asp:Panel ID="pnlIssues" runat="server" BorderColor="Black" BorderStyle="Outset" BorderWidth="2" BackColor="Wheat" Width="400px" Height="106px">

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate> 

<asp:Button ID="btnWarning" runat="server" Text = "Cancel" OnClick ="RefreshAfterCancel_Click" CausesValidation="false" />
<asp:Button ID="btnOK" runat="server" Text = "OK" OnClick="TransmitAfterOK_Click" CausesValidation="false"/>
</ContentTemplate>
</asp:UpdatePanel> 


</asp:Panel> 


<ajaxToolkit:ModalPopupExtender ID="WarningModal" TargetControlID="dummyLink2" BehaviorID="WarningModal" PopupControlID="pnlIssues" runat="server" ViewStateMode="Enabled" CancelControlID="btnWarning" OkControlID = "btnOK">
</ajaxToolkit:ModalPopupExtender>

<asp:HyperLink ID="dummyLink2" runat="server" NavigateUrl="#" />

This is the code behind:

protected void TransmitButton_Click(object sender, EventArgs e)

WarningModal.Show();

}

protected void RefreshAfterCancel_Click(object sender, EventArgs e)
{
try
{

Response.Redirect("~/ManageCases.aspx?CaseID=" + GlobalData.CaseID.ToString());

}
catch { }
}

protected void TransmitAfterOK_Click(object sender, EventArgs e)
{

.......}

But when I click the transmit button, it opens the popup and when I click "OK" it gives me the error:

"Microsoft JScript runtime error: Unable to get value of the property 'length': object is null or undefined".

When I click "break" and continue, it does what its supposed to do. I don't understand why it gives the error. This error only shows up in internet explorer. It works fine in FF and Chrome. Also, I am using RADScriptManager in my masterpage.

Any help will be greatly appreciated. I have been trying to figure this out for two days without any luck. I have tried all the tips that were answered for this error message, but still doesn't work for me. Thank you in advance.

Sunil
Top achievements
Rank 1
 asked on 22 Oct 2012
2 answers
116 views

Hi
<telerik:RadPageView runat="server" ID="PageView_TicketGeneral">
                                                        <div class="tabbedmultipageHeight tblspacer">
                                                            <telerik:RadDockZone ID="RadDockZone_TicketGeneral" ClientIDMode="Static" runat="server"
                                                                Orientation="Horizontal" Style="position: inherit;" MinHeight="305px">
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Technician_Group%>" ID="RadDock_TechGroup_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_TechGroup_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_TechGroup_Name_required" runat="server"
                                                                                value="0" title="ddl_TechnicianGroup" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_TechGroup_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_TechGroup_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr>
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock4" runat="server">
                                                                                            <label id="ddl_TechnicianGroup_lbl">
                                                                                                <%= Resources.Ticket.Technician_Group%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td width="60%">
                                                                                        <telerik:RadComboBox ID="ddl_TechnicianGroup" runat="server" DataTextField="TechGroup_Name"
                                                                                            DataValueField="TechGroupID" Style="vertical-align: Middle;" Width="180px" OnItemsRequested="ddl_TechnicianGroup_ItemsRequested"
                                                                                            OnSelectedIndexChanged="fillTech" OnClientSelectedIndexChanging="TicketTechGroupChanging"
                                                                                            AutoPostBack="true" />
                                                                                        <input type="hidden" runat="server" id="hdGrpID" enableviewstate="true" clientidmode="Static"
                                                                                            value="-1" />
                                                                                        <asp:HiddenField ID="hdTechnicianGroup" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Date_Received%>" ID="RadDock_Date_Received"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Date_Received_div">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Date_Received_required" runat="server"
                                                                                value="0" title="Date_Received" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Date_Received_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Date_Received_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock50" runat="server">
                                                                                            <label id="Date_Received_lbl">
                                                                                                <%= Resources.Ticket.Date_Received%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left;" width="60%">
                                                                                        <telerik:RadDateTimePicker runat="server" Width="180px" ID="dtp_DateReceived" OnSelectedDateChanged="ReceivedDateChanged"
                                                                                            AutoPostBackControl="Both">
                                                                                            <DateInput ID="DateInput1" Style="height: 14px !important;" runat="server">
                                                                                            </DateInput>
                                                                                            <Calendar ShowRowHeaders="false" />
                                                                                        </telerik:RadDateTimePicker>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Technician%>" ID="RadDock_ppl_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_ppl_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_ppl_Name_required" runat="server"
                                                                                value="0" title="ddl_Technician" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_ppl_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_ppl_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel" style="width: 40%;">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock6" runat="server">
                                                                                            <label id="ddl_Technician_lbl">
                                                                                                <%= Resources.Ticket.Technician%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadComboBox ID="ddl_Technician" runat="server" Style="vertical-align: middle;
                                                                                            float: left" Width="145px" OnClientSelectedIndexChanging="TicketTechnicianChanging"
                                                                                            AllowCustomText="true" EnableLoadOnDemand="true" MarkFirstMatch="true" OnItemsRequested="ddl_Technician_ItemsRequested"
                                                                                            OnClientBlur="isNewItem" OnItemDataBound="ddl_Technician_OnItemDataBound" />
                                                                                        <input type="hidden" runat="server" id="hdtechID" enableviewstate="true" clientidmode="Static"
                                                                                            value="-1" />
                                                                                        <asp:HiddenField ID="hdTTechnician" runat="server" />
                                                                                        <img clientidmode="Static" id="img1" runat="server" onclick="return ShowPopupTechnician(); return false;"
                                                                                            src="~/Content/images/Search1.png" alt="look up" title="<%$ Code:Resources.Common.Lookup%>"
                                                                                            border="0" style="float: left; cursor: pointer; margin-left: 3px;" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Impact%>" ID="RadDock_Impact_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Impact_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Impact_Name_required" runat="server"
                                                                                value="0" title="ddl_Impact" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Impact_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Impact_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock7" runat="server">
                                                                                            <label id="ddl_Impact_lbl">
                                                                                                <%= Resources.Ticket.Impact%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadComboBox ID="ddl_Impact" CausesValidation="false" DataTextField="Impact_Name"
                                                                                            DataValueField="ImpactID" runat="server" Style="vertical-align: middle;" Width="180px"
                                                                                            AutoPostBack="true" OnSelectedIndexChanged="UpdatePriority" OnClientSelectedIndexChanging="TicketImpactChanging">
                                                                                        </telerik:RadComboBox>
                                                                                        <asp:HiddenField ID="hdImpact" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Category%>" ID="RadDock_Category_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Category_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Category_Name_required" runat="server"
                                                                                value="0" title="ddl_Category" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Category_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Category_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock8" runat="server">
                                                                                            <label id="ddl_Category_lbl">
                                                                                                <%= Resources.Ticket.Category%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td width="60%" style="text-align: left">
                                                                                        <telerik:RadComboBox ID="ddl_Category" DataTextField="Category_Name" DataValueField="CategoryID"
                                                                                            runat="server" Style="vertical-align: middle;" Width="180px" OnClientSelectedIndexChanging="LoadSubCategory"
                                                                                            OnItemsRequested="ddl_Category_ItemsRequested" AllowCustomText="false" EnableLoadOnDemand="false"
                                                                                            MarkFirstMatch="false" />
                                                                                        <asp:HiddenField ID="hdTCategory" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Urgency%>" ID="RadDock_Urgency_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Urgency_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Urgency_Name_required" runat="server"
                                                                                value="0" title="ddl_Urgency" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Urgency_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Urgency_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock9" runat="server">
                                                                                            <label id="ddl_Urgency_lbl">
                                                                                                <%= Resources.Ticket.Urgency%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadComboBox ID="ddl_Urgency" CausesValidation="false" DataTextField="Urgency_Name"
                                                                                            DataValueField="UrgencyID" runat="server" Style="vertical-align: middle;" Width="180px"
                                                                                            AutoPostBack="true" OnSelectedIndexChanged="UpdatePriority" OnClientSelectedIndexChanging="TicketUrgencyChanging" />
                                                                                        <asp:HiddenField ID="hdUrgency" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Subcategory%>" ID="RadDock_SubCategory_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_SubCategory_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_SubCategory_Name_required"
                                                                                runat="server" value="0" title="ddl_Subcategory" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_SubCategory_Name_readonly"
                                                                                runat="server" value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_SubCategory_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock10" runat="server">
                                                                                            <label id="ddl_Subcategory_lbl">
                                                                                                <%= Resources.Ticket.Subcategory%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadComboBox ID="ddl_Subcategory" runat="server" DataTextField="SubCategory_Name"
                                                                                            DataValueField="SubCategoryID" Style="vertical-align: middle;" Width="180px"
                                                                                            OnItemsRequested="ddl_Subcategory_ItemsRequested" OnClientSelectedIndexChanging="TicketSubcategoryChanging" />
                                                                                        <asp:HiddenField ID="hdSubcategory" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Priority %>" ID="RadDock_Priority_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Priority_Name_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Priority_Name_required" runat="server"
                                                                                value="0" title="ddl_Priority" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Priority_Name_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Priority_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock11" runat="server">
                                                                                            <label id="ddl_Priority_lbl">
                                                                                                <%= Resources.Ticket.Priority %></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td width="60%" style="text-align: left">
                                                                                        <telerik:RadComboBox ID="ddl_Priority" CausesValidation="false" AutoPostBack="true"
                                                                                            runat="server" Style="vertical-align: middle;" Width="180px" DataTextField="Priority_Name"
                                                                                            DataValueField="PriorityID" OnItemsRequested="ddl_Priority_ItemsRequested" OnSelectedIndexChanged="SetDueDate"
                                                                                            OnClientSelectedIndexChanging="TicketPriorityChanging" />
                                                                                        <asp:HiddenField ID="hdPriority" runat="server" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Organization%>" ID="RadDock_Organization_Name"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_org_div" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Organization_Name_required"
                                                                                runat="server" value="0" title="ddl_Organization" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Organization_Name_readonly"
                                                                                runat="server" value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Organization_Name_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel" style="width: 40%;">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock12" runat="server">
                                                                                            <label id="ddl_Organization_lbl">
                                                                                                <%= Resources.Ticket.Organization%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left; padding: 0px;" width="60%">
                                                                                        <table border="0" cellpadding="0" cellspacing="0">
                                                                                            <tr>
                                                                                                <td align="left" style="width: 140px;">
                                                                                                    <telerik:RadComboBox ID="ddl_Organization" DataValueField="Organizations_ID" DataTextField="Organization_Name"
                                                                                                        runat="server" Style="vertical-align: Middle;" Width="150px" OnItemsRequested="ddl_Organization_ItemsRequested"
                                                                                                        AllowCustomText="true" EnableLoadOnDemand="true" MarkFirstMatch="true" OnClientBlur="isNewItem"
                                                                                                        OnClientSelectedIndexChanged="loadreq" />
                                                                                                    <input type="hidden" runat="server" id="hdorgaddID" enableviewstate="true" clientidmode="Static"
                                                                                                        value="-1" />
                                                                                                </td>
                                                                                                <td>
                                                                                                    <img clientidmode="Static" id="imgOrgLookup" runat="server" onclick="return ShowPopupOrganization(); return false;"
                                                                                                        src="~/Content/images/Search1.png" alt="look up" title="<%$ Code:Resources.Common.Lookup%>"
                                                                                                        border="0" style="cursor: pointer; float: left;" />
                                                                                                    <input type="hidden" runat="server" id="hdOrgId" enableviewstate="true" clientidmode="Static"
                                                                                                        value="-1" />
                                                                                                </td>
                                                                                                <td style="display: none;">
                                                                                                    <telerik:RadTextBox runat="server" Width="175px" Enabled="false" ID="TxtOrganization"
                                                                                                        ViewStateMode="Enabled" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Due_Date%>" ID="RadDock_DueDate"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_DueDate_div">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_DueDate_required" runat="server"
                                                                                value="0" title="dtp_DueDatePicker" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_DueDate_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_DueDate_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock13" runat="server">
                                                                                            <label id="dtp_DueDatePicker_lbl">
                                                                                                <%= Resources.Ticket.Due_Date%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadDateTimePicker runat="server" Width="180px" ID="dtp_DueDatePicker">
                                                                                            <DateInput ID="DateInput2" Style="height: 14px !important;" runat="server">
                                                                                            </DateInput>
                                                                                            <Calendar ID="Calendar1" runat="server" ShowRowHeaders="false" />
                                                                                        </telerik:RadDateTimePicker>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Requestor%>" ID="RadDock_Requestor"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_Req_div" style="overflow: hidden" class="comboClass">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Requestor_required" runat="server"
                                                                                value="0" title="ddl_Requestor" class="hdnrequired" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Requestor_readonly" runat="server"
                                                                                value="0" />
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Requestor_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr align="right">
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock14" runat="server">
                                                                                            <label id="ddl_Requestor_lbl">
                                                                                                <%= Resources.Ticket.Requestor%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left; padding: 0px;" width="60%">
                                                                                        <table border="0" cellpadding="0" cellspacing="0">
                                                                                            <tr>
                                                                                                <td align="left" style="width: 140px;">
                                                                                                    <telerik:RadComboBox ID="ddl_Requestor" runat="server" Style="vertical-align: Middle;"
                                                                                                        Width="150px" OnItemsRequested="ddl_Requestor_ItemsRequested" OnClientSelectedIndexChanging="TicketRequestorChanging"
                                                                                                        OnClientSelectedIndexChanged="loadorg" AllowCustomText="true" EnableLoadOnDemand="true"
                                                                                                        MarkFirstMatch="true" OnClientBlur="isNewItem" OnItemDataBound="ddl_RequestorOnItemDataBound" />
                                                                                                    <input type="hidden" runat="server" id="hdreqID" enableviewstate="true" clientidmode="Static"
                                                                                                        value="-1" />
                                                                                                    <asp:HiddenField ID="hdRequestor" runat="server" />
                                                                                                </td>
                                                                                                <td align="left">
                                                                                                    <img clientidmode="Static" id="imgReqLookup" runat="server" onclick="return ShowPopup();"
                                                                                                        src="~/Content/images/Search1.png" alt="look up" title="<%$ Code:Resources.Common.Lookup%>"
                                                                                                        border="0" style="cursor: pointer; float: left;" />
                                                                                                </td>
                                                                                                <td style="display: none;">
                                                                                                    <telerik:RadButton runat="server" ID="test">
                                                                                                    </telerik:RadButton>
                                                                                                </td>
                                                                                                <td style="display: none;">
                                                                                                    <telerik:RadTextBox ID="txt_Requestor" runat="server" Width="175px" Height="15px"
                                                                                                        ReadOnly="true" AutoPostBack="true" OnTextChanged="RequestorChanged" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Location%>" ID="RadDock_LocationName"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_loc_div" style="overflow: hidden">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_LocationName_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr>
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock15" runat="server">
                                                                                            <label id="txtLocationName_lbl">
                                                                                                <%= Resources.Ticket.Location%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadTextBox ID="txtLocationName" runat="server" Width="175px" Height="15px"
                                                                                            ReadOnly="true" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Department%>" ID="RadDock_Department"
                                                                    runat="server" Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_dep_div" style="overflow: hidden">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Department_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr>
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock16" runat="server">
                                                                                            <label id="txtDepartment_lbl">
                                                                                                <%= Resources.Ticket.Department%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadTextBox ID="txtDepartment" runat="server" Width="175px" Height="15px"
                                                                                            ReadOnly="true" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Phone%>" ID="RadDock_Phone" runat="server"
                                                                    Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_phn_div" style="overflow: hidden">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Phone_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr>
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock17" runat="server">
                                                                                            <label id="txtPhone_lbl">
                                                                                                <%= Resources.Ticket.Phone%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadTextBox ID="txtPhone" runat="server" Width="175px" Height="15px" ReadOnly="true" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                                <telerik:RadDock Title="<%$ Code:Resources.Ticket.Email%>" ID="RadDock_Email" runat="server"
                                                                    Width="50%" DockMode="Docked" DefaultCommands="Close" OnClientCommand="Dock_OnClientCommand"
                                                                    OnClientDockPositionChanged="Dock_OnClientDockPositionChanged">
                                                                    <ContentTemplate>
                                                                        <div runat="server" id="RadDock_phn_email">
                                                                            <input type="hidden" clientidmode="Static" id="RadDock_Email_showtorequesteronly"
                                                                                runat="server" value="0" />
                                                                            <table>
                                                                                <tr>
                                                                                    <td class="hdpLabel">
                                                                                        <telerik:RadCodeBlock ID="RadCodeBlock18" runat="server">
                                                                                            <label id="txtEmail_lbl">
                                                                                                <%= Resources.Ticket.Email%></label><label><%= Resources.Common.Label_colon%></label></telerik:RadCodeBlock>
                                                                                    </td>
                                                                                    <td style="text-align: left" width="60%">
                                                                                        <telerik:RadTextBox ID="txtEmail" runat="server" Width="175px" Height="15px" ReadOnly="true" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </ContentTemplate>
                                                                </telerik:RadDock>
                                                            </telerik:RadDockZone>
                                                        </div>
                                                    </telerik:RadPageView>


<td id="DynamicLayout_Header" runat="server" class="avail_list">
                    <telerik:RadPanelBar runat="server" ID="CustomFieldPanel" Width="100%" Height="100%"
                        Skin="Telerik">
                        <Items>
                            <telerik:RadPanelItem>
                                <ContentTemplate>
                                    <table cellpadding="2" cellspacing="0">
                                        <tr class="tplHead">
                                            <td style="text-align: center;">
                                                <b>
                                                    <%=Resources.Common.Select_Field %></b>
                                            </td>
                                            <td>
                                                <img id="imgKeywords" src="../Content/images/help_tpl.png" alt="" title="" style="vertical-align: bottom;" />
                                                <telerik:RadToolTip ID="tooltip" RelativeTo="Element" runat="server" TargetControlID="imgKeywords"
                                                    Animation="Slide" Position="MiddleLeft" IsClientID="true" ShowCallout="false"
                                                    EnableShadow="false" HideDelay="100" ShowDelay="100" AutoCloseDelay="100000">
                                                    <div style="width: 300px; height: auto">
                                                        <label>
                                                            <%=Resources.CustomTemplate.TplHelp%></label></div>
                                                </telerik:RadToolTip>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <hr />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <telerik:RadDockZone ClientIDMode="Static" ID="RadDockZone_FieldList" UniqueName="RadDockZone_FieldList"
                                                    runat="server" Height="498px" Width="145px">
                                                </telerik:RadDockZone>
                                            </td>
                                        </tr>
                                    </table>
                                </ContentTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelBar>
                </td>

see my screen shot.
The first part of coding is Custom field move them
Second part of coding is List of field drag and drop.
When i have move the field background color is yellow.
How to change that color? for Ex: Yellow to Blue

Java script & J query below the coding
function DockpageLoad() {debugger
                $(".rdTitleBar").html(" ");
                $(".rdTop").addClass("rdGripTop");
                var Zone = $find('<%= RadDockZone_FieldList.ClientID%>');
                if (Zone != null) {
                    var myDock = Zone.get_docks();
                    for (var i = 0; i < myDock.length; i++) {
                        if (myDock[i]._dockZoneID == "<%= RadDockZone_FieldList.ClientID%>") {
                            var xDock = replaceCharacters(myDock[i]._uniqueID);
                            $("#" + xDock + "_T").html("<EM style='WIDTH: 93px'>" + $("#" + xDock + "_C label").html() + "</EM>");
                            $("#" + $(".rdTitleBar").attr('id')).removeClass("rdGripTop");
                        }
                    }
                }
            }
 
            function Dock_OnClientDockPositionChanged(sender, eventArgs) {
                var xDock = replaceCharacters(sender._uniqueID);
 
                if (sender._dockZoneID == "<%= RadDockZone_FieldList.ClientID%>") {
                    //collaps
                    sender.set_collapsed(true);
                    if (xDock.indexOf('_CustomFieldPanel_')) {
                        $("#" + xDock + "_T").html('<EM style="WIDTH: 93px">' + $("#" + xDock + "_C label").html() + '</EM>');
                        $("#" + $(".rdTitleBar").attr('id')).removeClass("rdGripTop");
                    }
                }
                else {
                    //expend
                    sender.set_collapsed(false);
                    $("#" + xDock + "_T").html(" ");
                    $(".rdTop").addClass("rdGripTop");
                    sender.set_width(sender._width);
                }
            }
 
 
            function Dock_OnClientCommand(sender, eventArgs) {
                if (sender.get_dockZone()._uniqueName != "RadDockZone_FieldList") {
                    //find selected dock and move to fieldlist
                    var Zone = sender.get_dockZone();
                    for (var i = 0; i < Zone.get_docks().length; i++) {
                        if (Zone.get_docks()[i]._uniqueID == sender._uniqueID) {
                            var FZone = $find('<%= RadDockZone_FieldList.ClientID%>');
                            FZone.dock(Zone.get_docks()[i]);
                        }
                    }
                    //set closed false
                    sender.set_closed(false);
                    sender.set_collapsed(true);
                    //Hide close button
                    sender.get_commands().Close.set_visible(false);
                }
 
            }
 
function closeDock(pDock, pZone) {
                if (pZone != "RadDockZone_FieldList") {
                    var sender = $find(pDock);
                    //find selected dock and move to fieldlist
                    var Zone = sender.get_dockZone();
                    for (var i = 0; i < Zone.get_docks().length; i++) {
                        if (Zone.get_docks()[i]._uniqueID == sender._uniqueID) {
                            var FZone = $find('<%= RadDockZone_FieldList.ClientID%>');
                            FZone.dock(Zone.get_docks()[i]);
                        }
                    }
                    //set closed false
                    sender.set_closed(false);
                    sender.set_collapsed(true);
                    $("#" + pDock + "_T").html('<EM style="WIDTH: 93px">' + $("#" + pDock + "_C label").html() + '</EM>');
                    $("#" + $(".rdTitleBar").attr('id')).removeClass("rdGripTop");
                    //Hide close button           
                }
                return false;
            }
 
            $(".rdTable").bind({
                mouseover: function () {
                    var myZone = this.parentNode.parentNode.id;
                    var myDock = this.parentNode.id;
                    if (myZone != "<%= RadDockZone_FieldList.ClientID%>") {
                        try {
                            var chkDelIcon = $("#" + myDock + "_T").html().split('closeDock');
                            if (chkDelIcon.length <= 1) {  // check length of delete and append
                                $("#" + myDock + "_T").append("<a href='#'><img onClick='closeDock(\"" + myDock + "\",\"" + myZone + "\")' style='margin:0px;border:0px solid red;cursor:pointer;' id='closeDock1' src='../Content/images/dock_close.png' alt='close' /></a>");
                            }
                        } catch (er) { }
                    }
                },
                mouseleave: function () {
                    var myZone = this.parentNode.parentNode.id;
                    var myDock = this.parentNode.id;
                    if (myZone != "<%= RadDockZone_FieldList.ClientID%>") {
                        $("#" + myDock + "_T").append("<div style='display:none;'> </div>").empty();
                    }
                }
            });





Regards,
Ansari
Tamim
Top achievements
Rank 1
 answered on 22 Oct 2012
1 answer
49 views
Hi,

I came across ribbon bar's clipping issue in IE7. Some of the icons are getting clipped while opening the editor in IE7. This is working fine in all other browsers. PFA the screenshot of the same. This is happening on both the "Home" and "Insert" tab.
Can we fix this?

     
Rumen
Telerik team
 answered on 22 Oct 2012
0 answers
135 views
Hi,

Is it possible to use the RadAutoCompleteBox inside a FormView ?
What is the parameter to link the "bind" attribute ? Text, Value, DbText ?

For example :

<asp:FormView ID="fvDetail" runat="server" DataKeyNames="Id" DataSourceID="eds">
<EditItemTemplate>

<telerik:RadAutoCompleteBox ID="racb" runat="server" AllowCustomEntry="false" Delimiter="," DropDownHeight="150" DropDownWidth="250" InputType="Token" Text='<%# Bind("Ids") %>' Width="100%">
<Entries>
<telerik:AutoCompleteBoxEntry Text="One" Value="1" />
<telerik:AutoCompleteBoxEntry Text="Two" Value="2" />
<telerik:AutoCompleteBoxEntry Text="Three" Value="3" />
</Entries>
</telerik:RadAutoCompleteBox>

</EditItemTemplate>
</asp:FormView>

And is it possible to open the dropdownlist when the box has the focus ?

Thanks in advance !
GUTIERREZ Nicolas
Top achievements
Rank 1
 asked on 22 Oct 2012
3 answers
64 views
Hi,

We use the version Q2 2012 912.40.
Often with IE8, IE9 we don't receive images from the WebResouce (see print screens).
This append often and only with IE. WIth Firefox or Chrome is not a problem.

Any idea about this problem?

In advance thanks for your answer.

Edwin.
Pavlina
Telerik team
 answered on 22 Oct 2012
3 answers
249 views
Hi,
     I have just installed the Q3 release and started jumping for joy when I saw the gauge components. However when I started to do a quick test to see if I can dump the other control suite I have to use for radial gauges I could not see a way to add a second pointer.

Is this possible ?

Thanks

Chris
Chris
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
267 views
hii,
 how to add two icons on a radmenuitem?

thanks..
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
51 views
No matter what I try, the SelectedValue of the CountryCombo is always null, therefore I cannot load the Province/State Combo?

<telerik:RadComboBox ID="CountryCombo" runat="server" EnableLoadonDemand="true">
</telerik:RadComboBox>
 <telerik:RadComboBox ID="ProvinceCombo" runat="server" Width="325" EnableLoadonDemand="true">
</telerik:RadComboBox>

Private Sub RecipientsGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RecipientsGrid.NeedDataSource
 
Dim ctx As New DataEntities
 
RecipientsGrid.DataSource = ctx.RecipientOrganizations.ToList
 
AddOrganizationButton.Visible = False
RecipientOrganizationComboBox.Visible = False
 
   End Sub
    Private Sub RecipientsGrid_ItemCreated(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RecipientsGrid.ItemCreated
       If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then

            Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)
            Dim CountryCombo As RadComboBox = TryCast(editedItem.FindControl("CountryCombo"), RadComboBox)
            Dim ProvinceCombo As RadComboBox = TryCast(editedItem.FindControl("ProvinceCombo"), RadComboBox)

            AddHandler CountryCombo.ItemsRequested, AddressOf CountryCombo_ItemsRequested
            AddHandler ProvinceCombo.ItemsRequested, AddressOf ProvinceCombo_ItemsRequested

        End If
    End Sub
    Private Sub CountryCombo_ItemsRequested(sender As Object, e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)

        Dim Combo As RadComboBox = sender

        LoadCountries(Combo)

    End Sub

    Private Sub ProvinceCombo_ItemsRequested(sender As Object, e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs)

        Dim Combo As RadComboBox = CType(sender, RadComboBox)
        Dim editedItem As GridEditableItem = CType(Combo.NamingContainer, GridEditableItem)
        Dim CountryCombo As RadComboBox = CType(editedItem.FindControl("CountryCombo"), RadComboBox)

        Dim _item As New RadComboBoxItemData()

        LoadProvinces(_item.Value, Combo)

    End Sub
   Protected Sub LoadCountries(ByVal Control As RadComboBox)

        Using context As New DataEntities
            With Control
                .DataValueField = "CountryId"
                .DataTextField = "CountryName"
                .DataSource = context.Countries.OrderBy(Function(x) x.displayOrder).ToList
            End With
            Control.Width = Unit.Pixel(320)
            Control.DataBind()
        End Using

    End Sub

Boyan Dimitrov
Telerik team
 answered on 22 Oct 2012
1 answer
54 views
hii,
how can i change the editor mode to preview mode in the client
side?

thanks
Shinu
Top achievements
Rank 2
 answered on 22 Oct 2012
1 answer
72 views
hii,
 how to add new items in radcombobox from client side?

thanks
Kalina
Telerik team
 answered on 22 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?