Questions tagged as 'webgrid'

1
answer

How to call column name from another class in the MVC WebGrid

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: this.RowsPerPage, ajaxUpdateConta...
asked by 17.08.2015 / 21:55
2
answers

MVC - Is it possible to place an EditorFor inside a column in Webgrid?

I have a EditorTamplate and I need to put a EditorFor , using this EditorTemplate , as a column inside Webgrid . How could I do this? I tested the form below and gave the error shown in the image.     
asked by 16.09.2015 / 22:35
1
answer

HTML attributes in webgrid lines

Is it possible to include the data-id-tarefa="@item.id" attribute within each TR using the WebGrid? I can include in the JavaScript the attribute, but all the TRs return the same value of the id inside the attribute and what I need is the...
asked by 11.06.2015 / 13:55
1
answer

Change the color of a td tag of a WebGrid mvc

This is WebGrid and you need to change the background color of Celula filled "IN PROCESSING": to Red : CSS<styletype="text/css"> .grid { margin: 4px; border-collapse: collapse; width: 100%;...
asked by 24.05.2017 / 14:59
1
answer

How 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, that is, sometimes it returns 5 columns and then it can return 6 colunass, how to do?     
asked by 09.05.2017 / 20:56
2
answers

WebGrid with RadioButton

I want to select a WebGrid line through a RadioButton and click the Preview button, / em> with the selected line information. How do I pass information from the selected line to controller ? CSHTML: @model IEnumerable<WebA...
asked by 21.01.2017 / 21:50
1
answer

Error traversing table html with jquery

I have a HTML table and I need to get the values of value='1' data-chkIdProcessamentoDiario='1' data-chkIdRegistro='1' and assign in an array, but the problem is that each does not go through table html , although the browser l...
asked by 31.05.2017 / 22:24
1
answer

How to format currency column of a WebGrid?

How to format the Value column of the WebGrid? Example of 3000,000 for 3,000.00 ? @grid.GetHtml( tableStyle: "webgrid", headerStyle: "header", alternatingRowStyle: "alt", selectedRowStyle: "select", footerStyle...
asked by 14.02.2016 / 21:54
1
answer

Dynamically hiding a column from a WebGrid

How can I hide a WebGrid column at run time ? For example, I want to hide the Parametro column, it would look like this: grid.Column("Empresa", "Empresa"), if(item.valor1 == X){ grid.Column("Parametro", "Parametro"), } gri...
asked by 14.06.2017 / 20:23
1
answer

Error when paging using PagedList with ListDinamyc

I'm trying to paginate a WebGrid using PagedList but a conversion error occurs:    Additional information: Can not implicitly convert type   'PagedList.PagedList' in   'System.Collections.Generic.List' I do not know if it occurs becau...
asked by 12.06.2017 / 21:13