Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
459 views
Hi telerik,

When I select files to upload, the files names are displayed above the control. I want to display the file names and internal progress bar below the file input.

Thanks for reply,
Needha.
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2013
0 answers
59 views
hello sir

 expand collapse header of Radgrid is invisible on Internet explorer but visible on firefox

below attached are screen shots of two different grids
please guide me to solve this problem

waiting for reply
Kishor
Top achievements
Rank 2
 asked on 15 Jul 2013
4 answers
590 views
Hello,

I got this error when I try to build my solution: 
Type 'Telerik.Web.UI.RadGrid' does not have a public property named 'BatchEditingSettings'.

Since BatchEditing is a new component, clearly my current dll does not support BatchEditingSettings. Which version should I download?

P.S.: I still have demo version. 
Hakan
Top achievements
Rank 1
 answered on 15 Jul 2013
3 answers
216 views
I'm using RadAsyncUpload to allow a file to be uploaded to the server.

However, we also have an anti-CSRF token on the page involved.  Is there some way that I can append a header or add to the request that AsyncUpload makes to enable this to be passed along?

Thanks.
Hristo Valyavicharski
Telerik team
 answered on 15 Jul 2013
2 answers
195 views
I have a RadAsyncUpload control that is declared dynamically on the server side.  It is working fine.  However, I would like to change the filename before it is saved.  I tried to set the OnFileUploaded property, but I get the message

'Telerik.Web.UI.RadAsyncUpload.OnFileUploaded (Telerik.Web.UI.FileUploadedEventArgs)' is inaccessible due to its protection level.

How do I set the OnFileUploaded property?  Alternatively, how else could I change the file name of the file before saving it to the sever?

Here is where I declare the RadAsyncUpload control:
RadAsyncUpload upload = new RadAsyncUpload();
upload.ID = "rauChoice";
upload.Attributes.Add("runat", "server");
upload.TargetFolder = "~/App_Images/uploads";
upload.TemporaryFolder = "~/App_Data/RadUploadTemp";
upload.OnFileUploaded = "rauChoice_FileUploaded";
Troy
Top achievements
Rank 1
 answered on 15 Jul 2013
5 answers
68 views
Greetings!

I'm having trouble with Social Share and a RadSocialButton where SocialNetType is "GooglePlusOne". It seems very easy to replicate.

When I use that button via the test below, the URL that it requests from Google for the FastButton script is:

https://apis.google.com/_/+1/fastbutton?bsv&size=470&annotation=470&width=&hl=en-US&origin=http%3A%2F%2Flocalhost%3A57814&url=http%3A%2F%2Fwww.telerik.com%2F&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.VvwHmr5PUZc.O%2Fm%3D__features__%2Fam%3DEQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAItRSTPwTaslh-up04HMsbjUbinCI6C0Hw

Google is returning an error 400 (access is denied) for that script url.

It seems that the problem with the URL is the "annotation=470" parameter. According to the Google API, annotation is an enumeration that should have a value such as "none" or "inline". "470" seems invalid and I suspect is causing the problem. Is it mistakenly being copied over from size?

Is this a known issue? Am I doing something wrong or is there a workaround?

To confirm, the URL:

https://apis.google.com/_/+1/fastbutton?bsv&size=470&width=&hl=en-US&origin=http%3A%2F%2Flocalhost%3A57814&url=http%3A%2F%2Fwww.telerik.com%2F&ic=1&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.en_GB.VvwHmr5PUZc.O%2Fm%3D__features__%2Fam%3DEQ%2Frt%3Dj%2Fd%3D1%2Frs%3DAItRSTPwTaslh-up04HMsbjUbinCI6C0Hw

...works fine (which is the same URL, without the annotation parameter).

I am using 2013.2.611.40

The code to reproduce this is simply:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="GooglePlusTest._default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server" />
        <telerik:RadSocialShare ID="RadSocialShare1" runat="server" UrlToShare="http://www.telerik.com" >
            <MainButtons>
                <telerik:RadSocialButton SocialNetType="ShareOnFacebook" />
                <telerik:RadSocialButton SocialNetType="GooglePlusOne" />
                <telerik:RadSocialButton SocialNetType="ShareOnTwitter" />
            </MainButtons>
        </telerik:RadSocialShare>
    </div>
    </form>
