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

RadGrid with EntityDataSource Filtering

1 Answer 100 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Imran asked on 22 Jan 2016, 07:20 PM

I have an EntityDataSource


            it.[SalesRep_Table].[DisplayName] AS SalesRep_DisplayName,

And RadGrid

        <PagerStyle Mode="NextPrevAndNumeric" />
        <GroupingSettings CaseSensitive="false" />
                    FilterControlAltText="Filter InventoryID column"
                    HeaderText="Item #"
                            runat="server" Text='<%# Eval("InventoryID") %>'
                    FilterControlAltText="Filter InventorySalesRepUserID column"
                    HeaderText="Sales Rep ID"
                    FilterControlAltText="Filter InventorySalesRepUserName column"
                    HeaderText="Sales Rep Name"

It loads fine and filter on radgrid also works fine when filtering InventoryID and SalesRepID but when i filter for SalesRep_DisplayName give me an error.

'SalesRep_DisplayName' is not a member of type 'myDB_Model.tblInventory' in the currently loaded schemas. Near simple identifier.



1 Answer, 1 is accepted

Sort by
Maria Ilieva
Telerik team
answered on 28 Jan 2016, 06:35 AM

Note that the described behavior is expected as the mentioned field is mapped and is added as data filed, but the RadGrid is searching for such original data filed in the model which is actually missing.Therefore you should remove the mapping and bind to the actual data field in order to avoid this error.

Maria Ilieva
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question