Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
142 views
This demo: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandradasyncupload/defaultcs.aspx?product=upload 
Has the following
<telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded"
                               AllowedFileExtensions="jpg,jpeg,png,gif"
                               MaxFileSize="1048576" OnValidatingFile="RadAsyncUpload1_ValidatingFile">
</telerik:RadAsyncUpload>

.... yet RadAsyncUpload does not contain an OnValidatingFile event. Theres code written to it in the code-behind as well.

This demo here:
http://www.telerik.com/help/aspnet-ajax/grid-binaryimage-radasyncupload.html 

Has the same flaw but actually writes logic tied to it ( See: IsRadAsyncValid ). Also, a CustomValidator is dynamically created during ItemCreated when the AsyncUpload itself is simply sitting in an EditItemTemplate of a TemplateColumn. The Custom Validator does not need to be dynamic.

When you guys get some time, can you unify your demo's and come up with some best practices for RadAsyncUpload when used inside of a grid?

For now, here's what I take away from it:
  • Keep a Custom Validator with client side validation tied to the RadAsyncUploadControl to prevent the page from submitting until any current upload operations are finished
  • If you are in an ajax grid, you may as well enable onFileUploaded to .ajaxRequest() and clear ( radAsyncUpload.deleteFileinputAt(0) ) the 'queue'.
  • During Insert/Update get a reference to the async upload and check for UploadedFiles.
Plamen
Telerik team
 answered on 04 Feb 2014
3 answers
343 views
Hello. I have just written a lovey new web client using Telerik and was moments away for releasing it, when during browser testing I found that Firefox was not working as expected. As a result, all my many hours of hard work are going to waste.

When using the RadButton, I sometimes call a javascript method to do some client side validation before allowing the postback. I can not stop Firefox from posting back ;-( I've made an example:

using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if(this.IsPostBack)
        {
            radWindowManger.RadAlert("I dont want to see this Post Back", null, null, "Firefox HATES You", null);
        }
    }
 
    protected void btnGo_Click(object sender, EventArgs e)
    {
        bool stopHere = true;
 
        radWindowManger.RadAlert("I don't want to see this server message", null, null, "Firefox Hates YOU!", null);
    }
}

<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
     
    <script type="text/javascript">
        //Put your JavaScript code here.
 
        function displayRadAlert(sender, eventArgs)
        {
            radalert("Hello World");
 
            event.returnValue = false;
            event.cancel = true;
 
            if(event.stopPropagation)
            {
                event.stopPropagation();
            }
        }
    </script>
</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:RadWindowManager ID="radWindowManger" runat="server"  EnableShadow="true"/>
     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <telerik:RadButton ID="btnGo" runat="server" Text="Go"
            OnClientClicked="displayRadAlert" OnClick="btnGo_Click" />
    </div>
    </form>
</body>
</html>

Please help!

Thanks in advance,
Matt
Matt
Top achievements
Rank 1
 answered on 04 Feb 2014
3 answers
246 views
I have a listbox data bound to a SQL Data Source. I have given the use the ability to Search within the listbox, I can
find and select the item requested, but how do you make the listbox scroll to the selected item from code behind.


Thanks.

Troy
Plamen
Telerik team
 answered on 04 Feb 2014
9 answers
214 views
Hi , 
     Bubble and donut charts are  not supporting, While binding with string value in x-axis , it shows error . please tell me the solution to bind the  string value to the  x-axis with the radhtmlchart .

thanks .
Danail Vasilev
Telerik team
 answered on 04 Feb 2014
2 answers
161 views
Hi 
I am trying to dynamically create radio buttons based on the radgrid (Event TIme) column. If the radgrid  has four rows, it means that there are 4 time slots in the event time column and I need to display 4 radio buttons after click of a button on the page. I am able to display radio buttons but dont know how to display dynamically based on radgrid, Appreciate help with this. 
Thanks
Eyup
Telerik team
 answered on 04 Feb 2014
2 answers
89 views
Can somebody shine some light on the scaling procedure of images in the RadLightbox?

Images seem always 4px higher than the original, see screenshot...

Marc
Daniel
Telerik team
 answered on 04 Feb 2014
1 answer
116 views
I've applied the example DBContentProvider-Vb.zip (http://www.telerik.com/support/code-library/connect-radfileexplorer-or-radeditor-to-a-sql-databse) on my website and everything seems to work except that it is not possible to upload files with extension  .docx .pptx .xlsx
But it goes well with .doc ppt .xls
And I get no error message or anything ...
Have tried to enter: RadFileExplorer1.Configuration.SearchPatterns = New String () {"*. *"}
Without success...

What am I doing wrong?
Dobromir
Telerik team
 answered on 04 Feb 2014
3 answers
59 views
I have a RadScheduler on a number of pages and when it is being run under IE10 or IE11 without compatility set on, the control is not responding. The previous and next buttons do not respond.

If I turn on compatibility mode then the control works as expected, but the date headers shift out of alignment with the calendar view.

I am using 2013.3.1114.40 version of the Controls.

You can see the behaviour exhibited using the following URL:

http:\\professtm.co.uk?token=demo555

Log in using the user reference DGP and the password is also DGP

David Penny
Boyan Dimitrov
Telerik team
 answered on 04 Feb 2014
1 answer
171 views
I'm using the RadGrid with in-grid, batch editing enabled.  I have the edit columns automatically generated for the rad grid.  If I have one item, and I edit all the fields, I can get these changes after hitting my "update" button on the screen by: 

    masterTableView.GetBatchColumnEditor(myColumn) as GridTextBoxColumnEditor.TextBoxControl;  

I can do this for all of my cells.  But when I have more than one item in my grid, this editor only reflects the changes to the most recently changed object.  When looking throughout the masterTableView and the Edit manager, it seems there is only one of these editor controls for each column, not one for each cell.  Reading online, it seems there should be one for every cell.  Am I understanding this correctly, or is this a limitation of radgrid?  
Princy
Top achievements
Rank 2
 answered on 04 Feb 2014
1 answer
103 views
Hi Friends

I am using file explorer control and i set some properties of it onClientLoad

//////////////Java Script Code//////////////
 var fileexpToolBar = document.getElementById('<%=FileExpDocument.ToolBar.ClientID%>');
    if (fileexpToolBar != undefined) {

        if (fileexpToolBar.childNodes[0].childNodes[0].childNodes[0] != undefined) {    --Error at this statement null object
            fileexpToolBar.childNodes[0].childNodes[0].childNodes[0].style.height = "20px";

}

when i check value of frist childnods
fileexpToolBar.childNodes[0]  =
Thank you for using the Trial Version of RadControls for ASP.NET AJAX to build slicker and better performing applications faster.

after this if i will refresh than it will works but it is continually occur after every 5 to 6 refresh or load it

In My web.config
i have added following handler related to telerik

  <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI"
  validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI"  validate="false" />


Please provide solution as soon as possible thanks in advance
Dobromir
Telerik team
 answered on 04 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?