BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
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.
|
<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); } |