This is a migrated thread and some comments may be shown as answers.

Clean Url ???

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bao Hoang
Top achievements
Rank 1
Bao Hoang asked on 17 Aug 2012, 12:33 PM
Hi guys,
Great job with the UI and Keep on the good work.
I have a thought about the Url when I combine using the grid filterable, groupable etc very unclean.
And my question is that there are some ways I can make the Url little cleaner somehow ? 

http://localhost:55517/Assignment/Completed?Grid-page=1&Grid-orderBy=~&Grid-groupBy=CreatorCaption-asc&Grid-filter=~&Grid-size=10 

Regards

Your Unique Customer ID is: RM917591

1 Answer, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 2
answered on 20 Aug 2012, 04:29 PM
I am trying to figure this out as well.  I have seen the demos, but am getting the same messy URL's as well on my grids.  

I am binding my grid to my IEnumerable model

@(Html.Kendo().Grid(Model)      //The grid will be bound to the Model
      .Name("productGrid")   //"id" attribute
      .Columns(columns =>
      {
          columns.Bound(p => p.Date).Format("{0:MM/dd/yyyy h:mm tt}");
          columns.Bound(p => p.Customer.CustomerName);
          columns.Bound(p => p.Total).Format("{0:C}");
      })
     .Pageable() //Enable paging
)

Any help is greatly appreciated.
Tags
Grid
Asked by
Bao Hoang
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 2
Share this question
or