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

Add to DataSource but not to Grid

1 Answer 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 2
Veteran
Iron
Grant asked on 19 Jul 2019, 07:07 AM

Hi, 

 

As my title might suggest, im trying to add a new item to the dataSource without adding it to my grid. the reason being that the status of the new item might not match that of the current datasource.

eg: adding an INACTIVE record to a grid only displaying ACTIVE records.

Thanks in advance, 

Grant

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 23 Jul 2019, 07:28 AM
Hi, Grant,

If the Kendo UI Grid data source is filtered to only display INACTIVE items, it will not show the ACTIVE ones in the data source.

https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/filter

Here is a runnable example - adding a new dataItem as Discontinued: true, will not be shown in the grid because it is filtered to show only the non-Discontinued items:

https://dojo.telerik.com/@bubblemaster/OyoZAxEr

Let me know in case I have misunderstood your question.

Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Grant
Top achievements
Rank 2
Veteran
Iron
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or