Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
166 views
Hi,

I have come across a strange behavior with RadAsyncUpload control in Internet Explorer 9 (version: 9.0.8112.16421). I am disabling the control while a file is being uploaded from client side and once the client upload is completed I am enabling the RadAsyncUpload control. The issue is, the control is disabled while I am uploading a large file but one can click in between the small space between the RadAsyncUpload's fake input and Select button in IE browser and the File Select dialog pop up and from there I can select any file and the AsyncUpload is enabled some how. After all the client upload operation is completed, if I click the Remove button, the file is deleted and a new File Input like the original one is rendered there.

Here is the code I tried.

ASPX:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientFileSelected="OnClientFileSelected"
    OnClientFileUploaded="OnClientFileUploaded" TargetFolder="~/Images/Img/" AllowedFileExtensions=".jpg,.zip"
    MaxFileSize="579371152" MultipleFileSelection="Automatic" UploadedFilesRendering="BelowFileInput">
</telerik:RadAsyncUpload>

JavaScript:
<script type="text/javascript">
    function OnClientFileSelected(sender, args) {
        sender.set_enabled(false);
    }
    function OnClientFileUploaded(sender, args) {
        sender.set_enabled(true);
    }
</script>

I took a sample video of this strange behavior and you can find it here.

Thanks,
Shinu.
Hristo Valyavicharski
Telerik team
 answered on 27 Sep 2013
1 answer
176 views
Hi,

I am creating two listboxes and want to incorporate drag and drop properties.  Both listboxes are populated using a database.  When I am transfering the items from one textbox to another I am trying to update the database, however I am unable to get the productID or value.

My question is how do i retrieve a value from a list box item?

ASP 4.0
Visual Studio 2012
VB.net

Thanks for the help.

Chad-
Princy
Top achievements
Rank 2
 answered on 27 Sep 2013
5 answers
191 views
Hi,

Is there any way to set special days through Javascript? Something like a set_specialDaysArray method? I tried but couldn't get it to work.

Also, in order to add a client-side event handler to the OnDayRender event, isn't it just a matter of putting:

<ClientEvents OnDayRender="RenderADay" />

Doesn't seem to work, it doesn't trigger the event.

Thanks in advance.

Regards,
Nuno
Kostadin
Telerik team
 answered on 27 Sep 2013
1 answer
73 views
Hi Telerik,

We have clients reporting that the spell checker is not suggesting appropriate words.
Can you improve on that?
Thanks,

Keyed In Word

Suggested Word

Kevin

Covin, coven

FedEx

Vodka, Fatigue

Assisgnments  

Assassins

Cutomers

catamaran


Marin Bratanov
Telerik team
 answered on 27 Sep 2013
3 answers
455 views
I am trying to create a confirm notification that will display during a button click event (server side). What I want to do is:

1. Run the click event on postback
2. Check for existing data in a table
3. If data exists pause code and alert the user with the notification and give them the ability to cancel or overwrite the existing data.
4. Continue running the remainder of code.

I have tried the client "args.set_cancel(!window.confirm" on the client side, but this always fires first. I need something like this to pause execution of vb.net code, alert the user and then continue running the code. Is this even possible?
Marin Bratanov
Telerik team
 answered on 27 Sep 2013
2 answers
135 views
This issue ONLY happens on IE 10.  All other browsers and IE10 in Compatibility mode seem to work fine.

I have a simple TabStrip wired into a Simple MultiPage Control

Each MuliPage simply has a RadTextBox on it.
Enter a value on tab 1, then change to Tab 2,  When you go back to Tab 1 the value is entered is not available.

Even if you put an OnTab Click event, the Text is not available in Code Behind.

However, if there was a Button on the Tab and the Button was clicked, you CAN see the value of the textbox AND it will persist across the TabChange

