Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
265 views
Manual upload is not working
i want create something like filemail.com
file should be uploaded and that link has to be send to sender and receiver.
but both uploading of file and mail has to happen in one single button. im not much familiar with programming and new to telerik controls. examples in telerik is so not so clear.
for this purpose i used RADASYNCUPLOAD with manual upload and RADBUTTON.
 Everything was fine but no file uploaded.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            width: 6px;
        }
    </style>
   
 
    
 
    
 
    
 
</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>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
        
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
        
        <table class="auto-style1">
            <tr>
                <td>To (email):</td>
                <td> <telerik:RadTextBox ID="RadTextBoxTo" runat="server" Height="16px" OnTextChanged="RadTextBoxTo_TextChanged" Width="521px"></telerik:RadTextBox>

                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>From (email): </td>
                <td> <telerik:RadTextBox ID="RadTextBoxFrom" runat="server" Height="16px" Width="525px"></telerik:RadTextBox>
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>Subject:</td>
                <td>
                    <telerik:RadTextBox ID="RadTextBoxSubject" Runat="server" Height="18px" Width="528px">
                    </telerik:RadTextBox>
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>Message </td>
                <td>
                    <telerik:RadTextBox ID="RadTextBoxBody" Runat="server" Height="112px" Width="530px">
                    </telerik:RadTextBox>
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
    
<div style="height: 24px">
    <script type="text/javascript" id="telerikClientEvents1">
        //<![CDATA[

        function RadButtonSend_Clicked(sender, args) {
            var upload = $find('<%=RadAsyncUpload1.ClientID%>');
            upload.startUpload();
        }
        //]]>
</script>
        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" DropZones="Dropzone1" ManualUpload="True" MultipleFileSelection="Automatic" Skin="Telerik" >
        </telerik:RadAsyncUpload>
    </div>
        <br />

    
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                       
                    <telerik:RadButton ID="RadButtonSend" runat="server" Text="Send" OnClick="RadButton1_Click" OnClientClicked="RadButtonSend_Clicked">
                    </telerik:RadButton>
                    
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:Label ID="LabelMessage" runat="server"></asp:Label>
                </td>
                <td class="auto-style2">&nbsp;</td>
            </tr>
        </table>
            
        <br />
&nbsp;<br />
        <br />
&nbsp;<br />
        <br />
    </form>
</body>
</html>

Plamen
Telerik team
 answered on 06 Mar 2014
3 answers
365 views
How can I go about clearing the textbox when an entered value exceeds the min or max value instead of setting the value to the min or max?
Vasil
Telerik team
 answered on 06 Mar 2014
5 answers
241 views
  • Rad ASP.NET Ajax Controls Version: 2013.2.717.40
  • ASP.NET Version: 4.0.30319
  • .NET 4.0
  • Browser: IE 10

Issue: I'm trying to programmatically add ajax settings so that a asp:button click updates a RadGrid on a User Control.  The reason that this is being done programmatically is because the User Control is only visible to specific users, and an error was occurring when a user that the Control wasn't visible on used the page.

What is happening, is I get the loading pannel spinner appearing over the button and RadGrid area, but no data.  If there is a postback the data shows, or if you manually click the refresh button the data shows on the Grid.  

The code pieces in question, there is a site master with the ajaxmanager, and a proxymanager on the user control and the page.  The page checks if the user is an Admin then calls a function to set the user control to visible and does a few small things and registers the button with the grid and loading panel to the UserControl's proxymanager.  Here are the snippets of the ajax C# and the grid.

Site.MasterPage
<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Skin="Default" />

UserControl.ascx
<div style="padding: 0px; border: solid 1px #000; border-top: none;">
            <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_OnNeedDataSource"
                GridLines="None" ShowStatusBar="true" AllowPaging="true" PageSize="15" AllowSorting="true"
                style="min-width:925px">
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" TableLayout="Fixed">
                    <CommandItemSettings ShowAddNewRecordButton="false" ShowExportToCsvButton="false"
                        ShowExportToExcelButton="false" ShowExportToPdfButton="false" ShowExportToWordButton="false"
                        ShowRefreshButton="true" />
                    <Columns>
                        <telerik:GridBoundColumn UniqueName="Date" DataField="Date" HeaderText="Date" Groupable="false" />
                        <telerik:GridBoundColumn UniqueName="Guid" DataField="Guid" HeaderText="Guid" Groupable="false" />
                        <telerik:GridBoundColumn UniqueName="Name" DataField="Name" HeaderText="Name" Groupable="false" />
                        <telerik:GridBoundColumn UniqueName="Value" DataField="Value" HeaderText="Value"
                            Groupable="false" />
                    </Columns>
                </MasterTableView>
                <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            </telerik:RadGrid>
        </div>
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
       </AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" />

