Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
52 views
The editors design view is empty and to small in Chrome 34 if the editor is in a radWindow. 

<asp:Button runat="server" ID="btnOpenPopup" Text="Open poup" OnClick="btnOpenPopup_Click" />
 
        <telerik:RadWindow ID="rdwNewAddressAtLocation" runat="server" Width="805" Height="450">
            <ContentTemplate>
                <telerik:RadEditor ID="redNotes" Skin="Default" NewLineBr="true" height="200" width="400"
                    runat="server" Language="sv-SE" StripFormattingOnPaste="MSWordRemoveAll" ContentFilters="FixEnclosingP">
                </telerik:RadEditor>
            </ContentTemplate>
        </telerik:RadWindow>
protected void btnOpenPopup_Click(object sender, EventArgs e)
    {
        rdwNewAddressAtLocation.VisibleOnPageLoad = true;
        redNotes.Content = "<b>Testing</b>";
    }
Mattias Björklund
Top achievements
Rank 1
 answered on 11 Apr 2014
3 answers
190 views
Hi,
We've got a RadScheduler in MonthView that displays a large amount of appointments per cell, somewhere in the range of 20 appointments per day. We want to display all the appointments (i.e we don't want to allow drill down into month). We have achieved this by setting the property that sets the number of appointments displayed in monthview.

Our problem now is that the page takes a ridiculous amount of time to render. The problem isn't serverside, as the request to the server happens quickly.
The problem occurs on the client side .... Is there some sort of optimisation we can make to allow the Scheduler to render more efficiently? It takes up to a minute for it to render (and we get those "script taking a while to run" messages which we need to allow to continue)..
Is this just a limitation on what is possible with the scheduler? Can someone confirm that the Scheduler just attempts to render/process the appointments for the date range supplied?

Thanks
Plamen
Telerik team
 answered on 11 Apr 2014
8 answers
310 views
Hi,

today I switch to the Q2 2013 version and in many styles (like Office2010Blue) the text inside the button isn't centered correctly anymore. I looked into the rendered HTML code and I found the following style inside the button:

style="width:100%;padding-left:0;padding-right:0;padding-left:4px;"

I'm not sure if this is a design bug or a feature or if I have to do something to change this. But the two padding-left styles look a little bit strange for me.
So, is there any way to center the text correctly again!?

Best regards
Martin Horst





Bozhidar
Telerik team
 answered on 11 Apr 2014
3 answers
159 views
Using AsyncUpload that previews images via a radlistview before user selects final upload (also allowing image removal)

