Questions tagged [mvcgrid.net]

A grid for ASP.NET MVC and Bootstrap with ajax paging and sorting. Also has filtering support, export to csv, back button support, and graceful degradation.

A grid for ASP.NET MVC and Bootstrap with ajax paging and sorting. Also has filtering support, export to csv, back button support, and graceful degradation.

The primary goal of this project is to provide the core grid functionality, along with a very simple and easy-to-use client-side API to allow you to easily add the additional front-end interaction you need. You can add it to your project very easily and get it running with minimal effort, but it also has the extensibility to customize when needed.

You configure your grids on app start, and provide a function callback to actually query your data. The library will handle the ajax requests. It will parse and validate the requested options and then pass the QueryOptions to your function to retrieve the data.

http://mvcgrid.net

35 questions
0
votes
1 answer

Get all data from gridmvc including all paging in javascript?

I am trying to fetch data from gridmvc and show graphs using chart.js its working fine but issue is that its showing just with pages. Because i have enabled paging in grid and when i click on next page then next grid data page graphs show, but i…
0
votes
1 answer

Change file extension on gridmvc.net for csv download

Is there anyway to change the file extension on a csv download from mvcgrid? It downloads as .csv and i'd like .txt to stop my users from opening the contents in excel? I can see there is a custom rendering engine, but that seems to offer file…
0
votes
1 answer

MVCGrid.Net - Paging not limiting results or page numbers not showing

I am using MVCGrid.Net and I am trying to add pagination to the grid, Here is my code: GridDefinition def = new GridDefinition(); GridColumn ID = new GridColumn(); ID.ColumnName = "ID"; ID.HeaderText…
user979331
  • 11,039
  • 73
  • 223
  • 418
0
votes
0 answers

How to properly encode strings for ASP.NET MVC Website using MVCGrid.net and C#

I am having a very annoying issue that I so far don't know how to solve. I am building a website using ASP.NET MVC and C# which shows a table to the user. The data comes from a MS SQL database and I am using MVCGrid.net to create the table. Here is…
Chris
  • 1,417
  • 4
  • 21
  • 53
0
votes
1 answer

MVCGrid.net - Keep column header and sort icon in one line

I am using MVCGrid.net in my ASP.NET MVC website and in some cases when there is not enough space the grid will move the header of a column either on top or below of the sort icon on the right to it. Here is an example: Is there any way to force…
Chris
  • 1,417
  • 4
  • 21
  • 53
0
votes
1 answer

MvcGrid Checkbox with Textbox not showing the right textbox value

I had a scenario: My MVCGrid View Image: This my Html Javascript Code: $('#btn_preview_').click(function(){ Validate() }); function Validate() { $('.mvcGrid table tr').each(function () { …
Vijunav Vastivch
  • 4,153
  • 1
  • 16
  • 30
0
votes
1 answer

Search parameter in MVC 5

I'm trying to figure out one of package in ASP.Net MVC 5 called MVC.Grid. I have model like below : public class MasterCustomer { public System.Guid Id { get; set; } public string Code { get; set; } public string Name { get; set;…
Jun Rikson
  • 1,964
  • 1
  • 22
  • 43
0
votes
1 answer

MVCGrid.Net Paging unregistering jQuery event

I have a document ready event registering a click event on the grid, everything works fine on page load however after I use pagination to move to the next page, the event is unregistered. Is this a known issue or does anyone know how to re-register…
Mike Ike
  • 51
  • 1
  • 6
0
votes
1 answer

MVCGrid.net MVCGridConfig.vb example

Are there any examples available of MVCGrid.net using VB.NET? Tried a number of methods, like this... MVCGridDefinitionTable.Add("EmployeeGrid", New MVCGridBuilder(Of…
gchq
  • 1,603
  • 2
  • 27
  • 52
0
votes
1 answer

MVCGrid.Net How can I inject a service in the MVCGridConfig class using Ninject?

I use Ninject as a dependency injector for my ASP.Net MVC application. However, MVCGridConfig is a static class. How can I inject my ICoursesService in the MVCGridConfig class in order to retrieve the necessary data for the table? Thank you very…
MiBuena
  • 451
  • 3
  • 22
0
votes
1 answer

MVC.Grid : how to call @Html.AjaxGrid using jquery

I am working on Mvc.Grid (Grid.MVC5) and using its ajax-grid. To call ajax-grid we have to call partial view from view as given below:- @Html.AjaxGrid(Url.Action("AjaxGrid", new { tableName = "", type = ""})) Can we call it using jQuery, I have…
0
votes
1 answer

Stop page refresh after filtering grid in mvc.grid

I am using Mvc.Grid (Grid.MVC5), I want to stop its page refresh which is automatically called after using any filter. Is it possible? View :- @model IEnumerable< MVC6_Grid_with_filters.Models.SchemeMaster> @using NonFactors.Mvc.Grid; @{ Layout…
Sunil Chaudhary
  • 397
  • 1
  • 9
  • 31
0
votes
1 answer

mvcgrid.net unable to use toolbar

I'm working on a website with a feature that can sort users. I'm using mvcgrid.net libs but I can't figure it out. the toolbar doesn't work. I used most of the basic source codes from mvcgrid.net but when i press something in the search bar it…
Ties Theunissen
  • 136
  • 2
  • 16
0
votes
2 answers

MVCGrid.net - Grid doesn't page results, shows all records and pager also

The grid is being displayed which has pager enabled but displays all records without paging. Also the pager is displayed. Code for RegisterGrid() method is as below:- public static void RegisterGrids() { GridDefaults defaultSet1…
0
votes
1 answer

keep status in mvcgrid.net

Mvcgrid.net works nicely. I know how the grid keeps its status in the following example: http://mvcgrid.net/demo/formatting after clicking "view" button in a row: he uses back in browser. I'm trying to do the same thing, using the same controller…
Emanuele
  • 648
  • 12
  • 33