Hello all.
Brand new to Telerik and developing in general so be gentle!
I'm using EF to display product information within a gridview. I have managed to hook up the entity data source and radgrid so that when a user inserts a product ID, the associated information is displayed upon post back.
Everything works fine i.e. sorting, paging, editing, updating.
The only problem I have is with filtering where upon I attempt to filter and receive the subject title...nasty.
If I change AutoGenerateWhere clause to false, I then can't even get the radgrid to bind.
Any chance someone could point me in the right direction. My code is as follows:
Brand new to Telerik and developing in general so be gentle!
I'm using EF to display product information within a gridview. I have managed to hook up the entity data source and radgrid so that when a user inserts a product ID, the associated information is displayed upon post back.
Everything works fine i.e. sorting, paging, editing, updating.
The only problem I have is with filtering where upon I attempt to filter and receive the subject title...nasty.
If I change AutoGenerateWhere clause to false, I then can't even get the radgrid to bind.
Any chance someone could point me in the right direction. My code is as follows:
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="edsTelerikWeights" GridLines="None" AutoGenerateEditColumn="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ondatabound="RadGrid1_DataBound"> <MasterTableView DataKeyNames="PriKey" DataSourceID="edsTelerikWeights"> <RowIndicatorColumn> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Productpriority" DataType="System.Int32" HeaderText="Productpriority" SortExpression="Productpriority" UniqueName="Productpriority" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MemberId" HeaderText="MemberId" SortExpression="MemberId" UniqueName="MemberId" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="MemberName" HeaderText="MemberName" SortExpression="MemberName" UniqueName="MemberName" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridCheckBoxColumn DataField="Retail" DataType="System.Boolean" HeaderText="Retail" SortExpression="Retail" UniqueName="Retail" ReadOnly="true"> </telerik:GridCheckBoxColumn> <asp:EntityDataSource ID="edsTelerikWeights" runat="server" ConnectionString="name=PDC_VDSOREntities" DefaultContainerName="PDC_VDSOREntities" EnableFlattening="False" EntitySetName="tblWeights" AutoGenerateWhereClause="True"> <WhereParameters> <asp:SessionParameter Name="MemberId" SessionField="VDS_MemberID" /> <asp:SessionParameter Name="LocationId" SessionField="VDS_LocationID" /> <asp:ControlParameter ControlID="tbxAutoCompleteMulti" DefaultValue="Null" Name="UnitId" PropertyName="Text" /> </WhereParameters> </asp:EntityDataSource> Any help gratefully received.