Declined
Last Updated: 12 Apr 2019 12:48 by ADMIN
David
Created on: 05 Apr 2019 22:50
Category: Grid
Type: Feature Request
0
Grid Search and Column sizing functionality

Unless I am missing it somehow, I do not think the Grid control ( I was specifically using the MVC Grid control) does not support

 

1. A search feature that searches all rows and columns for the supplied text.  I know you can use the filter at the top of each column to search just that column but looking for ability to search the entire dataset.

 2.  Ability to set the column widths as a percentage of the total space available.  It looks to me like it only allows a specific px setting.

 

These would be good adds.  If either of these are currently possible and I missed it somehow, would appreciate response regarding how to achieve this.

 

Thanks,

David. 

1 comment
ADMIN
Konstantin Dikov
Posted on: 12 Apr 2019 12:48
Hello David,

It is possible to set the width of the columns to percentage values, even with the MVC helper:
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()   
    .Name("Grid")   
    .Columns(columns => {       
        columns.Bound(p => p.ProductName);
        columns.Bound(p => p.UnitPrice).Width("10%");
        columns.Bound(p => p.UnitsInStock).Width("10%");
        columns.Bound(p => p.Discontinued).Width("10%");
    })
    .Resizable(r=>r.Columns(true))
    .Scrollable()
    .DataSource(dataSource => dataSource       
        .Ajax()        
        .PageSize(20)
        .Read("Editing_Read", "Grid")
    )
)

As for the global search, the only option for achieving this is with custom logic that uses one input element outside of the Grid to create multiple filter expressions. Nevertheless, we are currently investigating the possibility of creating a built-in global search option. You could give a vote for the logged public item for that feature request:


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.