Default.cs for the page that is being loaded.
protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                   if (User.IsInRole("Admin"))
                   {
                            LoadDebugInfo();
                            DebugInfoDisp.RegisterRadGrid();
                            DebugInfoDisp.RadAjaxProxy.AjaxSettings.AddAjaxSetting(button, DebugInfoDisp.RadAjaxLoadingPanel);
                            DebugInfoDisp.RadAjaxProxy.AjaxSettings.AddAjaxSetting(button, DebugInfoDisp.RadAjaxGrid);                   
                    }
            }
}

I'm still learning to use the ajax controls, I'm not sure what I have wrong.  The doc's I have used to get to this point are:
http://www.telerik.com/help/aspnet-ajax/ajax-control-not-updated.html
http://www.telerik.com/help/aspnet-ajax/ajax-add-ajaxsettings-programmatically.html


Maria Ilieva
Telerik team
 answered on 06 Mar 2014
2 answers
81 views
I installed the Q1 2014 package and the components are not showing in the visual studio toolbox under my framework 4.0 projects.

It is only working by default in framework 4.5 projects.

In framework 4.0, I can add them manually with the "Choose toolbox elements" option and
by referencing the 4.0 Telerik UI dll, but they are not classified by
categories as it is normally by default with telerik.

I tried resetting
the toolbox and using the Telerik toolbox configurator but it doesn't work.


Am I the only one having that problem?

Thanks
Mathieu
Top achievements
Rank 1
 answered on 06 Mar 2014
4 answers
252 views
Does Telerik have, or does anyone know of a way to display a "book looking" viewer in ASP.net?
Like a flipbook of some sort? To display pdf's, etc.
Examples:
http://ecatalog.marykay.com/us_en-us/GetLatest.aspx?d=www.marykay.com&m=0&t=Look_Book
http://www.ismartlook.com/
http://magazine.powerblocktv.com/t/7978

Thanks,
~bg
Rumen
Telerik team
 answered on 06 Mar 2014
2 answers
95 views
hi,
i want to know how to bind a nested collection with povit grid .e.g
public class Product {

            public int ProdcutId { get; set; }
            public string ProductName { get; set; }
            public List<ProductDetail> ProductDetailCollection { get; set; }

        }

        public class ProductDetail {

            public int DetailId { get; set; }
            public string ProductClass { get; set; }
            public string ProductColor { get; set; }
            public int Qty { get; set; }
        }
and so on...

now we will bind the Collection of Product as a data source with PovitGrid. I want to know how can i bind ProductDetailCollection  with Povit grid column, i am unable to understand how we can use IValueConverter and ICompare in this case please help me to get out of this issue. waiting for your qucik rep.

Thanks

Imdad

Imdad Turi
Top achievements
Rank 2
 answered on 06 Mar 2014
0 answers
69 views
Is it possible that items can be expandable in up direction?
Like this:
    1c) ----
    1b) ----
    1a) ----
1.  ----
Damir
Top achievements
Rank 1
 asked on 06 Mar 2014
1 answer
133 views
Hi,
  I want to add data to a grid which is already binded to a data source. I want to have the  user copy and paste data from excel to a text box, and has a button which when clocked should add the data to the datagrid. I am looking to add only one column. The grid has multiple columns, but is is only one column of data that needs to be added as new rows to the grid.
Thanks,
Princy
Top achievements
Rank 2
 answered on 06 Mar 2014
2 answers
66 views
Hello

How to change the "AllDay" text / label in Agenda View ?

Setting Localization-AllDay="my text" works for the other views but not for the Agenda View.

How can I achieve this ? Is-it a bug ?

Thanks
MI87
Top achievements
Rank 1
 answered on 06 Mar 2014
3 answers
103 views
Hi,

Is it possible to achieve a PanelBar-like behavior with Menu?  I'm trying to use PanelBar, but horizontally, where the panes expand left and right.  If this is not an option, would it perhaps be possible to use a Splitter to emulate an accordion feel?

Thanks for the help!

Regards,
Brian Chambers
Kate
Telerik team
 answered on 06 Mar 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?