Most voted "webgrid" questions
Webgrid is an implemented helper for the HTML engine Razor, used to create Grids in ASP.NET MVC applications.
Learn more…11 questions
Sort by count of
-
3
votes1
answer196
viewsHow to call another class column name in Webgrid MVC
I have this view Listar.cshtml @model IEnumerable<ODM> @{ var idGrid = "grid" + this.ViewBag.IdParameters ?? string.Empty; var grid = new IBM.Web.Helpers.WebGrid(id: idGrid, rowsPerPage:…
-
3
votes0
answers26
viewsHow to check all Checkboxs on my Grid? Not just the first pagination
var grid = new WebGrid( canPage: true, rowsPerPage: 10, selectionFieldName: "selectedRow", ajaxUpdateContainerId: "gridViewCV", ajaxUpdateCallback: "ajaxWebGrid"); var columns = new…
-
2
votes1
answer69
viewsHTML attributes on webgrid lines
It is possible to include the attribute data-id-tarefa="@item.id" within each TR using Webgrid? I can include the attribute by Javascript, but all the Trs return me the same value of the id within…
-
1
votes2
answers174
viewsWebgrid with Radiobutton
I want to select a line from Webgrid through a Radiobutton and by clicking the button Visualise, carry a partial view with the information of the selected line. How do I pass the information from…
-
1
votes1
answer242
viewsHow to create a webgrid with dynamic columns?
I saw several examples using Webgrid but all with the number of fixed columns. My data source will return a dynamic list, IE, either returns 5 columns and then can return 6 columns, how to do ?…
-
1
votes1
answer468
viewsChange the color of a Webgrid mvc <td> tag
That’s the WebGrid and I need to change the background color of Celula filled in "IN PROCESSING": for Red: CSS <style type="text/css"> .grid { margin: 4px; border-collapse: collapse; width:…
-
0
votes1
answer143
viewsHow to format Webgrid Currency column?
How to format the column Valor of Webgrid ? Example of 3000,000 for 3,000.00 ? @grid.GetHtml( tableStyle: "webgrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select",…
-
0
votes1
answer195
viewsDynamically hide a Webgrid column
How can I hide at runtime a column from Webgrid ? For example, I want to hide the column Parametro, it would be something like that: grid.Column("Empresa", "Empresa"), if(item.valor1 == X){…
-
0
votes1
answer89
viewsError while paging using Pagedlist with List<Dinamyc>
I’m trying to make a pagination of a Webgrid using Pagedlist but there is conversion error: Additional information: Cannot convert type implicitly 'Pagedlist.Pagedlist' in…
-
0
votes1
answer172
viewsError creating a condition in Webgrid’s Html.Raw
I am trying to put a condition in a Webgrid line and the following error occurs: Cannot convert lambda expression to type 'string' because it is not delegate type Even based on this post Variable…
-
0
votes1
answer65
viewsError going through table html with jquery
I have a table HTML and I need to take the values of value='1' data-chkIdProcessamentoDiario='1' data-chkIdRegistro='1' and assign in an array, but the problem is that apparently the each does not…