This project is read-only.

Make Grid MVC as Heirarchy grid

Feb 28, 2014 at 5:50 AM

Thanks in advance.

I have applied Grid MVC. it was ossam.. i need one help.. i need make grid mvc as hierarchy grid

can you please help me
Mar 1, 2014 at 6:27 AM

What you mean about hierarchy grid ?
Mar 7, 2014 at 8:41 AM
Thanks for your reply..

This has been achieved using collapse and expandable using jquery..

But now mine requirement is to display the custom page size should come from application.. this thing i have done using below code

@Html.Grid(Model).Columns(...).WithPaging(ViewBag.PageSize); public ActionResult Index()
        int pagesize;
        if (!int.TryParse(Request.QueryString["pagesize"], out pagesize))
            pagesize = 5;
        ViewBag.PageSize = pagesize;
       // return view with grid model

Now you can query different page size, like


This is done Now page size is working from the pagesize dropdown onchange ..but the issue is

suppose if the grid have 10 rows, its showing the 5 records per page.. but if i select 10 from pagesize dropdown, the complete paging and pagesize dropdown is getting invisible....
Mar 14, 2014 at 2:59 PM

I dont want to display the filter for each column when the grid records count is 0 ....

Is it possible?
Mar 16, 2014 at 6:40 AM
HI, try this:
@Html.Grid(Model).Columns( ... )..Filterable(Model.Count() > 0)
Mar 17, 2014 at 3:58 PM
yes thanks, its working
Mar 17, 2014 at 3:59 PM

I need an option the collapse the grid row and need to open some descirption below the grid it possible???
Mar 22, 2014 at 11:24 AM

You can use custom javascript for that purposes