Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
87 views
i am new to this I would like to help me please I have a RadAsyncUpload and RadBinaryImage when loadinga picture from the photo RadAsyncUpload shown in the image RadBinaryImage but when I choose another image that shows nothing I RadBinaryImage I have this code
                   <telerik: RadAsyncUpload runat = "server" ID = "BtnExmaminarLogo"
                                               MaxFileInputsCount = "1" OnClientFileUploaded = "fileUploaded"
             OnFileUploaded = "BtnExmaminarLogo_FileUploaded" AllowedFileExtensions = "jpeg, jpg, gif, png, bmp"
                                               OnClientValidationFailed = "validationFailed" Width = "100%" Height = "100%">
             Select="Elegir <Localization Logo" Remove="Elegir Otra" Cancel="Cancelar" />
I want that when elgir "Choose Other" in the RadAsyncUpload not show the image the bone RadBinaryImagethis blank that do not know how please help  
Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
258 views

Hello ,

We are facing a sporadic issue when using the RadUpload control in our website.

The application is hosted    in a load balanced server and the session is stateless.

This is what is happening. If the user uploads 10 files (then it creates 10 temp files on the server in RadUploadTemp folder.)We have 2 app servers and when the user access the server, it might get connected to appserver1. But there is no guarentee that for all the 10times it tries to access the server, it will always go to appserver1 as they are loadbalanced. The moment it hits appserver2, we get file not found exception. If it always hits appserver1 then all the files will be uploaded successfully

We are get the error every now and then. Is there any configuration that can be set in the control that would make the control work without issues in case where the load balancing is set and the session is stateless?


Thank you
Regards
Pankaj

Peter Filipov
Telerik team
 answered on 29 Feb 2012
1 answer
166 views
I am trying to get jquery to handle the delivery of a message if the user tries to upload a file that is open. I am using the sample from here to work with. I know I must have missed something because the example from the link does what I want it to do but I am getting the script errors from below from my page.

Microsoft JScript runtime error: Exception thrown and not caught
Microsoft JScript runtime error: Unhandled Error in Silverlight Application [ScriptObject_InvokeFailed]

confusing because this is not a silverlight application but an ASP.NET

here is my client side code from the .ascx file.

<telerik:RadCodeBlock ID="RadFileUploadCodeBlock" runat="server">
 
    <script type="text/javascript">
        //<![CDATA[
        function validationFailed(sender, eventArgs) {
            $(".ErrorHolder").append("<p>Validation failed for '" + eventArgs.get_fileName() + "'.</p>").fadeIn("slow");
        }
        function closeDataContainer() {
            $('div[id$=datacontainer]').hide('slow');
        }
        //]]>
    </script>
 
</telerik:RadCodeBlock>
 
 
<div id="container">
    <div id="content-container">
        <div id="content">
            <telerik:RadProgressManager runat="server" ID="RadProgressManager1" />
            <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" MultipleFileSelection="Disabled"
                OnClientValidationFailed="validationFailed" AllowedFileExtensions="xls, xlsx"
                AutoAddFileInputs="True" Height="25px" Width="250px">
                <FileFilters>
                    <telerik:FileFilter Description="*.xls; *. xlsx" Extensions="xls, xlsx"></telerik:FileFilter>
                </FileFilters>
            </telerik:RadAsyncUpload>
            Select files to upload (xls, xlsx)
        </div>
        <div id="aside">
            <asp:Button runat="server" ID="BtnSubmit" Text="Process File" OnClick="BtnSubmit_OnClick" />
        </div>
        <telerik:RadProgressArea runat="server" ID="RadProgressArea1" Width="582px">
        </telerik:RadProgressArea>
        <div id="Div1">
            <asp:PlaceHolder ID="MessagePlaceHolder" Visible="false" runat="server"></asp:PlaceHolder>
        </div>
        <!-- this is used for client side delivery of AsyncUpload Failure messages -->
        <div class="ErrorHolder">
        </div>
    </div>
