This is a migrated thread and some comments may be shown as answers.

Grid filterable Row mode

7 Answers 129 Views
Grid
This is a migrated thread and some comments may be shown as answers.
popo
Top achievements
Rank 1
popo asked on 06 Apr 2016, 09:03 AM

Hi guys,

     I'm working on Grid filterable row mode with remote data. In this Demo Grid Filter Row , When I input value, It show dropdown list like autocomplete behavior. The grid show data lost focus or Enter key is pressed. It also request Get data 2 times to server. How can I disable function that show the dropdown list data result. I just want to request data one times when lost focus or press enter.

 

Regards

Thanh

7 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 08 Apr 2016, 03:22 PM

Hello popo,

 

The reason for this behavior is because the AutoComplete widget copies the DataSource of the Kendo UI Grid. Given this it loads its data with a request to the server and then Kendo UI Grid sends a request to the server in order to perform the filtering (serverFiltering is enabled for the Kendo UI Grid). If you disable the serverFiltering then it should not perform the second request. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
popo
Top achievements
Rank 1
answered on 15 Apr 2016, 06:23 AM

Hi Boyan,

         I changed the serverFiltering value to false as you said. I see that the request doesn't have any params in request console, how can I pass the param to server or something like that. I'm using Web API Service. Are there any option that can help my case? Just filter from server by the second request, not by the first request. 

0
Boyan Dimitrov
Telerik team
answered on 19 Apr 2016, 03:31 PM

Hello popo,

 

The transport.read.data allows user to send additional data to the server along with the request. 

 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
popo
Top achievements
Rank 1
answered on 22 Apr 2016, 05:51 AM

Hi Boyan.

What i need is not custom request parameters .

I need stop that filter data like an autocomplete control when i input. Data only get when Enter is pressed or lost focus. I attach the image with detail description.

Thank you for your supporting.

Regard,

Popo

0
popo
Top achievements
Rank 1
answered on 22 Apr 2016, 05:53 AM

Hi Boyan,

Something went wrong when i attached the image. I do it again

Best regards,

popo

0
Accepted
Boyan Dimitrov
Telerik team
answered on 26 Apr 2016, 02:37 PM

Hello popo,

If an input element is used in the filter row for the ProductName it will not make any requests while user is typing and it will make only one request when user tabs out. In order to define a custom ui for the filter row you can use the columns.filterable.cell.template

Please refer to the http://dojo.telerik.com/IWECu example. 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
popo
Top achievements
Rank 1
answered on 29 Apr 2016, 08:22 AM

Hi Boyan,

    Thank you very much for your supporting.That is exactly I need, I deal with it a week... You save my life from my boss. haha

    I marked it as an answer.

Best regards.

Popo

Tags
Grid
Asked by
popo
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
popo
Top achievements
Rank 1
Share this question
or