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

jQuery("#grid").tGrid is not a function

5 Answers 169 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amit
Top achievements
Rank 1
Amit asked on 25 Feb 2011, 08:59 AM
I'm loading telerik grid under Jquery Tab control and I've been getting the following error:

jQuery("#grid").tGrid is not a function

I'm making an AJAX call from tab, to load dynamic contents exists in custom control that contains Telerik Grid. I've ensured that I've got the following command in that control:


<% Html.Telerik().ScriptRegistrar().jQuery(false).Render(); %>

I've all permutation that I know but none is working well.  


I've been trying to be in promoting Telerik for MVC projects, as we have been using for long time under Recrutlive/ MVS Global company and bought many licenses. However, it seems that I cannot go and buy MVC this time.

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Feb 2011, 09:18 AM
Hi Amit,

 The grid JavaScript files are not loaded in this case. I suggest you check this help article.

All the best,
Atanas Korchev
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Gurpreet
Top achievements
Rank 1
answered on 19 Jul 2011, 03:51 PM
Hi
I'm using the MVC Razor to build my project.

I'm using a tab strip and on clicking on one of the tabs, I call a partial view which will load the telerik grid.

When I click the tab, I get the following error.
"jQuery("#grid").tGrid is not a function"

I have added the required js and css files in the layout page. At all other pages, the grid is working perfectly fine. Please suggest me what I'm missing here.

Thanks
Gurpreet Bhalla
0
Gurpreet
Top achievements
Rank 1
answered on 19 Jul 2011, 04:35 PM
Hi

I found the solution.

I was missing the js files in the layout page.


Thanks
0
Naveen
Top achievements
Rank 1
answered on 14 Sep 2011, 05:47 AM
  @Html.Telerik().ScriptRegistrar()


Add this at the end of the code. the issue ll be fixed
0
Eugene
Top achievements
Rank 1
answered on 10 Oct 2011, 09:40 AM
Had the same problem:
@(Html.Telerik().ScriptRegistrar()...  call on the _LayoutPage 
and ".tGrig in not function" on the view.

Problem cause: concrete ViewPage had duplicates of links (same links where on _LayouPage) like that:
 <script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")"  type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")"  type="text/javascript"></script> and other.

Removing link duplicates solved my problem.
Tags
Grid
Asked by
Amit
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gurpreet
Top achievements
Rank 1
Naveen
Top achievements
Rank 1
Eugene
Top achievements
Rank 1
Share this question
or