Hi there
I don't seem to get clientside stuff to work. What am I missing? (still running under trial)
Here is mu code:
It throws and error at combo.GetText();
Microsoft JScript runtime error: Object doesn't support this property or method
For the dynamixc content, it did resolve <%=...ClientId%>
var combo = RadComboBox1;
var projectId = combo.GetText();
when I do an alert(combo); it does return [object]..so I assume it worked correct up to here.
I don't seem to get clientside stuff to work. What am I missing? (still running under trial)
Here is mu code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> |
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<head runat="server"> |
<title>Untitled Page</title> |
</head> |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<div> |
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="SqlDataSource1" |
DataTextField="Text" DataValueField="Value" Skin="Vista"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</telerik:RadComboBox> |
<script type="text/javascript" language="javascript" > |
var combo = <%=RadComboBox1.ClientID %>; |
var projectId = combo.GetText(); |
alert(projectId); |
</script> |
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RemoteSqlServerData %>" |
SelectCommand="SELECT [value], [text] FROM [vProject]"></asp:SqlDataSource> |
</div> |
</form> |
</body> |
</html> |
It throws and error at combo.GetText();
Microsoft JScript runtime error: Object doesn't support this property or method
For the dynamixc content, it did resolve <%=...ClientId%>
var combo = RadComboBox1;
var projectId = combo.GetText();
when I do an alert(combo); it does return [object]..so I assume it worked correct up to here.