Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
307 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
125 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
304 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
388 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
103 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
304 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
2 answers
325 views
NUTSHELL
I want top either open all the files in a folder from the radGrid.  If that cannot be done, then I'd like to open the folder.

DETAIL
I want to add a column to the grid (hyperlink column?) that, wehn clicked, will open all of the PDF files in that folder.  There is an unknown amount in that folder, but it's likely no more than 4.  There could also be no files in that folder and in some cases, the folder may not exist-- the located is a concatenated value from three other fields.

If all the files cannot be opened, then perhaps we can settle for opening the folder-- again, provided it does exist.

I am programming in MS Visual Studio 2012.
I am using Telerik UI for ASP.NET AJAX, v.2014.1.225.45
Rick
Top achievements
Rank 1
 answered on 10 Apr 2014
3 answers
691 views
HI,

I have a couple of questions when doing a load on demand with the combobox, but before that let me explain the scenario:

I have a radcombox with load on demand, this is necessary because my result set rows could be more than 5k total, this is working fine; So lets say I go and select record number 2120 from the 5k list and I saved my changes.

Now when I go to the form to edit the record, I load all values including the selected value into the combobox and that's what's displayed, but if I click the open arrow of the combobox I want to display all the records above and below the 2120 (since my ItemsPerRequest is equal to 50 that will mean I want to display from 2101 to 2150) and I can't find a way to do this since the combobox doesn't know what row in my result set I am or is there anyway to set this value?

The other question is even if that will be the case, how do I make it display the previous records, for example I want to see the previous set, meaning from 2051 to 2100 and so on, I know that the ItemsRequestd works always forward but is there anyway to make it backwards also?

Thanks for your help
Hristo Valyavicharski
Telerik team
 answered on 10 Apr 2014
3 answers
153 views
Hi,
I m using RadHTMLChart. All works but when there are many points at x axis, it over laps and makes a messy look.
Is there any solution to this problem?

Regards,
Danail Vasilev
Telerik team
 answered on 10 Apr 2014
4 answers
174 views
Can i use Radupload / handlers and progress to upload files in a cross domain scenario?

Thanks
Hristo Valyavicharski
Telerik team
 answered on 10 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?