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

1 posts, 0 answers
  1. shanker bangari
    shanker bangari avatar
    106 posts
    Member since:
    Jan 2010

    Posted 04 Sep 2010 Link to this post

    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
Back to Top