Ability to View Search Bar on grid on pageload

Hi

I have a grid which has the ability to search on. The Grid also has persistance on. 

The issue i am occouring is that when i am searching the grid say for the words "SyncFusion", with "EnablePersistance" set to true, when the page that the grid is sitting on is freshed, the appropiate searched rows are still displaying, however the search bar at the top is collapsed. 

My question i propose is, is there a way to either always show the search bar or only show the search bar when there is a value in the search box. 

Thanks

Paul 

4 Replies

VA Venkatesh Ayothi Raman Syncfusion Team March 16, 2018 12:26 PM UTC

Hi Paul, 

Thanks for using Syncfusion products. 

We are unable to reproduce the reported issue at our end by applying your scenario. For this scenario, we have prepared a sample for your convenience which can be download from following link, 

In this sample, we have enabled the Search and EnablePersistence property. Please refer to the following code example, 
@Html.EJS().Grid("CommandColumn").DataSource((IEnumerable<object>)ViewBag.dataSource).EnablePersistence().Toolbar(new List<string>() { "Search"}).Columns(col => 
       { 
 
. .  . 
 
       }).AllowPaging().PageSettings(page => page.PageCount(5)).Render() 

Output
 

Note: We have checked the reported issue with Microsoft Edge, Chrom and Firefox browsers. 

If you still face the same issue, then could you please provide following details? 
1)      Share issue reproducing scenario. 
2)      Share the full Code example of Grid. 
3)      Screenshot of the issue. 
4)      EJ2 version and Browser details. 
5)      A sample is possible or modified the given sample as issue reproducible. 
  
Regards, 
Venkatesh Ayothiraman. 



PL Paul Lees March 16, 2018 12:39 PM UTC

Hi 

I have attached the MVC Razor code with the grid controls on it. 

I have also attached 3, screenshots. 
     -     In the first screenshot, you can see that the Search works Perfectly. (This is Prior to the page refresh)
     -     In the Second ScreenShot(After Page Refresh) you can see that the search has been persistant, however the search bar at the top has minimised
     -     In the Third ScreenShot (After Page Refresh) you can see that the Search bar shows the Magnifying Glass is slowing and not the Cross to disable to search. 


Thanks

Paul 


PL Paul Lees March 16, 2018 12:41 PM UTC

Attached is the Attachments failed to attach in the previous response

Attachment: New_folder_be7f579a.zip


VN Vignesh Natarajan Syncfusion Team March 20, 2018 04:59 PM UTC

Hi Paul, 

Thanks for using Syncfusion products. 

We have analyzed your query and it is already known issue (“Searching bar is not working properly rendered when enableResponsiveRow is true”). The issue will be fixed and fix for the issue will be included in our upcoming release 2018 Volume 1 Service Pack 2 which is expected to be rolled out by the month of April 2018.  

Till then we appreciate your patience. 

After the fix, search bar will be shown always in toolbar in smaller size. Refer the below screenshot how the search bar will be shown in Grid after fixing the mentioned issue. 

 


Regards, 
Vignesh Natarajan 


Loader.
Up arrow icon