Hello,
I'm having a problem with the javascript functions set_text() and get_text() functions.
Below is a simple page to demonstrate. When I click the button I get an error saying " Object doesn't support this property or method"
I've already searched the forums but none of the existing topics helped me out.
Thanks in advance for any tips!
Regards,
Jasper
I'm having a problem with the javascript functions set_text() and get_text() functions.
Below is a simple page to demonstrate. When I click the button I get an error saying " Object doesn't support this property or method"
I've already searched the forums but none of the existing topics helped me out.
Thanks in advance for any tips!
Regards,
Jasper
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Tests_Test" MasterPageFile="~/MasterPageEmpty.master" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <%@ MasterType VirtualPath="~/MasterPageEmpty.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script language="javascript" type="text/javascript"> function Test() { var combo = $find('<%=RadComboBox1.ClientID%>'); alert(combo.get_Text()); } </script> </telerik:RadScriptBlock> <atlas:UpdatePanel ID="UpdatePanel" runat="server"> <ContentTemplate> <telerik:RadComboBox ID="RadComboBox1" runat="server" DataTextField="CompanyName" DataValueField="ID" ItemRequestTimeout="500" Height="300px" NoWrap="true" ShowDropDownOnTextboxClick="false" EnableLoadOnDemand="True" EnableItemCaching="true" OnItemsRequested="OnSupplierItemsRequested" > </telerik:RadComboBox> <button onclick="Test()">Test</button> </ContentTemplate> </atlas:UpdatePanel> </asp:Content>