I am getting the following error when trying to bind a radgrid:
'Telerik.Web.UI.GridDynamicQueryable.GroupBy(System.Linq.IQueryable, string, string, params object[])' is inaccessible due to its protection level
Here is my code in my need date source:
I have my dbContext declared up above, when i try and declare within the method the same error occurs. Here is my radgrid client side code
When trying this in a test solution without a telerik grid this works no issues. Are there any specific setting i need to set so this works?
'Telerik.Web.UI.GridDynamicQueryable.GroupBy(System.Linq.IQueryable, string, string, params object[])' is inaccessible due to its protection level
Here is my code in my need date source:
var test = from p in DbContext.Entered_Comments where p.comment_id = 1; radgrdResultDetail.DataSource = test;I have my dbContext declared up above, when i try and declare within the method the same error occurs. Here is my radgrid client side code
<telerik:RadGrid ID="radgrdResultDetail" runat="server" AutoGenerateColumns="False" PageSize="20" GridLines="None" Skin="247" EnableEmbeddedSkins="False" AllowPaging="True" CellSpacing="0" AllowSorting="True" OnPreRender="radgrdResultDetail_PreRender" OnItemDataBound="radgrdResultDetail_ItemDataBound" OnNeedDataSource="radgrdResultDetail_GetData" OnItemCommand="radgrdResultDetail_ItemCommand" meta:resourcekey="radgrdResultDetailResource1"> <ClientSettings EnablePostBackOnRowClick="false"> <Scrolling AllowScroll="false" UseStaticHeaders="true" /> <Animation AllowColumnReorderAnimation="True" AllowColumnRevertAnimation="True" /> </ClientSettings> <MasterTableView InsertItemPageIndexAction="ShowItemOnFirstPage" EditMode="InPlace" CommandItemDisplay="bottom" DataKeyNames="comment_id" AllowAutomaticInserts="false" AllowAutomaticUpdates="true" runat="server"> <PagerStyle AlwaysVisible="true" /> <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <Columns> </Columns> <EditFormSettings> <EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"> </EditColumn> </EditFormSettings> </MasterTableView> <FilterMenu EnableImageSprites="False"> </FilterMenu> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Hay"> </HeaderContextMenu> </telerik:RadGrid>When trying this in a test solution without a telerik grid this works no issues. Are there any specific setting i need to set so this works?