Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
370 views
I have a radgrid that is invisible and need to export it to excel.  It works great if I set the visible property to true but I don't want the user to see this grid as it is a combination of 2 grids that the user does see.
Mark
Top achievements
Rank 1
 answered on 16 Apr 2015
1 answer
552 views

I need to update the radWindow control from a button that is located internally in the radwindow.

The scenario I have is as follows:
Since a main form I call radwindow and it displays me another form, which contains a textbox and a radgrid. When I digit something in the textbox and press down on the button to add, I need to reload the radwindow like the effect of having the radwindow.

As I do this?

sorry for my english, is not very good xD!! 

Thank you for your help.

Marin Bratanov
Telerik team
 answered on 16 Apr 2015
35 answers
2.6K+ views
Hi all,

You guys have helped me out tremendously in getting my radwindow working.  I now have another question.  When I am finished with my pop-up radwindow I click a button that closes the pop-up and returns to the parent page.  How can I make the parent page postback and refresh?

Thanks,
Bob
Marin Bratanov
Telerik team
 answered on 16 Apr 2015
1 answer
109 views

Hello,

 I have a Master RadGrid that has a nested (child) RadGrid inside its NestedViewTemplate.  The nested RadGrid contains multiple GridTemplateColumns.  Inside one of these GridTemplateColumns I have a LinkButton (or it can it a label, it doesn't matter).  I am trying to create a scenario where when the user's mouse rolls over this LinkButton a ToolTip appears that will display information about the specific LinkButton text, and when the user rolls away the tooltip disappears.  The information on the tooltip will be obtained from a database query that will require an ID to be passed to it as a parameter.

I have seen a few examples of using the ToolTipManager and binding it to specific controls in a RadGrid, but none of the examples cover "Nested" RadGrids or how to send parameters.  I've seen an example where it's possible to open a WebUserControl inside a ToolTip, but I have not been able to get it to work.

Is what I want to do even possible or do I have to use something like a RadWindow or JavaScript?  I'd rather use the Telerik controls if possible.  I'd really appreciate any help (such as an example code).

Thanks.

Marin Bratanov
Telerik team
 answered on 16 Apr 2015
2 answers
348 views
hello,
I am using the trial version of the latest Asp.net AJAX controls.  I'm attempting to get the RadAsyncUpload Custom Handler example working but am stuck with a http 500 "internal error" error.  I cannot get around this error.  I've tried recreating the project from scratch, etc. -- no luck.  My project is, I believe, a duplicate of the example files.  I tried to attach a zip of my project but it is 16 megs (2meg limit).  How can I get a zip of my project to you?  Many thanks -- john
Peter Filipov
Telerik team
 answered on 16 Apr 2015
6 answers
247 views
We are encountering an issue with the RADEditor when editing a page in SharePoint. In Edit mode, there is a very small area on the left & right side of the eidtor window wherein when you click on it, the cursor jumps to the bottom of the editor window then goes back up to (or near) the area where the mouse was clicked. This is very inconvenient for users specially when trying to highlight a paragraph since what will happen is the cursor will jump somewhere at the bottom and will highlight that area instead. I've read this forum and found not exactly the same issue (but somewhat similar - i.e. cursor jumps to top of page when mouse hovers outside the editor window or when pressing enter). Does anyone know how to fix this? Any information is greatly appreciated.

I have attached a picture to illustrate what I mean.

NOTE: I added the borders just to emphasize where exactly the jumping occurs (when mouse is click on that area outside of the border).
Marin Bratanov
Telerik team
 answered on 16 Apr 2015
2 answers
192 views
using a RadTreeList I wonder how to hide the expand / collaps Icon when there are no records under parent item What I found within this platform ishttp://www.telerik.com/help/aspnet-ajax/grid-hide-expand-collapse-images-when-no-records.htmlbut as far as I can see this does not work for RadTreeList, doesn't it?
Hans-Peter
Top achievements
Rank 1
 answered on 16 Apr 2015
3 answers
113 views
Please explain me how to troubleshoot following issue: 
I'm using NeedDataSource event to bind list
protected void RadTreeList2_NeedDataSource(object source, TreeListNeedDataSourceEventArgs e)
{
    DataTable dt = GetDataTable();
    RadTreeList2.DataSource = dt; 
}

In function GetDataTable() two options available:
Option 1 - get data table from execution of database request 
DataTable table = objController.GetMessages();

Option 2: Build table 'manually'
DataTable table = new DataTable();
table.Columns.Add("SubjectId", typeof(string));
table.Columns.Add("Subject", typeof(string));
table.Columns.Add("UserName", typeof(string));
table.Columns.Add("Status", typeof(string));
table.Columns.Add("Message", typeof(string));
table.Columns.Add("Date", typeof(DateTime));
table.Columns.Add("Related", typeof(string));

table.Rows.Add("e6628832-54c7-4b18-ad2e-290065bc56c3", "Subject1D", "Sent", "User1", "Body1", DateTime.Now, "");
table.Rows.Add("e6628832-54c7-4b18-ad2e-290065bc56c3", "Subject1D", "Received", "User1", "Body2", DateTime.Now, "e6628832-54c7-4b18-ad2e-290065bc56c3");

table.Rows.Add("e6628832-54ca-4b18-ad2e-290065bc56c3", "Subject2D", "Sent", "User1", "Body3", DateTime.Now, "");
table.Rows.Add("e6628832-54ca-4b18-ad2e-290065bc56c3", "Subject2D", "Received", "User1", "Body4", DateTime.Now, "e6628832-54ca-4b18-ad2e-290065bc56c3");

Both options return the same table (I compared) and show the same information in the list.
The problem is when I using Option 1, collapse/expand is not working either manually (clicking +) not programmatecally. No errors/exception fired.
This is internal RadTreeList  - not sure how to find reason for such behavior.

HTML/aspx looks like:

<telerik:RadSkinManager ID="QsfSkinManager" Skin="Default" runat="server" ShowChooser="false" />
 <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
 <telerik:RadProgressManager runat="server" ID="RadProgressManager1" />      <div class="demo-containers">
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="0"></telerik:RadAjaxLoadingPanel>
        <div class="demo-container">
            <h2 class="qsfSubtitle">Messages History</h2>
 <telerik:RadAjaxPanel ID="RadAjaxPanel3" LoadingPanelID="RadAjaxLoadingPanel1" runat="server">
                <telerik:RadTreeList runat="server" ID="RadTreeList2" AllowPaging="true" PageSize="5" DataKeyNames="SubjectId" ParentDataKeyNames="Related" OnNeedDataSource="RadTreeList2_NeedDataSource"
                AutoGenerateColumns="false" OnDeleteCommand="RadTreeList2_DeleteCommand"  OnItemCommand="RadTreeList2_ItemCommand"
     OnUpdateCommand="RadTreeList2_UpdateCommand" >
    <ClientSettings>
                    <ClientEvents OnItemContextMenu="demo.onItemContextMenu"  OnItemDblClick="demo.OnItemDblClick" OnItemClick="demo.OnItemClick"></ClientEvents>
                    <Selecting AllowItemSelection="True"></Selecting>
                </ClientSettings>
                <Columns>
                   <telerik:TreeListBoundColumn DataField="SubjectId" HeaderText="SubjectId" UniqueName="SubjectId">
      <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="5%"/>
      <HeaderStyle HorizontalAlign="Left" Width="5%" />
     </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Subject" HeaderText="Subject" UniqueName="Subject">
      <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="15%"/>
      <HeaderStyle HorizontalAlign="Left" Width="15%" />
     </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="UserName" HeaderText="UserName" UniqueName="UserName">
      <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="15%"/>
      <HeaderStyle HorizontalAlign="Left" Width="15%" />
     </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Status" HeaderText="Status" UniqueName="Status">
      <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="10%"/>
      <HeaderStyle HorizontalAlign="Left" Width="10%" />
     </telerik:TreeListBoundColumn>
      <telerik:TreeListTemplateColumn HeaderText="Message" SortExpression="Message" UniqueName="Message">
             <ItemTemplate>
                <asp:Label runat="server" ID="lblStatus" Text='<%# Eval("Message") %>' ToolTip='<%# Eval("Message") %>'/>
             </ItemTemplate>
             <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="40%" Wrap = "False" />
             <HeaderStyle HorizontalAlign="Left" Width="40%" />
         </telerik:TreeListTemplateColumn>
                    <telerik:TreeListBoundColumn DataField="Date" HeaderText="Date" UniqueName="Date">
      <ItemStyle VerticalAlign="Middle" HorizontalAlign="Left" Width="15%"/>
      <HeaderStyle HorizontalAlign="Left" Width="15%" />
     </telerik:TreeListBoundColumn>
                    <telerik:TreeListBoundColumn DataField="Related" HeaderText="Related" UniqueName="Related"></telerik:TreeListBoundColumn>
                </Columns>
                <EditFormSettings EditFormType="Template" PopUpSettings-Width="600px">
                <FormTemplate>
                    <div class="editTemplate">
                        <table>
                            <tr class="EditFormHeader">
                                <td colspan="2" style="font-size: small">
                                    <b>Reply:</b>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top">
                                    <table class="module">
                                        <tr>
                                            <td colspan = "2">
                                                <asp:TextBox ID="txtMsg" TextMode = "MultiLine" Height = "100" Width = "300" Text='<%# Eval("Message", "\n >>>>\n {0} ") %>'  runat="server">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <telerik:RadButton ID= "btnSend" Text = "Send" CommandName = "Update" Icon-PrimaryIconCssClass="rbOk" runat="server"/>                                            </td>
                                            <td>
                                                <telerik:RadButton ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                                                                CommandName="Cancel" Icon-PrimaryIconCssClass="rbCancel" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                             </tr>
                        </table>
                     </div>
                </FormTemplate>
                </EditFormSettings>
                 </telerik:RadTreeList>
     <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" RelativeTo="Mouse"
     Position="MiddleRight" AutoTooltipify="false" ContentScrolling="Default" Width="50"
     Height="10" />
                <telerik:RadContextMenu ID="RadContextMenu1" runat="server" OnClientItemClicked="demo.onClientItemClicked">
                <Items>
                    <telerik:RadMenuItem Text="Reply" Value="Edit"></telerik:RadMenuItem>
                    <telerik:RadMenuItem Text="Delete" Value="Delete"></telerik:RadMenuItem>
                </Items>
                </telerik:RadContextMenu>
            </telerik:RadAjaxPanel>
        </div>
    </div>

Thanks you,
Boris








 
Kostadin
Telerik team
 answered on 16 Apr 2015
2 answers
164 views
Ok so I really like RadGrid, and now I have been using the GridHTMLEditorColumn column type more and more. One issue I am having is that i would like to add the remaining tool bars to the control so that the user has more control of the HTML. I have searched the forums and have seen some discussion, but none of the solutions have worked for me.

1. How do I add the "hidden" tools since this appears to be radeditor?
2. How can I maximize the width of the control in the RadGrid edit form?

Good day to us all.

Ryan
Snehith
Top achievements
Rank 1
 answered on 16 Apr 2015
2 answers
61 views

Is it possible to use the group by function in RadGrid also using the Skip() and Take() linq functions rather than pulling the entire table in every time?  We're currently using a grid that has 40000 rows (and up to 30 columns) and using the Group By functionality takes over 2 mins to complete, causing a timeout. 

Currently when I use GroupBy with Skip and Take, it just groups the entries in that particular view depending how the table is sorted (i.e. just those 50 rows) rather than the correct grouping as it would be over the full 40000 rows.  Is there any way to get this to work correctly?

 

Kostadin
Telerik team
 answered on 16 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?