Make Grid MVC as Heirarchy grid

Feb 28, 2014 at 4:50 AM
Hi,

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
Coordinator
Mar 1, 2014 at 5:27 AM
Hi,

What you mean about hierarchy grid ?
Mar 7, 2014 at 7: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


/?pagesize=10

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 1:59 PM
Hi,

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

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

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

You can use custom javascript for that purposes