15,903,385 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13461662 (Top 7 by date)
Member 13461662
13-Oct-17 15:22pm
View
It's working now..I did two mistakes.
1.order of the scripts.i have changed all scripts to header part of the layout page.earlier few scripts was rendering below the body part.
2.jqGrid id "Importtbl", i was mentioned it as class.
Thank you so much Bryian for your support.
Member 13461662
13-Oct-17 14:01pm
View
I have removed all the scripts related to jquery css,jqgrid,migrate and browser.js.
and uncommented the jquery scripts in bundle.config.
I got error saying "Uncaught TypeError: $(...).jqGrid is not a function"
Then I added JqGrid related plugins jqgrid.css,grid.locale-en.js,jqgrid.min.js in layout page after rendering the jquery scripts from bundle.config.
I got error saying " Cannot read property 'msie' of undefined"
Then I added jquery-migrate-1.4.1.js file in layout page before jqgrid scripts.
It's showing like warning msg"JQMIGRATE: jQuery.browser is deprecated" and not calling importDATA method.
Now I am not using jquery.mb.browser.js.still i have issue..
Member 13461662
13-Oct-17 13:27pm
View
Do you want me to remove below scripts..?
jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.css
jquery.jqGrid-3.8.2/css/ui.jqgrid.css
jquery-3.2.1.min.js
jquery-migrate-1.4.1.js
jquery.mb.browser.js
jquery.jqGrid-3.8.2/js/i18n/grid.locale-en.js
jquery.jqGrid-3.8.2/js/jquery.jqGrid.min.js
Member 13461662
13-Oct-17 11:56am
View
This is my BundleConfig.cs
public static void RegisterBundles(BundleCollection bundles)
{
//bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
// "~/Scripts/jquery-{version}.js"));
//bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
// "~/Scripts/jquery.validate*"));
//// Use the development version of Modernizr to develop with and learn from. Then, when you're
//// ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/modernizr-*"));
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
"~/Scripts/bootstrap.js",
"~/Scripts/respond.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
}
I have commented Jquery scripts.because i am using scripts from layout.But I am using bootstrap and css from bundle which is rendered in layout page
Member 13461662
13-Oct-17 11:46am
View
I don't know some how my scripts are not posting here.
But i am using below scripts in layout page after
Styles.Render("~/Content/css")
jquery-ui-1.12.1.custom/jquery-ui-1.12.1.custom/jquery-ui.css
jquery.jqGrid-3.8.2/css/ui.jqgrid.css
jquery-3.2.1.min.js
jquery-migrate-1.4.1.js
jquery.mb.browser.js
jquery.jqGrid-3.8.2/js/i18n/grid.locale-en.js
jquery.jqGrid-3.8.2/js/jquery.jqGrid.min.js
Thank you so much for your response.
Member 13461662
13-Oct-17 11:44am
View
Deleted
Member 13461662
13-Oct-17 11:39am
View
This is my layout page
<!DOCTYPE html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
@Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
@Html.ActionLink("Home", "Index", "Home")
@Html.ActionLink("About", "About", "Home")
@Html.ActionLink("Contact", "Contact", "Home")
@Html.Partial("_LoginPartial")
@RenderBody()
© @DateTime.Now.Year - My ASP.NET Application
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
I am using this layout page in my view.
I am just trying to see empty table.instead of data. JqGrid is not calling ImportData method.
-----Controller.cs
public ActionResult Index()
{
return View();
}
[HttpGet]
public ActionResult ImportData(int rows,string sidx,string sord,int page)
{
return Json(null,JsonRequestBehavior.AllowGet);
}
Show More