This is a migrated thread and some comments may be shown as answers.
Grid JavaScript is loaded when not specified
0 Answers 8 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brendan Vogt
Top achievements
Rank 1
Brendan Vogt asked on 07 Aug 2011, 09:25 AM
Hi,

I have the following in web layout (master page):

@(Html.Telerik().ScriptRegistrar()
   .DefaultGroup(group => group
      .DefaultPath("~/Assets/telerikaspnetmvc/2011.2.712/Scripts/")
      .Add("telerik.common.min.js")
      .Add("telerik.treeview.min.js")
      .Compress(true))
   .jQuery(false)
)

On one of my views I created a grid.  But I did not specify in the ScriptRegistrar that it must use telerik.grid.min.js.  After the page has loaded in IE I viewed the source and it showed:

<script type="text/javascript" src="/Assets/telerikaspnetmvc/2011.2.712/Scripts/telerik.grid.min.js"></script>

Why would this be?  Does it load the necessary scripts as needed?

Also, I'm confused at to what JavaScripts are needed by the grids.  There are a couple, namely: telerik.grid.editing.min.js, telerik.grid.filtering.min.js, telerik.grid.grouping.min.js, etc, etc.  When are these to be used?

Thanks
Brendan
Tags
Grid
Asked by
Brendan Vogt
Top achievements
Rank 1
Share this question
or