If you use a standard Text Box, the issue disappears.
Please see the below sample code. 
Is there anything i should be doing differently for the valueto be persistant accross the tabchange event.
Again, this ONLY happens on IE 10

   <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
  <telerik:RadTabStrip ID="tbLoan" runat="server" AutoPostBack ="True" EnableViewState="true"    SelectedIndex="0"  OnTabClick="tbLoan_TabClick"
             MultiPageID="mpLoanInput" Orientation="VerticalLeft"   Style="float: left; width: 150px;">
        <Tabs>
            <telerik:RadTab runat="server"  Text="Test1" Value="LENDER"  >
            </telerik:RadTab>
            <telerik:RadTab runat="server"  Text="Test2" Value="LOANINFO"  >
            </telerik:RadTab>
 
        </Tabs>
    </telerik:RadTabStrip>
 
     <telerik:RadMultiPage runat="server" CssClass="multiPage" ID="mpLoanInput" SelectedIndex="0" Width="100%" 
             RenderSelectedPageOnly="true"
         >
     <telerik:RadPageView runat="server" ID="pvLender">
        1 <telerik:RadTextBox ID="RadTextBox1" runat="server" EnableViewState="true" ></telerik:RadTextBox>
         <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
         
     </telerik:RadPageView>
     <telerik:RadPageView runat="server" ID="pvLoanInfo">
        2 <telerik:RadTextBox ID="RadTextBox2" runat="server"></telerik:RadTextBox>
         <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" OnClick ="RadButton1_Click"></telerik:RadButton>
     </telerik:RadPageView>
    
</telerik:RadMultiPage>
Vasil
Telerik team
 answered on 27 Sep 2013
4 answers
213 views
I see all the samples to do the aggregate to the footer. Is it possible to aggregate the child to Parent and do rollup kinda of Treelist?

Any examples would be appreciated.
Marin
Telerik team
 answered on 27 Sep 2013
1 answer
108 views
Hello Guys,
   I am currently trying to use PDFForge to export the OrgChart from a website, but the lines that connect the boxes in the chart do not appear on the preview, nor in the generated PDF. Actually, they appear in white instead of black.
   Could you please let me know whether you have a solution for this?

  Actually, a good alternative to test might be to change the lines width and color, is this possible in the chart?
Thanks!
Peter Filipov
Telerik team
 answered on 27 Sep 2013
1 answer
162 views
I'm trying to connect my datasource (from sproc) to a radtreelist control.

I have added multiple levels with null values in the hierarchy to try to match the requirements for null values to set the nested levels but I am still getting "No records".

Here's a sample of my data:

wbs1        wbs2    wbs3    Name                                                                          PreConDate  DaysSincePrecon
2009.0257                  
2009.0257   ESTR.1             
2009.0257   ESTR.1  U0001   31 Drakestown Road - Main Project   08/04/2010  1147
2009.0257   LEED.1             
2009.0257   LEED.1  U0001   31 Drakestown Road - Main Project   08/04/2010  1147
2010.0662                  
2010.0662   GRES.1             
2010.0662   GRES.1  U0001   102 Creekview Drive 05/24/2013  123
2010.0662   GRES.1  U0002   170E Monmouth Street    05/24/2013  123

What I'm trying to do, is display a page of project numbers (wbs1) all condensed. When I click on the "expand" icon, I'd like it to show all levels that have only the second level (wbs2) and no third level (wbs3). And when I click "expand" on the wbs2, I'd like it to display all of the rows that share the wbs2.  I can change the sproc so that it gives me any configuration, i.e. nulls at some level, 0 at some level, etc.

Here's my aspx code:
<telerik:RadTreeList ID="RadTreeList1" runat="server" DataKeyNames="wbs3" ParentDataKeyNames="wbs1"
        Width="800px" Skin="Windows7" GridLines="Both" AutoGenerateColumns="true" DataSourceId="SqlDataSource1" >
 </telerik:RadTreeList>

 
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:SqlConnectionString %>"
        SelectCommand="dbo.getDataSproc" SelectCommandType="StoredProcedure">
</asp:SqlDataSource>

Thanks in advance.
Gabe
Marin
Telerik team
 answered on 27 Sep 2013
3 answers
357 views
Hi, I have a problem with ajax maneger that does not work with command response, but I need to use the response to the Transmit files.     