Using the following javascript to delete all file inputs so as not to show the normal message upon file selection:
function filesUploaded(sender, args) {$find("<%= RadAjaxPanel1.ClientID%>").ajaxRequest() sender.deleteAllFileInputs(); //cleans up any not removed from fileuploaded   }

Have also added client side validation as per this great demo:  http://demos.telerik.com/aspnet-ajax/asyncupload/examples/validation/defaultvb.aspx

All works well accept that the error messages will only appear if user is only uploading one or many files that are all invalid.  When using multiple file upload if one of the files is valid, the function mentioned above with deleteAllFileInputs appears to remove the files with error messages as well (by design, I'd imagine). 
I'd obviously like the user to see the files with error messages only.
Is there any way to limit deleteAllFileInputs to just the validated files?

Thanks

Glenn



Hristo Valyavicharski
Telerik team
 answered on 11 Apr 2014
6 answers
314 views
Hi,
in my project , i need to expand just 2 level in ORG Chart 
i try to expand a specific node but it doesn't work ! 
is their a simple way to do it ? 
thank you 
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2014
2 answers
131 views
hi all,
I have a video saved in database on a server.
On a click of a button how can i download that video and save it in a folder on a users local machine.
Any idea or sample code.
Thanks in advance
Princy
Top achievements
Rank 2
 answered on 11 Apr 2014
2 answers
309 views

In a formTemplate I have a rad combobox so that I can look at a dropdown of present items and type in new ones if needed. Looks fine on the screen but clicking on update or insert the new item does not show up.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TRTaskBuilder.aspx.cs" Inherits="TRTaskBuilder" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all" DecorationZoneID="hr-zone"></telerik:RadFormDecorator>
        <div id="hr-zone">
            <telerik:RadGrid ID="RadGridTasks" runat="server" DataSourceID="TRHRTask" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowAutomaticDeletes="True">
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="TaskID" DataSourceID="TRHRTask" AutoGenerateColumns="false">
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="TaskID" DataSourceID="TRHRTaskNotify" CommandItemDisplay="Top" AutoGenerateColumns="False">
                            <ParentTableRelation>
                                <telerik:GridRelationFields DetailKeyField="TaskID" MasterKeyField="TaskID" />
                            </ParentTableRelation>
                            <Columns>
                                <telerik:GridDropDownColumn DataSourceID="Users" ListValueField="doc_id" ListTextField="username" UniqueName="username" DataField="doc_id" HeaderText="User to notify"></telerik:GridDropDownColumn>
                                <telerik:GridBoundColumn ReadOnly="True" DataField="ID" Visible="false" UniqueName="ID"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn ReadOnly="True" DataField="TaskID" Visible="false" UniqueName="TaskID"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn ReadOnly="True" DataField="UserID" Visible="false" UniqueName="UserID"></telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                    <Columns>
                        <telerik:GridBoundColumn ReadOnly="True" DataField="TaskID" UniqueName="TaskID" Visible="false" HeaderText="ID"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TaskCategory" UniqueName="TaskCategory" HeaderText="Category"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TaskName" UniqueName="TaskName" HeaderText="Name"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TaskDescription" UniqueName="TaskDescription" HeaderText="Description"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TaskInterval" UniqueName="TaskInterval" HeaderText="Interval"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn ReadOnly="True" DataField="TaskLastDate" UniqueName="TaskLastDate" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn ReadOnly="True" DataField="TaskCreatedDate" UniqueName="TaskCreatedDate" Visible="false"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="TaskEndDate" UniqueName="TaskEndDate" HeaderText="End Date"></telerik:GridBoundColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table>
                                <tr>
                                    <td style="vertical-align: top; white-space: nowrap;">
                                        <label>Category</label><br />
                                        <telerik:RadComboBox ID="TaskCategory" SelectedValue='<%# Bind("TaskCategory") %>' DataSourceID="TaskCategorySelect" runat="server" TabIndex="201" DataTextField="TaskCategory" DataValueField="TaskCategory" AllowCustomText="true" AppendDataBoundItems="true" >
                                        </telerik:RadComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top; white-space: nowrap;">
                                        <label>Name</label><br />
                                        <asp:TextBox ID="TaskName" Text='<%# Bind( "TaskName") %>' runat="server" Style="width: 150px" TabIndex="202"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top; white-space: nowrap;">
                                        <label>Description</label><br />
                                        <asp:TextBox ID="TaskDescription" Text='<%# Bind( "TaskDescription") %>' runat="server" Style="width: 150px" TabIndex="203"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top; white-space: nowrap;">
                                        <label>Interval</label><br />
                                        <asp:DropDownList ID="TaskInterval" SelectedValue='<%# Bind("TaskInterval") %>' AppendDataBoundItems="true" runat="server" Style="width: 150px" TabIndex="204">
                                            <asp:ListItem Selected="True" Text="Select" Value="" />
                                            <asp:ListItem Text="Select Interval" Value="0" />
                                            <asp:ListItem Text="Once" Value="1" />
                                            <asp:ListItem Text="Every Month" Value="2" />
                                            <asp:ListItem Text="Every 3 Months" Value="3" />
                                            <asp:ListItem Text="Every 6 Months" Value="4" />
                                            <asp:ListItem Text="Each Year" Value="5" />
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align: top; white-space: nowrap;">
                                        <label>TaskEndDate</label><br />
                                        <telerik:RadDatePicker ID="TaskEndDate" DbSelectedDate='<%# Bind("TaskEndDate") %>' runat="server" Style="width: 150px" TabIndex="205"></telerik:RadDatePicker>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'></asp:Button> 
                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
                                    </td>
                                </tr>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                </MasterTableView>
            </telerik:RadGrid>
        </div>
        <asp:SqlDataSource runat="server" ID="TRHRTask" ConnectionString="<%$ ConnectionStrings:Client_Files %>" ProviderName="System.Data.SqlClient"
            SelectCommand="SELECT * FROM [TRHRTasks] where TaskDeleted=0 ORDER By TaskCategory"
            UpdateCommand="UPDATE [TRHRTasks] SET [TaskCategory] = @TaskCategory,[TaskName] = @TaskName,[TaskDescription] = @TaskDescription,[TaskInterval] = @TaskInterval,[TaskLastDate] = CURRENT_TIMESTAMP,[TaskEndDate] = @TaskEndDate where TaskID=@TaskID"
            DeleteCommand="UPDATE [TRHRTasks] set TaskDeleted=1 where TaskID = @TaskID"
            InsertCommand="INSERT INTO [TRHRTasks] ([TaskCategory],[TaskName],[TaskDescription],[TaskInterval],[TaskLastDate],[TaskCreatedDate],[TaskEndDate]) VALUES (@TaskCategory,@TaskName,@TaskDescription,@TaskInterval,CURRENT_TIMESTAMP,CURRENT_TIMESTAMP,@TaskEndDate)" >
            <InsertParameters>
                <asp:Parameter Name="TaskCategory" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskName" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskDescription" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskInterval" Type="Int16"></asp:Parameter>
                <asp:Parameter Name="TaskLastDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskCreatedDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskEndDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskDeleted" Type="Int16"></asp:Parameter>
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="TaskID" Type="Int32"></asp:Parameter>
                <asp:Parameter Name="TaskCategory" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskName" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskDescription" Type="string"></asp:Parameter>
                <asp:Parameter Name="TaskInterval" Type="Int16"></asp:Parameter>
                <asp:Parameter Name="TaskLastDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskCreatedDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskEndDate" Type="datetime"></asp:Parameter>
                <asp:Parameter Name="TaskDeleted" Type="Int16"></asp:Parameter>
            </UpdateParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource runat="server" ID="TRHRTaskNotify" ConnectionString="<%$ ConnectionStrings:Client_Files %>" ProviderName="System.Data.SqlClient"
            SelectCommand="SELECT [last_name]+', '+[first_name] as username,[TRHRTaskNotify].[ID],[TaskID],[UserID],doc_id FROM [TRHRTaskNotify],[TRHR] where doc_id=[TRHRTaskNotify].UserID and TaskID=@TaskID"
            UpdateCommand="UPDATE [client_files].[dbo].[TRHRTaskNotify] set [UserID] = @doc_id where ID=@ID"
            DeleteCommand="DELETE FROM [client_files].[dbo].[TRHRTaskNotify] where ID=@ID"
            InsertCommand="INSERT INTO [client_files].[dbo].[TRHRTaskNotify] ([TaskID],[UserID]) VALUES (@TaskID,@doc_id)">
            <SelectParameters>
                <asp:Parameter Name="TaskID" Type="Int32"></asp:Parameter>
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:SqlDataSource runat="server" ID="Users" ConnectionString="<%$ ConnectionStrings:Client_files %>" ProviderName="System.Data.SqlClient"
            SelectCommand="SELECT [doc_id],[last_name]+', '+[first_name] as username FROM [TRHR] order by last_name" />
        <asp:SqlDataSource runat="server" ID="TaskCategorySelect" ConnectionString="<%$ ConnectionStrings:Client_Files %>" ProviderName="System.Data.SqlClient"
            SelectCommand="SELECT distinct [TaskCategory] FROM [TRHRTasks] where TaskDeleted=0 ORDER By TaskCategory" />
    </form>
</body>
</html>
Princy
Top achievements
Rank 2
 answered on 11 Apr 2014
5 answers
398 views
Do you have any documention that talks of the color dot definitions for your RadAsyncUpload control.
I know that there are a few ways a user can receive a red dot on a document upload.
Are users are asking for a message or legend that would tell them what the color dots mean.
For the red dot is the reason available on a client side event.

Thanks
Shinu
Top achievements
Rank 2
 answered on 11 Apr 2014
2 answers
109 views
Hey Guys,

When setting link properties in the editor using the Link Properties button, if you use the Target drop-down menu to set where the link will open, then edit the properties of another link, the Target drop-down menu shows the selection from last time the window was opened, but when you save, the link target is NOT set.

For instance, if you set a link target to : "New Window", it correctly adds  target="_blank" to the link. If you then select another link and click the link properties button, the Target drop-down menu still shows "New Window", but when you click OK, no target is specified.  To set a target, the target drop-down menu has to be changed to a different value, and then set back to the desired value in order for it to properly update the link in the document.

I've recorded a video so you can visually see the issue that we're experiencing.
http://images.publicaster.com/ImageLibrary/account116/documents/LinkTrackingIssueSettingTarget.mp4

Ironically I'm able to reproduce this same issue using your editor here on your forums page.

Please let me know what change we can make to correct this behavior.

Thanks!
-Mark
Mark Kucera
Top achievements
Rank 1
 answered on 10 Apr 2014
3 answers
313 views
Dear support,
My senario is a bit complicated,

I am using IE8 standard mode and telerik Q2 2013
I have a main page.
Inside the main page I have an Iframe that holds another page, let's call it sub page.
My sub page holds the grid inside absolute div.
My grid use static headers.
The Grid height is 100%
When First loading the page, the grid looks fine.
When I refresh the Iframe that holds this sub page (setting different src for the iframe), the grid fills the whole space but the data area has height 300px inline. (where class = rgDataDiv).

to simplify things:
<body>
<some header/>
<iframe>
<absolute div/>
<absolute div>
<rad grid height=100%/ with static headers>
</absolute div>
</iframe>
</body>

How do i solve this problem?
Thanks



​
Pavlina
Telerik team
 answered on 10 Apr 2014
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?