Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 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
367 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
92 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
159 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
80 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
120 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
300 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
4 answers
117 views
Hi,

AsyncUpload Control  drop (carry) uploaded image file from "TemporaryFolder" to "TargetFolder" when any postback.

I want to control this drop fonction. I think a functionality like :   AsyncUpload1.AutoDrop = False;    And   AsyncUpload1.Commit();   

For ex:   error occurs when I run this code

1. I choose a image file via AsyncUpload 
2. AsyncUpload  upload Image File to Temprorary folder
3. I click to btn1  (I try to get Image File  Data in this moment and delete image file from Temp Folder after my process ) 
4. Error occurs


Do you have a solution for this scenario?


Could not find file 'D:\PRO\XBonWebSite\Co\Images\Test\Test\13801147907892e4jam1.jpg'.




    <asp:Panel ID="pnl1" runat="server">
        <asp:Label ID="lbl1" runat="server" Text="xx"></asp:Label>
        <telerik:RadAsyncUpload ID="AsyncUpload1" runat="server" OnFileUploaded="AsyncUpload1_FileUploaded" MaxFileSize="2097152" AllowedFileExtensions="jpg,png,gif"   AutoAddFileInputs="false" Localization-Select="Resim Ekle" Localization-Remove="Sil" TargetFolder="~/Co/Images/Test/Org/" TemporaryFolder="~/Co/Images/Test/Test/" HttpHandlerUrl="~/Co/Handlers/TelerikAsyncUploadHandler.ashx">
     </telerik:RadAsyncUpload>
    </asp:Panel>
    <asp:Button ID="btn1" runat="server" Text="btn1" OnClick="btn1_Click" />




  protected void Page_Load(object sender, EventArgs e)
    {
        lbl1.Text = DateTime.Now.ToString();
    }
    
protected void btn1_Click(object sender, EventArgs e)  
    {      
       var len = AsyncUpload1.UploadedFiles[0].InputStream.Length;    
    }

    
protected void AsyncUpload1_FileUploaded(object sender, Telerik.Web.UI.FileUploadedEventArgs e){
        lbl1.Text +=
" FileUploaded";  
    }





Haluk
Top achievements
Rank 1
 answered on 27 Sep 2013
5 answers
508 views
Hello,

i think my Problem has something to do with the fact that my button is in a different contentplaceholder.

I will explain it.

<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
<telerik:RadTabStrip ID="radtsVermittlerBearbeiten" runat="server" Skin="Windows7" MultiPageID="rmpVermittlerBearbeiten"
    SelectedIndex="1" CssClass="tabStripVRbeTopBoarder" OnClientTabSelected="OnClientTabSelected">
    <Tabs>
        <telerik:RadTab IsSeparator="true" Width="3px">
        </telerik:RadTab>
        <telerik:RadTab Text="Allgemein" Value="1">
        </telerik:RadTab>
        <telerik:RadTab IsSeparator="true" Width="2px">
        </telerik:RadTab>
        <telerik:RadTab Text="Sparte" Value="2">
        </telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="rmpVermittlerBearbeiten" runat="server" SelectedIndex="1">
    <telerik:RadPageView ID="radpvSeparator1" runat="server" Enabled="false"></telerik:RadPageView>
    <telerik:RadPageView ID="radpvAllgemein" runat="server" CssClass="tabStipVRBe">
    </telerik:RadPageView>
    <telerik:RadPageView ID="radpvSeparator2" runat="server" Enabled="false"></telerik:RadPageView>
    <telerik:RadPageView ID="radpvSparte" runat="server" CssClass="tabStipVRBe">
    </telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Content>

I have this RadTabStrip in this ContentPlaceHolderID="cphContent".

If someone click on any Tab i call this jquery Function:

function OnClientTabSelected(sender, eventArgs) {
    var tab = eventArgs.get_tab();
    var tabName = tab.get_text();
    switch (tabName) {
        case 'Allgemein':
            break;
        case 'Sparte':
            var radButton = $find("rbtnWeiterSpartenAnlegen");
            radButton.set_visible(true);
            break;
    };
}

in case "Sparte" i try to find "rbtnWeiterSpartenAnlegen" which is in a diffrent ContentPlaceHolder

<asp:Content ID="Content4" ContentPlaceHolderID="cphFooter" runat="server">
<div class="btnLeiste_zeile">
    <telerik:RadButton ID="rbtnWeiterSpartenAnlegen" runat="server" Text="Weiter" Width="150px"></telerik:RadButton>
</asp:Content>

The result is, i get null back. So what to do now?

I hope someone can help me. Thank you
Daniel
Top achievements
Rank 1
 answered on 27 Sep 2013
1 answer
111 views
Hello,

I am trying to achieve a combination of a stacked and unstacked Columnchart as shown in the screenshot.

If I set the Stacked property of all 3 series to true, the columns are shown stacked. If I set one to false and the others to true, none of them is stacked.

thanks
Stefan
Danail Vasilev
Telerik team
 answered on 27 Sep 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?