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

Grid create new row with filter applied

1 Answer 160 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mayking
Top achievements
Rank 2
mayking asked on 03 Jun 2020, 12:45 AM

I set grid editable option

editable : { createdAt : 'bottom' }

but

 

when adding a row with a filter applied, the row to be added does not appear in the last row. (appear randomly)

set filter options

 

 

{
  logic: 'or',
  filters: [{field: 'name', operator: 'eq', value: ''}, {field: 'name', operator: 'contains', value: 'Jane'}],
}

 

how can i do?


1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 04 Jun 2020, 04:02 PM

Hi Mayking,

I can see that you've also submitted a support ticket about the same topic. I will paste the answer of my colleague Nikolay here, just in case someone finds this thread in the future and needs its solution. 

The behavior that you are describing is rather expected with the configuration that you have because when you add a new record, the values in that record will not match the filter criteria that you have. Nevertheless, you can easily achieve the desired behavior if you enable the serverFiltering of your data source.

http://dojo.telerik.com/UrACEPUC
Additional information on this matter (as well as a dojo example) could be found in the following forum post:

https://www.telerik.com/forums/unable-to-add-row-when-filtering#khXejqNnSUa19wdbDK-QrQ

Regards,
Petar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
mayking
Top achievements
Rank 2
Answers by
Petar
Telerik team
Share this question
or