- Home
- Forum
- ASP.NET MVC
- Some questions about functionalities of the Grid control.
Some questions about functionalities of the Grid control.



Thanks for using Syncfusion products.
Please find the response in below table.
| Queries | Response | |
| 1. Is there any way to put a dropdownlist instead of the input text on the filter toolbar? | We considered this requirement “DropDown list instead of text box in filter bar” as feature and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates. https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents | |
| 2. How can I put some text near the icons on the filter toolbar? Is that possible? | Based on your requirement we have created a sample to display the text with icon in toolbar and it can be downloaded from following link location. Sample Link: https://www.syncfusion.com/downloads/support/forum/119285/ze/MVCGrid_119285-558875397 In the above sample we have used actionComplete event to append the text in toolbar. Please refer the following code snippet.
| |
| 3. And finally, This Grid control supports adding some header title on the top of the grid? | Currently, we don’t have any inbuilt support to provide Tile and Subtitle for Grid control. But we can achieve your requirement by placing html elements, that holds the title before the Grid. Please refer the below code snippet.
|
Please try the above sample and get back to us if you have any concerns.
Regards,
Sellappandi R

Thanks for the update.
We have analyzed your requirement deeply and achieved your requirement in filter bar. We have rendered dropDown to filter bar of EmployeeID column. Please refer the following code snippet.
| <script> function create(args) { var employeeFilter = this.getHeaderTable().find(".e-filterbar #EmployeeID_filterBarcell"); employeeFilter.parent().removeClass('e-filterdiv'); employeeFilter.ejDropDownList({ width: '100%', showCheckbox: true, popupHide: "drppopuphide" }); $.ajax({ url: '/Grid/DataSource', type: 'post', async: false, success: function (data) { employeeFilter.ejDropDownList({ dataSource: data }); } }) } function drppopuphide(args) { var value = args.text.split(','); var filter = []; for (var i = 0; i < value.length; i++) { var fObj = { field: "EmployeeID", value: value[i], predicate: "or", operator: 'equal', matchcase: 'false' }; filter.push(fObj); } var gridObj = $("#FlatGrid").data('ejGrid'); ej.merge(gridObj.model.filterSettings.filteredColumns, filter); if (args.text == "") { for (var j = 0; j < gridObj.model.filterSettings.filteredColumns.length; j++) { if (gridObj.model.filterSettings.filteredColumns[j].field == "EmployeeID") gridObj.model.filterSettings.filteredColumns.pop("EmployeeID"); } } var args = { requestType: 'refresh' } gridObj._processBindings(args); } |
In the above code snippet we have used _filterHandler method to perform the filter operation in grid.
For your convenience we have attached sample and it can be downloaded from following link location
Sample Link: https://www.syncfusion.com/downloads/support/forum/119285/ze/ExcelFilter-314656102
Please try the above sample and get back to us if you have any concerns.
Regards,
Sellappandi R
- 3 Replies
- 2 Participants
-
MJ Miguel Jesús
- Jun 2, 2015 12:23 AM UTC
- Jun 4, 2015 02:06 AM UTC