We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Search doesn't returns result properly after page postback in asp.net

Steps to be followed to reproduce issue.
1. Keep some dummy asp.net button control and syncfusion grid control (only one column) on the aspx page.
2. Load the page with data (Bind data source in Page_Load event)
3. Do search of any keyword it works properly
Example:
Row 1. Visual Studio
Row 2. nevit
Row 3. vi
type and search for 'vi', it would returns above 3 rows
4. Click on Button control (page get postback)
5. type and search for 'vi', it would returns above 1 row (Row 3). Because it does looks for exactly matched not for contains

Please help me!!!



Attachment: search_c8087ce.zip

5 Replies

PK Prasanna Kumar Viswanathan Syncfusion Team March 9, 2017 06:38 AM UTC

Hi Velu, 

Thanks for contacting Syncfusion support. 

We created a sample and in this sample we follow the steps that you have mentioned to reproduce the mentioned issue. In our sample it returns three rows when we searched for “vi” after clicking on Button control. So, we unable to reproduce the mentioned issue in our sample.  


To find out root cause, we need the following details.  

1. In incident you have mentioned there is only one column in grid control. But in your code example you have used five columns. So, please confirm that the mentioned issue is reproduced with five columns or one column in grid control?  

2. Essential Studio Version details. 

3. If possible, replicate the issue in the attached sample.  

Note :  we checked in our sample with one column and multiple columns, but we can reproduce the mentioned issue in our sample.  

Regards, 
Prasanna Kumar N.S.V 
 



VE Velu March 10, 2017 07:51 AM UTC

Thank you for the reply Mr. Prasanna Kumar

I have gone through the sample project and I have created separate project and few snapshots with result after search.

Software and Libraries details:

1. Visual Studio 2013
2. .net framework 4.5.1
3. 3 Syncfusion dll files are using in the projects
  • Syncfusion.EJ.dll [14.2451.0.26]
  • Syncfusion.EJ.Web.dll [14.2451.0.26]
  • Syncfusion.Linq.Base.dll [14.2451.0.26]
4. Few js and css files are using which is already on Grid.aspx page

Sample project has attached with all library files [GridIssue.zip] to reproduce issue.

Steps to reproduce search issue:
1. Run the solution
2. Enter 'ita' keyword and enter/hit on search icon
3. You could 3 items as result ['nevita', 'vita' and 'neevita']. Because it searched for 'ita' which any word contains that. Ref. attached image file [proper_result.png].
4. Stop the solution
5. Run the solution again
6. Click on Search button at the bottom
7. Now enter 'ita' keyword and hit on search icon
8. Now you couldn't see any result item, ref. attached image file [result_afterpostback.png]. Because it searching for whole match word as 'ita' and return nothing. It's happening after post back.


Attachment: GridIssue_d6fc8203.zip


PK Prasanna Kumar Viswanathan Syncfusion Team March 14, 2017 11:37 AM UTC

Hi Velu, 

Thanks for contacting Syncfusion support. 

We able to face the mentioned issue in the attached sample and we have already fix the issue in version 14.3.0.49 (Volume 3, 2016). So, we suggest you to upgrade to the latest version or we can also provide you the patch in the particular version that you have mentioned. 

Regards, 
Prasanna Kumar N.S.V 



VE Velu March 23, 2017 04:04 AM UTC

Thanks Mr. Prasanna Kumar

As you mentioned, now I'm using version 14.3.0.49. It's working as expected, thanks for your great suggestion and experience with Syncfusion support.

Note: Sorry for late reply, I was out of town last week.

Regards,
Velu




PK Prasanna Kumar Viswanathan Syncfusion Team March 24, 2017 03:46 AM UTC

Hi Velu, 

We are happy to hear that your issue has been resolved. 

Please let us know if you need any further assistance. 

Regards, 
Prasanna Kumar N.S.V 


Loader.
Up arrow icon