</div>


Plamen
Telerik team
 answered on 29 Feb 2012
3 answers
104 views
I have an existing site and Im starting to use telerik controls in the site but Im getting this javascript error.

this.get_tree() is null


Im using an existing ajaxControlToolkit.TabContainers. 
  1. On the first tab you click a button and it displays a third tab containing a RadFileExplorer 
  2. now you click on the first tab the 3rd tab goes away
  3. then click on the second tab and the javascript error occurs.


This is some sample code to reproduce it (VB.net 4.0)

Protected Sub tabContainer1_ActiveTabChanged(sender As Object, e As System.EventArgs)
    If (tabContainer1.ActiveTabIndex = 0 Or tabContainer1.ActiveTabIndex = 1) Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub Page_Load(sender As Object, e As System.EventArgs)
    If Not IsPostBack Then
        With tabContainer1.Tabs(2)
            .Enabled = False
            .Visible = False
        End With
    End If
End Sub
 
Protected Sub OpenNewTab_Click(sender As Object, e As System.EventArgs)
    With tabContainer1.Tabs(2)
        .Enabled = True
        .Visible = True
    End With
    tabContainer1.ActiveTab = tabContainer1.Tabs(2)
End Sub


<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" ScriptMode="Release" AsyncPostBackTimeout="60000" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
    </Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
 <div>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <ajaxControlToolKit:TabContainer ID="tabContainer1"  runat="server"
                ActiveTabIndex="0" AutoPostBack="True"
                     onactivetabchanged="tabContainer1_ActiveTabChanged">
        <ajaxControlToolKit:TabPanel ID="Tab1" runat="server">
            <HeaderTemplate>
                One 
            </HeaderTemplate>
            <ContentTemplate>
            Randon <br />Stuff
            <br />Click here to start>><asp:Button runat="server" ID="OpenNewTab" Text="OpenNewTab"
                    onclick="OpenNewTab_Click" />
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab2" runat="server">
            <HeaderTemplate>
                Two 
            </HeaderTemplate>
            <ContentTemplate>
            More Random Stuff<br /><br />11111111
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
        <ajaxControlToolKit:TabPanel ID="Tab3" runat="server">
            <HeaderTemplate>
                Three 
            </HeaderTemplate>
            <ContentTemplate>
            problem here<br />
 
            <telerik:RadFileExplorer runat="server" ID="editArticleImagePathEditor" ></telerik:RadFileExplorer>
            </ContentTemplate>
        </ajaxControlToolKit:TabPanel>
    </ajaxControlToolKit:TabContainer>
 
        </ContentTemplate>
</asp:UpdatePanel>
 
</div>
</form>
Dobromir
Telerik team
 answered on 29 Feb 2012
1 answer
141 views
Hello,

I'm building an OrgChart programatically and i want to get certain nodes. I don't find any way of doing this. The only method i found is 'GetNodeByHierarchicalIndex' but i can't get it to work. What is the int[] parameter that you need to pass.

Are there any other methods to get nodes etc...? For now i can manage to use GetAllGroupItems and looping the items and evaluating their level. It would be nice to get all elements for a specific level.

Regards,

Hans
Peter Filipov
Telerik team
 answered on 29 Feb 2012
3 answers
156 views
Hi

For the rad window control i have set the Icon. My icon size is 16*16 only. But my icon not displaying properly in the IE7,IE8 and Google Chrome.

Please find the attachments.
Icon Should look like the below image image.
               original.jpg
But in IE7 and IE8 and Chrome looks like below image.
         1. ie icon.jpg (IE 7 and IE8)
         2. chrome.jpg(Google Chrome)
Marin Bratanov
Telerik team
 answered on 29 Feb 2012
