Questions tagged [webgrid]

WebGrid is a view control built in to the ASP.NET Web Pages Framework. It displays a sortable, pageable HTML grid given a collection, and is customizable in various ways, making use of .NET 4.0's "dynamic" object type.

The ASP.NET Web Pages WebGrid provides a kind of quick-scaffolded functionality for displaying tabular information in ASP.NET Web Pages, or ASP.NET MVC when using the Web Pages (Razor) view engine. Given an IEnumerable data source, it is possible to construct a functional HTML data table, with sorting and paging, with a single line of code in the View (Razor syntax, for example):

@( new WebGrid(data).GetHtml() )

The control offers customization of various styling, sorting, and paging functionality; as well as the ability to define the column contents either as raw data, or as templated HTML.

822 questions
-1
votes
1 answer

how to refresh part of MVC view on a button click?

I have a div in MVC view which has a webgrid binded to a model. On initial page load the gird is perfectly populated by Model data but when I click the button on the same page the grid should be be updated by search values which is not happening.…
user8811
  • 75
  • 1
  • 2
  • 12
-1
votes
1 answer

How Use WebGrid In orchard

i am try to use WebGrid class in Orchard .BUt it not Accessible on .csHtml page.i have added System.Wed.Helpers nameSpace on .csHtml page But it is not working. please help me How we Done this in orchard thanks in advance
user2797910
  • 61
  • 2
  • 11
-1
votes
2 answers

How to export MVC webgrid results to pdf and excel directly without using any third party control?(iTEXtSharp i not working)

I have tried itextsharp samples and the serializing to xml . Am using Entity frame work 6.0 and asp.net mvc4
amshekar
  • 31
  • 2
  • 7
-1
votes
1 answer

Display WebGrid data as a link

@{ var grid = new WebGrid(Model.lstTravelReadyEntities, canPage: true, rowsPerPage: 3,ajaxUpdateContainerId:"table"); grid.Pager(WebGridPagerModes.NextPrevious); @grid.GetHtml(htmlAttributes:new{id="table"}, …
user2514925
  • 931
  • 8
  • 33
  • 56
-1
votes
1 answer

Fetch all the value from database to webgrid of ASP MVC ASPX

Hi I am getting only the last value from the database in the webgrid. I have used foreach to get all the value from the database and binded it to the webgrid but it is showing only the last value in the webgrid . Please guide me var listobject =…
Anish
  • 768
  • 3
  • 12
  • 34
-1
votes
1 answer

Which is best method to use tab in asp.net mvc 3?

i must use tab in my view, to manage different type of information. Now i'm using a webgrid, but i've a problem about a calling method. I must to view different data from a tab to another tab. I do it using a method which has an id as parameter. how…
-2
votes
1 answer

custom filter on each column in webgrid MVC

I need to implement custom column in-built filtering for each columns of webgrid MVC. Currently, all the examples have a search text box which filters out the records. However, I would like to have a filter on each column in the grid separately.
Ponni
  • 443
  • 1
  • 7
  • 20
-2
votes
1 answer

Add a blank row or Merge a cell in Webgrid using MVC

Is it possible to merge rows and columns dynamically based on our condition by using WebGrid. If possible how can i achieve it? TIA
-2
votes
2 answers

How to update many links in a web page

I am using MVC webgrid and an artifact of navigating the page is I have lots of urls that look like like: I…
jlo-gmail
  • 4,453
  • 3
  • 37
  • 64
-2
votes
1 answer

WebGrid doesn´t update when binding to a ViewModel

I´m making a site using MVC 3 and razor engine. I have a WebGrid that has a ViewModel as it´s source that it´s not updating. Weird thing is that it only updates when I recompile the project, and I wanted to update it with an ajax call or at the very…
-3
votes
1 answer

How to store multiple rows in MVC Razor webgrid before submitting to database

I need to hold multiple rows in a web grid added from Html Form without saving to database. At last I will insert/update web grid rows to database when user clicks on submit button.
-3
votes
1 answer

{"Input string was not in a correct format."}

protected void UpdateCustomer(object sender, GridViewUpdateEventArgs e) { string CustomerID = ((Label)GridView1.Rows[e.RowIndex] .FindControl("lblCustomerID")).Text; string Name = ((TextBox)GridView1.Rows[e.RowIndex] …
Zeeshan Rizvi
  • 57
  • 1
  • 9
1 2 3
54
55