Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
172 views
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:

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?
Antonio Stoilkov
Telerik team
 answered on 06 Mar 2012
2 answers
223 views
I would like to display a more info when you hover thumbnail image (products catalog). But for some reason it displays only the TITLE of the product instead the stuff defined there. e.g.

<asp:Image id="imgThumbnail" runat="server" ImageUrl="" />
<telerik:RadToolTip ID="RadToolTip1" runat="server"
                                            Title='<%# Eval("itemSKU") %>'
                                            TargetControlID="imgThumbnail" ToolTip=""
                                            RelativeTo="Element"
                                            Position="BottomRight"
                                            RenderInPageRoot="true"
                                            EnableShadow="true"
                                            Skin="Windows7"
                                            Animation="Fade"
                                            AutoCloseDelay="0"
                                            ShowEvent="OnMouseOver"
                                            HideEvent="LeaveTargetAndToolTip"
                                            ShowDelay="300"
                                            Width="350px"
                                            VisibleOnPageLoad="false">
                        <div style="padding: 10px;">
                            <b>Description:</b><%# Eval("itemDescription") %><br />
                            <b>Category:</b> <%# Eval("categoryName")%>
                            <br /><br />
                        </div>
                    </telerik:RadToolTip>

Am i missing something?
Thanks

Jugoslav
Top achievements
Rank 1
 answered on 06 Mar 2012
1 answer
106 views
How can I access the textbox in button click event?
  <NestedViewTemplate>
      <asp:Button ID="Button1" runat="server" onclick="Button1_Click" />
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</NestedViewTemplate>
Shinu
Top achievements
Rank 2
 answered on 06 Mar 2012
1 answer
107 views
Hi,

I am using radTreeView control.I want to move up and down through the Root,Parent and Child nodes and to expand and collapse the nodes using keyboard ..

Help me..
Thnx in advance..
Princy
Top achievements
Rank 2
 answered on 06 Mar 2012
4 answers
165 views
Hi,

We are facing an issue where radGrid header is not aligned properly. It happens when columns are having lengthy text and folded. Please see the attached screen shot and give me a solution to fix it. This issue occurs in FireFox and not in IE.

Thanks
Venkat
Pavlina
Telerik team
 answered on 06 Mar 2012
1 answer
159 views
Is there a client-side way to change the image for the radtoolbarbutton which is specified in the imageurl?

For example, I am wanting a clip board radtoolbarbutton and change the image between an empty clip board image and a full clip board image.

Thanks in advance
Princy
Top achievements
Rank 2
 answered on 06 Mar 2012
1 answer
250 views
I need to only sort by desc/asc two states and the grid need to show sort icon always (default icon or customed icon).
Please tell me how to do it.

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Mar 2012
1 answer
173 views
I put in code to change my PageSizeComboBox. The values change but I click on a new value nothing happens. The grid display doesn't change.

Here is the code:

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridPagerItem)
    {
        var combo = e.Item.FindControl("PageSizeComboBox") as RadComboBox;
        if (combo != null)
        {
            RemoveComboItem(combo, "5");
            RemoveComboItem(combo, "10");
            RemoveComboItem(combo, "20");
            AddComboItem(combo, "100");
            AddComboItem(combo, "150");
            AddComboItem(combo, "200");
            AddComboItem(combo, "300");
        }
    }
}


Shinu
Top achievements
Rank 2
 answered on 06 Mar 2012
1 answer
91 views
I wanna create the treeview data, and looks like this.

-Past
    -Example1
             - child1
             - child2
    -Example2
            - child3
            - child4

Until now i dont found any stuff about that, and i facing some problems to do that.
Does anyone know how can i do that?
Princy
Top achievements
Rank 2
 answered on 06 Mar 2012
2 answers
162 views
Hi all, i have a check box in every row of radgrid. User can then choose which record to print by checking the checkbox.They can then print by clicking a button embedded in the radgrid which has the CommandName="Print".This will fires the ItemCommand event and i want to check which checkbox has been checked and then print them out.
My question is i cannot loop through the radgrid via ItemCommand  event.
Can anyone help ?
Please!!

 
johnson lim
Top achievements
Rank 1
 answered on 06 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?