Questions tagged [razor-grid]

9 questions
6
votes
2 answers

Display raw HTML using WebGrid in ASP.NET MVC 3

I have a grid like this: WebGrid grid = new WebGrid(source: Model, rowsPerPage: 5, ajaxUpdateContainerId: "GridContainer"); Now, I want to display "MyContent" column as raw HTML. What should I do?
Triet Doan
  • 11,455
  • 8
  • 36
  • 69
1
vote
0 answers

MVC3 razor Webgrid -retaining page after a delete

On my MVC3 razor page, I am using a webgrid to show a list of approx 100 plus records. I am setting a page size to 10 and paging and sorting is working fine. My only issue here is on my page I have a "delete" hyperlink on the webgrid. When I click …
Steve
  • 1,471
  • 7
  • 19
  • 32
1
vote
1 answer

WebGrid Alignment in MVC3 with RAZOR

I want to set different - different width and alignment in all the columns in WEBGRID in MVC 3. It means that In the above code I have 5 columns now I want to set different alignment and width of all the headers. Below is my code : @{WebGrid grid =…
RKK
  • 367
  • 1
  • 5
  • 10
1
vote
1 answer

OnMouse event Tooltip for @Html.Grid

I use MVC3 Grid to show Events. What I need is somehow integrate on mouse event for the "NAME" to show "Description" of the item. How do I can implement? Thanks for any clue!!! @{ var grid = new WebGrid(source: Model.Events, …
NoWar
  • 36,338
  • 80
  • 323
  • 498
0
votes
1 answer

How to add a clickable font-icon (like FontAwseome) to a Html.Grid?

I could not find the answer anywhere, but i ended up with a solution described below. If anyone knows a 'better' way...
Sander_P
  • 1,787
  • 1
  • 13
  • 37
0
votes
1 answer

How to assign ViewData as source for WebGrid

In mvc4 i am getting Sample table value by ViewData in controller action.How can i pass that ViewData as source for WebGrid. ViewData["SampleList"] = new List(db.roles); Please help me.
user2285613
  • 199
  • 1
  • 8
  • 17
0
votes
1 answer

Pagination in Partial View

I'm displaying dynamically selected columns as a grid(using webgrid) in partial view.When i perform paging on partial view webgrid,that partial view grid alone loading again in new page.I want to get the pagination for partial view without…
0
votes
1 answer

validation is not firing on textbox in RAZOR?

1below I have posted my total coding of view. Here validation is not firing on the textbox. I dont know how to sort out this problem. This view is executing. if I press the search textbox without entering the text in textbox, its not…
Sham
  • 1,191
  • 2
  • 13
  • 25
0
votes
1 answer

Computed column on a MVC3 razor Webgrid

Here is my webgrid .I am trying to add a column "EndDate" which displays a calculated value var grid = new WebGrid(canPage: true, rowsPerPage: Model.PageSize, canSort: true, ajaxUpdateContainerId: "grid"); grid.Bind(Model.MyRecords, rowCount:…
Millar
  • 1,095
  • 6
  • 16
  • 34