- Home
- Forum
- ASP.NET MVC
- toolbar Grid hides grid's header and filterbar
toolbar Grid hides grid's header and filterbar


Thanks for using Syncfusion products.
Query : I'm having problems when activating the grid toolbar on my page. I have no idea of what would be the reason of this behavior.
We are sorry to let you know that we are unable to reproduce your reported issue. We suspect that old version of Grid script and CSS files in your application which causes the issue. Please refer the below queries for further details.
Please refer the below location to get the CSS and Script files for 13.1.0.21.
CSS Files: C:\Program Files (x86)\Syncfusion\Essential Studio\13.1.0.21\JavaScript\assets\css\web
Script Files: C:\Program Files (x86)\Syncfusion\Essential Studio\13.1.0.21\JavaScript\assets\scripts\web
For your convenience we have created a simple sample and the same can be downloaded from the below link.
Sample Link: http://www.syncfusion.com/downloads/support/forum/119202/UrlAdaptor-544390318.zip
Please let us know if you have any concerns.
Regards,
Ajith R
- I need that the toolbar items redirect to another page, Is there any way to do that? For example, I need Edit button on toolbar redirects to another page, BUT If possible I would like to preserve the validation when no row is selected.
- Is there any way to remove the filter text on the bottom?

Thanks for your update.
Query 1: Would you have any advice to get syncfusion MVC5 working with bootstrap 2.3?
We have analyzed your query and we would like let you know that our control supports bootstrap 2.3 version also. But, in this version, some styles has been applied to element if the element’s class name has been ended as “span”.
Please refer the below styles that are in bootstrap 2.3 version CSS file.
CSS-[bootstrap.2.3 version] [class*="span"] { float: left; min-height: 1px; margin-left: 20px; |
In our control, we have used class name “e-toolbarspan” for some internal process. So above styles applied to this tool bar element also. In earlier version of bootstrap CSS files these styles are removed.
If you want to use the bootstrap 2.3 version in your project, Please use below code in your view page to resolve the reported issue.
<style> .e-toolbarspan { float:none; margin-left:auto; } |
Query 2: I need that the toolbar items redirect to another page, Is there any way to do that? For example, I need Edit button on toolbar redirects to another page, BUT If possible I would like to preserve the validation when no row is selected.
We suggest you to use ToolbarClick client side event and set the args.cancel as true based on the itemName to prevent the default actions performed by tool bar item. After that we can perform our custom actions like redirect the page on edit tool item click based on the selected record length. Please refer the below code snippet for further details.
| [index.cshtml] @(Html.EJ().Grid<object>("Grid") ----------- ----------- .ClientSideEvents(eve => { eve.ToolbarClick("toolbarClick"); }) function toolbarClick(args) { if (args.itemName == "Edit") { args.cancel = true; // Cancel the default edit action // Get selected records length if (this.getSelectedRecords().length > 0) { var OrderID = this.getSelectedRecords()[0].OrderID; window.location.rel='nofollow' href = "/Home/SelectedData?OrderID=" + OrderID; } else alert("No Records Selected") } public ActionResult SelectedData(int OrderID) { // Write your code here return View(data); |
Query 3: Is there any way to remove the filter text on the bottom?
We have faced an issue while setting ShowFilterBarStatus as false in the FitlerSettings and we considered this “ShowFilterBarStatus not working properly” as an issue. A support incident has been created under your account to track the status of this issue. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
For your convenience we have created a simple sample and the same can be downloaded from the below link.Sample Link: http://www.syncfusion.com/downloads/support/forum/119202/ToolbarBootstrap189155041.zipPlease let us know if you have any concerns.Regards,Ajith R
- 3 Replies
- 2 Participants
-
MJ Miguel Jesús
- May 21, 2015 05:12 PM UTC
- May 26, 2015 12:32 PM UTC