pAGE:
 <form ID="FormPnale" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>                              
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
              <AjaxSettings>                
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                  <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="TextNotifi" />                        
                  </UpdatedControls>
                </telerik:AjaxSetting>                
              </AjaxSettings>
            </telerik:RadAjaxManager>
            <div id="page" style="width:auto">
                <div id="header">
                    <div id="tittle">
                        <asp:Label runat="server" ID="HeaderLbl" text="Projeto DocRocket" Font-Size="30pt" /> <br/>  
                        <asp:Label  runat="server" ID="LblAcervo" Font-Size="20pt" Visible="false" meta:resourceKey="LblAcervo" />
                    </div>         
                    <br />
                    <br /> 
                    <div id="loginDisplay" style="text-align:right" >                        
                        <asp:Label runat="server" ID="Loginlbl" Text="Seja bem vindo," />                 
                        <asp:LoginName ID="HeadLoginName" runat="server" />
                        <div>    
                             <asp:LinkButton runat="server" ID="TrocarLkBtn" Text="Trocar Senha" />
                        <br/>
                             <asp:LinkButton runat="server" ID="VoltarLkBtn" Text="Voltar" />                
                        </div>
                    </div>
                    <div id="main">                       
                        <div id="Upload">                
                            <asp:LinkButton ID="IncluirBtn" runat="server" OnClientClick="javascript:OpenFTPWnd();return false;" Text="Acessar FTP" />                             
                        </div>
                        <div id="ErrorMessage" runat="server" style="text-align: center;" />
                        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0" GridLines="None"  >
                            <MasterTableView AutoGenerateColumns="false" AllowSorting="true" ClientDataKeyNames="Pasta, Down" PageSize="20" CommandItemDisplay="Top" 
                            CommandItemSettings-ShowAddNewRecordButton="false" >                                                     
                                <Columns>
                                    <telerik:GridBoundColumn UniqueName="ClNome" DataField="Nome" HeaderText="Nome" />
                                    <telerik:GridBoundColumn UniqueName="ClPasta" DataField="Pasta" HeaderText="Pasta" />
                                    <telerik:GridBoundColumn UniqueName="ClData" DataField="Data" HeaderText="Data" />
                                    <telerik:GridBoundColumn UniqueName="ClPag" DataField="Paginas" HeaderText="Páginas" />                            
                                    <telerik:GridBoundColumn UniqueName="ClEstado" DataField="Estado" HeaderText="Estado" />                                             
                                    <telerik:GridButtonColumn CommandName="Down" UniqueName="ClDown"  meta:resourceKey="DownLnk" />                                                        
                                    <telerik:GridButtonColumn CommandName="Delete" UniqueName="ClDelete" ConfirmDialogType="RadWindow" ConfirmText="Delete ?" ConfirmDialogHeight="25px" ConfirmDialogWidth="250px" ConfirmTitle="Delete" meta:resourceKey="DeleteLnk"/>                                                        
                                </Columns>                                                                     
                            </MasterTableView>    
                            <SortingSettings SortedBackColor="Transparent" EnableSkinSortStyles="false" />                                               
                            <PagerStyle PageSizeControlType="RadComboBox" AlwaysVisible="true"/>
                            <ClientSettings EnableRowHoverStyle="true" AllowRowsDragDrop="True"/> 
                        </telerik:RadGrid>               
                    </div>    
                </div>  
            </div>  
             <telerik:RadWindowManager ID="RadWindowsManager1" runat="server" Behaviors="Move" VisibleStatusbar="false" style="z-index:90000" ShowContentDuringLoad="false" modal="true" ReloadOnShow="true">
                <Windows>
                    <telerik:RadWindow runat="server" ID="FTPWnd" Behaviors="Close"/>                   
                </Windows>
            </telerik:RadWindowManager>
             <telerik:RadNotification ID="TextNotifi" runat="server" Position="TopCenter" OffsetY="30" Skin="Office2010Blue" 
            Width="300px" EnableRoundedCorners="true" Height="88px" AutoCloseDelay="30000" KeepOnMouseOver="False"/>            
        </form>     
    </body>

CODE  Behind:

   If e.CommandName = "Down" Then

            'Processo não funciona com arquivos grandes
            Try
                'Passar um parametro de Pasta
                Dim Pasta As String = e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("Pasta").ToString()

               

                'configurando o botão Down para fazer download do executavei para o usuário.
                Response.ContentType = "application/octet-stream"
                Response.AppendHeader("Content-Disposition", "attachment; filename=" & Pasta & ".exe")
                Response.TransmitFile(node.Attributes("path").Value & "\" & Usuario & "\$FTP$\Saida\" & Pasta & ".exe")
                Response.End()

            Catch ex As Exception
                TextNotifi.Title = Convert.ToString(GetGlobalResourceObject("CommonText", "Error"), CultureInfo.CurrentCulture)
                TextNotifi.Text = ex.Message
                TextNotifi.Show()
                e.Canceled = True
                Exit Sub
            End Try
        End If

Eyup
Telerik team
 answered on 27 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?