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

Microsoft JScript runtime error: Object doesn't support this property or method

0 Answers 47 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
shanker bangari
Top achievements
Rank 1
shanker bangari asked on 04 Sep 2010, 09:16 AM
Hi,



I am facing this problem i catching dropdown selected value through javascript on on click event of button

Microsoft JScript runtime error: Object doesn't support this property or method

how to solve this problem.
<asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
   
      <telerik:RadComboBox ID="RadComboBox1" runat="server"
                      HighlightTemplatedItems="true"  >
                     <Items>
            <telerik:RadComboBoxItem runat="server" Text="Jan" Value="1" />
            <telerik:RadComboBoxItem runat="server" Text="feb" Value="2" />
            <telerik:RadComboBoxItem runat="server" Text="Mar" Value="3" />
            <telerik:RadComboBoxItem runat="server" Text="Apr" Value="4" />
            <telerik:RadComboBoxItem runat="server" Text="May" Value="5" />
            <telerik:RadComboBoxItem runat="server" Text="June" Value="6" />
            <telerik:RadComboBoxItem runat="server" Text="July" Value="7" />
            <telerik:RadComboBoxItem runat="server" Text="Aug" Value="8" />
            <telerik:RadComboBoxItem runat="server" Text="Sep" Value="9" />
            <telerik:RadComboBoxItem runat="server" Text="Oct" Value="10" />
            <telerik:RadComboBoxItem runat="server" Text="Nov" Value="11" />
            <telerik:RadComboBoxItem runat="server" Text="Dec" Value="12" />
        </Items>
        </telerik:RadComboBox>
    
    
    <input id="Button1" type="button" value="button" onclick="getvalue();" />
     
     
     <script type="text/javascript" language="javascript"
function getvalue() 
  var combo = <%=RadComboBox1.ClientID %>; 
    var val= combo.GetValue(); // getting the selected value 
    var text= combo.GetText();  // getting the selected text 
}


thanks and regards 

shanker.B

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
shanker bangari
Top achievements
Rank 1
Share this question
or