Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
91 views
Hi, I am using RadAsyncUpload. After the user select a file I automatically make a postback using Ajax using where btnFileUploaded is not visible.

function asupImage_ClientFileUploaded(sender, args) {
    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequestWithTarget('<%= btnFileUploaded.UniqueID %>', '');
}

On server side OnFileUploaded is called and I save the file this way

protected void asupImage_FileUploaded(object sender, FileUploadedEventArgs e)
{
    string strAppplicationPath = HttpContext.Current.Request.ApplicationPath;
    string strLocalPath = HttpContext.Current.Request.MapPath(strAppplicationPath);
    e.File.SaveAs(strLocalPath + @"\Temp\" + e.File.FileName, true);
}

...which works. But if after that I hit the refresh button in IE (F5) whitout having select a new file then OnFileUploaded is called again and an Exception occurred in SaveAs() because the file doesn't exists anymore.

Do I miss something or is it a bug?

Hristo Valyavicharski
Telerik team
 answered on 30 May 2013
1 answer
188 views
Hello,

1. I need the image filter (ie, it must allow only image files) when i click Select Button in RAD UPLOAD control and not in validation.

2. I change "a.doc" files extension as "a.jpeg" and trying to upload the "a.jpeg" file. How to stop uploading the a.jpeg file as because it's not an image file.
How to do validation using java script?

Regards
Jayanthi
Shinu
Top achievements
Rank 2
 answered on 30 May 2013
3 answers
254 views
Hi,

I have a split button (below), when I click on a RadMenuItem i'd like to postback immediately rather than changing the button text and the user then requiring to click again, how would I accomplish this?

<telerik:RadButton ID="CloneSplitButton" AutoPostBack="false" runat="server" Text="Clone"
    EnableSplitButton="true" Height="22px" Enabled="true" CommandName="SaveReturn"
    UseSubmitBehavior="false" OnClientClicked="OnClientCloneSplitButtonClicked" OnClick="CloneSplitButton_Click">
</telerik:RadButton>
<telerik:RadContextMenu ID="CloneContextMenu" runat="server" OnClientItemClicked="OnClientCloneContextMenuClicked"
    EnableRoundedCorners="true">
    <Items>
        <telerik:RadMenuItem Text="New Quick Quote" />
        <telerik:RadMenuItem Text="New Subscription" />
    </Items>
</telerik:RadContextMenu>
<telerik:RadCodeBlock runat="server">
    <script type="text/javascript">
        function OnClientCloneSplitButtonClicked(sender, args) {
            if (args.IsSplitButtonClick()) {
                var currentLocation = $telerik.getLocation(sender.get_element());
                var contextMenu = $find("<%= CloneContextMenu.ClientID %>");
                contextMenu.showAt(currentLocation.x, currentLocation.y + 22);
                sender.set_autoPostBack(false);
            }
            else {
                sender.set_autoPostBack(true);
                window.setTimeout(function () {
                    sender.set_enabled(false);
                }, 0);
            }
        }
        function OnClientCloneContextMenuClicked(sender, args) {
            var itemText = args.get_item().get_text();
            var splitButton = $find("<%= CloneSplitButton.ClientID %>");
 
            if (itemText == "New Quick Quote") {
                splitButton.set_text("Clone to New Quick Quote");
                splitButton.set_commandName("CloneQuickQuote");
            }
            else {
                splitButton.set_text("Clone to New Subscription");
                splitButton.set_commandName("CloneSubscription");
            }
        }
    </script>
</telerik:RadCodeBlock>
Danail Vasilev
Telerik team
 answered on 30 May 2013
1 answer
279 views
On my line chart with negative values the x-axis labels are under the '0' instead of under the chart.  

See attached image.

Is there a way to fix this?

Andy
Danail Vasilev
Telerik team
 answered on 30 May 2013
1 answer
113 views
I have a user control which has a radgrid and I load the grid on user controls page load event, and load it through a radtooltip control in  my main page on a button click, When the user control load via ToolTip the page load event doesn't fire in user control, so my grid populating method in the page load and it doesn't work. please advice
Marin Bratanov
Telerik team
 answered on 30 May 2013
4 answers
369 views
I have created a HeaderTemplate for RadPanel by inheriting from ITemplate interface and binding the RadPanelBar dynamically. My HeaderTemplate contains a label and a RadButton. I just wanted to handle the Button click event(server-side) inside the HeaderTemplate. Can you please help me on this ?

I am able to handle the ItemClick event of the RadPanelItem but not sure how to handle the button click event separately. It will be great if you have some sample code for this.

Thanks,
Nishith
Kate
Telerik team
 answered on 30 May 2013
11 answers
549 views
Hi.

I have a timer in a master page which refreshes every 5 seconds. this timer updates a small update panel on the master page and is used to show the users who are accessing the record (using the querystring variables).

THis works fine, always has worked fine and it is not a problem firing events an updating so frequently as the application is LAN based.

the problem that i have is that the radeditor is updating on the timer tick event. By updating, i mean, it is doing "something" which stops you from scrolling, typing, whatever you may be doing in the rad editor at the time of the update.

I DO NOT want to turn the timer off. i just don't want the rad editor to do anything on the timer's event. I only want the update panel that i have specifically set to update on the timer event to update.

How can i stop the rad editor from reacting to the timer event?

Thanks

James
Slav
Telerik team
 answered on 30 May 2013
7 answers
185 views
Hi Telerik,

I had been working in desktop application development and recently switched to web development in ASP.Net using telerik radcontrols. I have no experience working with Javascript and came to know this forum is so responsive. My registration form contain a password and confirm password radtextbox. From client side how can I check if they match and provide a cross or tick image beside the second textbox.

Thanks to all,
Katya.
Shinu
Top achievements
Rank 2
 answered on 30 May 2013
1 answer
80 views
Hi,
    I m using the radcombobox inside the rad scheduler with mvc 4  and i want to bind the radcombobox with my database in jquery please reply urgent.

thanks 
Gaurav Rana
Plamen
Telerik team
 answered on 30 May 2013
1 answer
59 views
Hi

We are trying to upgrade Telerik from currently 2011 to latest 2013 Q1 release. After upgrade we are seeing Expand button in few grids where we have not added. And few place it is not appearing though it is required there. Is there any common fix for this which I can do in one place.

When I added ExpandCollapseColumn-Display property then it is working fine but it would good if I can do change in place instead of doing at all grids.

Thanks,
Pradip
Eyup
Telerik team
 answered on 30 May 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?