Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
259 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
194 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
114 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
171 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
64 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
3 answers
146 views

Hi,

Can we customize the Progress Indicators which is shown when uploading the Files to the server? (Red, Green, Yellow one)

I want it to customize as shown in the attached image.

 

Thanks,

Varun

Ivan Zhekov
Telerik team
 answered on 16 Apr 2015
1 answer
169 views

Two questions:

  1. Is it possible to not require a click to use Batch Editing - e.g. Grid is always in edit mode? 
  2. How do I insert an empty item into a GridDropDownColumn in batch mode? 

Thanks.​

Viktor Tachev
Telerik team
 answered on 16 Apr 2015
2 answers
177 views

Hi

I have a radgrid with insert/update/delete function available (NOT automatic but manual).  Behind my tool there is a user database with security settings.  I need to set the insert/update/delete function unavailable for the users that have no rights to do this and for the user who have right to do this the insert/update/delete function must be availabe.

My question is how do I make the functions unavailable? How can I do this in code behind?

Please advice.

Kind regards

Suzy

Suzy
Top achievements
Rank 2
 answered on 16 Apr 2015
4 answers
89 views
What is the minimum time increment on the GANTT chart control?  We need 5 min increments.
Bozhidar
Telerik team
 answered on 16 Apr 2015
3 answers
637 views

I've got a very simple page to try to start using the scheduler. At the moment all the page has on it is the scheduler.

I don't know javascript and have no script code. At the moment all I have done is create a blank form, added a scheduler control, added the radscriptmanager and radajaxmanager, in code behind loaded the datasource for the schedule and that's it.

When I run it the page is displayed and I can see, insert and edit appointments using the standard form. However, if I click options to view the advanced form I get an error:

Unhandled exception at line 23, column 5 in http://localhost:49335/ScriptResource.axd?d=nv7asgRUU0tRmHNR2D6t1FKDG35DvsT9LAUygLmmdVzKrxno8KQVmwLs8qIoJRFRSN2_iVk48PbTDpCzQFpmPsmuSwszBL8PM3oZkazX6hA33N42Fbe9eIkay7-ZsJoBG1bPh5lr6Jn8TgjwZbk5xA2&t=fffffffff11c85e00x800a1391 - JavaScript runtime error: 'Page_Validators' is undefined

The code highlighted is:

function ValidatorUpdateIsValid() {
Page_IsValid = AllValidatorsValid(Page_Validators);
}

In scriptresource.axd

Plamen
Telerik team
 answered on 16 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?