Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
342 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
174 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
324 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
145 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
329 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
423 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
115 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
334 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
359 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
722 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?