webgrid Questions
10
Solved
The code below will insert an actionlink into one of the web grids' columns.
@{
View.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
var usersGrid = new WebGrid(source: Model,
row...
Fatimafatimah asked 29/11, 2010 at 18:14
8
Solved
I have the following in my view
@using (Ajax.BeginForm("Search", "Home", null,
new AjaxOptions
{
InsertionMode = InsertionMode.Replace,
HttpMethod = "POST",
UpdateTargetId = "gridContent",
}...
Bemoan asked 8/3, 2014 at 16:59
2
Solved
I have an HTML table (generated by an MVC WebGrid) that is 5 columns across. What I want is the first 4 columns to take up 100% of the width and the 5th column to sit underneath also taking up 100%...
Burke asked 13/5, 2015 at 14:5
2
Solved
I have a Car class that I'm trying to display in an MVC 3 view using the WebGrid helper. Below are the Car and it's metadata class.
Car class:
[MetadataType(typeof(CarMetadata))]
public partial ...
Textbook asked 9/3, 2011 at 18:55
4
I'm experimenting a bit with several grids in asp.net mvc.
Microsoft has a grid too know in the prerelease of mvc 3 so I thought I'll try that one out.
The basic functionality is quite easy to imp...
Clodhopper asked 23/12, 2010 at 10:49
4
Solved
I have a web grid and I am not using razor syntex.Rather I am using the .aspx form.
the code is below;
<%
var grid = new WebGrid(Model,defaultSort:"PublishDate",rowsPerPage:10);
%>
<%:...
Insurmountable asked 6/9, 2011 at 22:1
3
Solved
I've implemented a WebGrid. Sorting, paging and filtering do not work together. They work when you use them alone. When you combine the three, at the same time, filtering doesn't work.
The symptom...
Dillondillow asked 7/4, 2012 at 4:37
2
Solved
I am using webgrid in my razor view in MVC 3.
Below is how my webGrid looks, I want to make the entire row clickable and on click pass values to the javascript method also.
I am able to achieve c...
Rhetor asked 4/5, 2012 at 8:53
8
Solved
I have the following WebGrid in my ASP.NET MVC3 test application. It displays a list of customers:
@grid.GetHtml(
tableStyle: "grid",
headerStyle: "head",
alternatingRowStyle: "alt",
columns: grid...
Guillaume asked 29/5, 2011 at 13:10
3
Solved
I'm using the new MVC3 WebGrid. So far so good, just having issues styling/formatting the column headers. The best I've got is a workaround that applies the same css class from the first row of the...
Edsel asked 1/2, 2011 at 23:27
3
Solved
I am able to use WebGrid in any controller like:
var grid = new WebGrid(emailsFetched, columnNames);
I had to add a reference in my ASP.NET MVC project to System.Web.Helpers for this.
But when I...
Patrilocal asked 14/6, 2012 at 23:5
4
I have a Partial View that renders WebGrid. My controller looks like
public ActionResult Index()
{
return View();
}
public ActionResult GetUserList(int? page, string sort, string sortdir)
{
var...
Marya asked 11/5, 2011 at 17:26
1
Solved
I am looking for some tutorial or solution that shows how can I make a Webgrid with few advanced functionalities at once: paging, sorting, edit and delete buttons for every row, checkboxes for ever...
Maxia asked 6/3, 2015 at 10:10
2
Solved
I am trying to use a Webgrid and I can get the data to display but the bool values are where I'm having problems. I would like to just display a checkbox that has the value of my bool. I have been ...
Stertorous asked 17/5, 2012 at 16:24
3
Solved
I have a webgrid and there is a column I want to be visible only to certain users.
Currently I have coded the grid as follows
if (Context.User.IsInRole(Role.Inputter) || Context.User.IsInRole(Role...
Yseult asked 24/8, 2011 at 8:15
6
I'm reading and hearing some pain points and am wondering if I should even go that route. Not to mention, I cannot seem to find any definitive documentation (from Microsoft). If you say I shouldn't...
Boat asked 9/2, 2011 at 5:26
2
public class UserDetailsModel
{
public int ID { get; set; }
public string LoginID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string IsDel...
Leukas asked 19/4, 2013 at 14:26
5
Solved
How to put a condition (if else) in webgrid column?
@grid.GetHtml(tableStyle: "table table-bordered",
columns: grid.Columns(
grid.Column("RealName", "Name"),
grid.Column("UserName", "Email")
)...
Zippel asked 24/12, 2013 at 10:1
3
Solved
I have a Webgrid with with many coloumn.
One of the column is for due date.
I need to change each entries color depending upon condition.
Depending on condition i have added a color code property c...
Breadthways asked 14/2, 2012 at 4:11
2
Solved
I am using a WebGrid to display a List of Items, some items in the list are disabled, so I would like to make it dimmed in the grid, to do that I must set the row class to be dimmed if the item is ...
Malatya asked 1/11, 2011 at 10:19
4
Solved
I am trying to learn Asp.net mvc. I know its different from forms and i need to change my way of thinking probably. My problem is about webgrid . When i add webgrid to my page and hit search button...
Lum asked 14/6, 2011 at 13:8
1
Solved
I am using the System.Web.Helpers.WebGrid extensively throughout our application, and for the most part it is fine and in fact running locally it is always fine or with a self SSL on the server it ...
Renwick asked 7/3, 2013 at 11:30
2
I am creating a project in mvc which uses webgrid. In the webgrid I have two columns namely Status and IsActive.
The status column can contain only two values: checked or unchecked.Both these valu...
Eslinger asked 11/3, 2013 at 6:10
2
Has anyone implemented inline editing using the MVC 3 WebGrid helper? I've done a lot of searching on the topic, but haven't found much in the way of suggestions. Also, I'm not in the position of u...
Thyratron asked 6/9, 2011 at 22:50
2
I'm trying to use the WebGrid html helper in ASP.NET MVC 3 to autogenerate the columns according to the information found in the ModelMetadata. For example the code in a view that accepts a list of...
Oast asked 2/2, 2011 at 12:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.