4 answers
150 views
I am learning about your controls and I start with window.
My scenario is quite typical.
A grid inside a window for manage typical searches of users ...
All works fine by I have a serious annoying problem...
Every time a change a page in grid inside the window ... the window is reloaded although all controls are in a ajaxpanel...
I try with visibleonpageload and reloadonshow properties (I just have seen previous post on a similar problem) but without a good result..,
All controls on my page is static, not reloaded after ajax postback but the only reloaded controls is the window...

What am I doind wrong?

Marin Bratanov
Telerik team
 answered on 29 Feb 2012
1 answer
64 views
Hello Telerik,

Issue is user adds a new record to the RadGrid, uploads an image with the RadAsyncUpload and puts in some text. So they decide to go back in a and edit the record again. The RadAsyncUpload will not let them Update due to the image missing from the loaded files, they shouldn't have to find it and upload it again. I want the image in the RadBinaryImage field to populate the RadAsyncUpload on edit so they COULD remove it if they want to erase the image from the data record. Is this possible? If its not is there a workaround, otherwise the users are handicapped to find the image again, and they could never delete the image. Here is the ASPX code:

<telerik:GridTemplateColumn DataField="Image" HeaderText="Image" UniqueName="UploadImage" ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle" ItemStyle-Width="100px" ItemStyle-Height="100px">
    <ItemTemplate>                                           
        <telerik:RadBinaryImage runat="server" ID="RadBinaryImage2" DataValue='<%# Eval("Image") %>' AutoAdjustImageControlSize="false" Height="100px" Width="100px" ToolTip='<%#Eval("Name", "Product: {0}") %>' AlternateText='<%#Eval("Name", "{0}") %>' />                                           
    </ItemTemplate>
    <EditItemTemplate>
        <telerik:RadAsyncUpload runat="server" ID="AsyncUpload2" OnClientFileUploaded="OnClientFileUploadedStore" AllowedFileExtensions="jpg,jpeg,png,gif" MaxFileSize="1048576" OnValidatingFile="RadAsyncUpload1_ValidatingFile" />                                           
        <asp:Label runat="server" CssClass="lblWarning" Text="To make your image appear uniform, make the dimensions squared (ie: 100W x 100H) as PNG transparent."/>
    </EditItemTemplate>
</telerik:GridTemplateColumn>

Thanks
SDI
Andrey
Telerik team
 answered on 29 Feb 2012
2 answers
171 views
Hi, I'm using 'ajaxRequestWithTarget' method of RadAjaxPanel.
And it is asynchronously. Before the request is finished I would like to disable any action on client side.

It seems that update of RadAjaxPanel is performed asynchronously, is it possible to make it synchronous?
So for example I call 'ajaxRequestWithTarget' in the onclick event (client side event) of button. It looks like this event is finished before  ajax request is done completely.

I know that there are events like:
ClientEvents-OnResponseEnd="OnResponseEnd"
ClientEvents-OnRequestStart="OnRequestStart"

So I could use them to disable this button after requestStart and before requestEnd, but this is additional work.
The simple question is: Can 'ajaxRequestWithTarget' be synchronous ?

Hope I described it good.
Regards.
Chris.
Krzysztof
Top achievements
Rank 1
 answered on 29 Feb 2012
1 answer
205 views
I am having a bit of an issue with rad window and calling it from a imagebutton.

My code looks like this:

function openRadWin() {
        radopen("./cvv.jpg", "RadWindow1");
    }
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
    <Windows>
        <telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="500px"
            Height="260px" Title="CVV" Behaviors="Close" Modal="true" >
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
 
<asp:ImageButton ID="ImageButton1" runat="server"
                OnClientClick="openRadWin();" ImageUrl="~/question.jpg" Height="20px" Width="20px" />

The issue i am having is that, when i click on the button, it causes validation. But if i add CauseValidation=False to my button, the window opens and closes immediately. It does not show the tool-bar at the top and does wait for end user action.
Marin Bratanov
Telerik team
 answered on 29 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?