By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,007 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,007 IT Pros & Developers. It's quick & easy.

I am getting this javascript error "unexpected call to method or property access"

P: 1
This error coming when i am using telerik grid.It works fine in asp.net grid
what i am trying to do is taking values from textbox and show in grid view...
here is the code:
Expand|Select|Wrap|Line Numbers
  1.  <script language="javascript" type="text/javascript">
  2.  
  3.         function AddItems() {
  4.             var lgrd = document.getElementById('<%=RadGrid1.ClientID%>');
  5.             var ltxtSystemId = document.getElementById('<%=txtSystemId.ClientID%>');
  6.             var ltxtReportTitle = document.getElementById('<%=txtReportTitle.ClientID%>');
  7.             var ltxtsysid = document.createTextNode(ltxtSystemId.value);  //nodevalue =ltxtSystemId.value
  8.             var ltxtRptTtle = document.createTextNode(ltxtReportTitle.value);
  9.             var tr = document.createElement("tr");
  10.             var cell1 = document.createElement("td");
  11.             var celln = document.createElement("td");
  12.  
  13.             cell1.innerHTML = ltxtsysid.nodeValue;
  14.             celln.innerHTML = ltxtRptTtle.nodeValue;
  15.             tr.appendChild(cell1);
  16.  
  17.             tr.appendChild(celln);
  18.             lgrd.firstChild.appendChild(tr);
  19.         }
  20.  
  21. </script>
  22.  
  23.  <asp:TextBox ID="txtSystemId" runat="server" ></asp:TextBox>
  24.         <asp:TextBox ID="txtReportTitle" runat="server" ></asp:TextBox>
  25.         <input type="button" id="btnMinfileNo" style="width:14%;height: 42px;" value="Add" 
  26.         onclick="return AddItems()" />&nbsp;&nbsp;
  27.  
  28.         <asp:GridView ID="GridView1" runat="server"  
  29.         Height="100px" Width="100px" >
  30.         </asp:GridView>
  31.         <telerik:RadGrid ID="RadGrid1" runat="server" >
  32.         </telerik:RadGrid>
  33.  
Nov 24 '09 #1
Share this Question
Share on Google+
1 Reply


Plater
Expert 5K+
P: 7,872
Sounds like a question for telerik, since it's not a native .NET object.
My guess is you're calling a function not available on that grid object.
Nov 24 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.