</body>
</html>
Danail Vasilev
Telerik team
 answered on 15 Jul 2013
1 answer
149 views
hi everybody
i need to run this server code in client side.
protected void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem data = (GridDataItem)e.Item;
        if (e.CommandName == "Command1")
        {
            data["OrderID"].Text = "300";
        }
        else if (e.CommandName == "Command2")
        {
            data["OrderID"].Text = "600";
        }
    }
}
can anybody help me to convert this code to java script?
Andrey
Telerik team
 answered on 15 Jul 2013
3 answers
930 views
Hi,

   Is it possible to display the RadAjaxLoadingPanel over a RadAjaxPanel (or ASP Panel) using javascript even if you won't have any server event?
   Say, I have several user controls that I load within RadTabStrip. Each user control has their own javascript function that kicks a webservice call. What I want to accomplish is, the moment the javascript initiates the webservice call until the webservice returns a result, I want to display the RadAjaxPanel so the user will know that the transaction is being executed. At the same time, they won't be able to click on anything inside the tab until the webservice returns and prompt that the transaction was successfully completed. Is the use of RadAjaxLoadingPanel possible fo this scenario? Or is there any work around that we can do for this?

Thanks in advance!


Regards,
Arthur
Maria Ilieva
Telerik team
 answered on 15 Jul 2013
1 answer
124 views
Hello,

As you can see in the demo:
http://demos.telerik.com/aspnet-ajax/treelist/examples/client/resizing/defaultcs.aspx

When you size one column, the other columns are also adjusted... Even when I state a fixed width (40px ie) and state that the column is not sizeable, and state the min and max size at 40px, it still gets sized when i size an other column... how can I make a column stay 40px??

Erik
Deyan Enchev
Telerik team
 answered on 15 Jul 2013
1 answer
174 views
Hello to all,

Me and my team are very "fresh" in working with Telerik Dev Tools and we are exploring its potencials to see how can we use them in the platform we are developing. We are very excited with the available controls but we have some concerns on the correct usage of the controls and which are the best practices to use them.

Today's doubt is regarding the RadAjaxManager best usage.
Our web platform is using Master Pages to have similar GUI and implement many global functions. Also we have different web controls that can be reused on different pages. These controls can make partial updates and like that needed to be "ajaxified" for Rad Ajax Manager, which is a control we want to use to have more flexibility on the Partial Updates and on the controls that trigger these Updates.
With some quick readings we caught and resolve some issues regarding the usage of ascx with Rad Ajax Manager and the best practice is to register the control programatically. We created a simple method on the Page that receives a Control and register it on the Rad Ajax Manager updating some Panels that are on the same Page. We implemented this approach (see code bellow) with good results.
//this method will be available on each page
public void AjaxifyControl(Control ctrl)
{
    //Add the necessary AJAX setting programmatically
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel1);
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel2);
    RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, Panel3);
}

But now we have a dillema... With the massive usage of the Telerik Controls we have a "Software Design doubt" about where to put the Rad Ajax Manager?
  1. On the Master Page and like that we only allow to programatically register all the "Ajaxified Controls" with all "Updatable Controls", leaving the register decision for each page, but taking the risk that could be many pages without really needing the RadAjaxManager. We think allowing this by making available a method similar to the one i show bellow: 
    //this method will be available on the Master Page.
    public void RegisterAjaxSetting(Control ajaxifiedCtrl, Control updatedCtrl)
    {
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(ctrl, updatedCtrl);
    }
  2. On all needed Pages (we have this approach right now) having a mix between Markup registered controls (the ones that can be registered thru markup -> basic Page controls) and Programatically registered controls (the ones that exists on the Web User Controls ans need to be added by code), creating a RadAjaxManager on each page that needs a Rad Ajax Manager.

We want to know if exists some documentation that can help us with that or simply which is the best practice that you guys advise.

Many thanks in advance.
Hugo Salgado
Maria Ilieva
Telerik team
 answered on 15 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?