Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
151 views

I'm having  a hard time wrapping my brain around this one!  The AsyncUpload is going to be part of a form that captures other information about the document. The file will be uploaded to the server and a new record is inserted into the database. As part of this, I am also modifying the filename.

My issue is that the file is moving out of the temporary location before any of the service side code is run. It IS uploaded OK and moving to the right folder. But it is doing it immediately at the form's submit button click so I am unable to change it's filename. This then causes my script to error out because it can't find the temporary file (it is already removed).

I'm sure this is a rookie question! But please take a look at this code. Thanks!

 

    protected void btnDocUpload_Click(object sender, EventArgs e)
    {
        foreach (UploadedFile file in RadAsyncUpload1.UploadedFiles)
        {
            //we are going to rename the file with the Catnumber + the date
            string newDocName = txtCatNumber.Text + DateTime.Now.ToString("M-d-yyyy");

    docBL doc = new docBL();
            doc.DocumentUpload(txtCatNumber.Text, newDocName);

            file.SaveAs("_SDFiles_\\" + newDocName + file.GetExtension(), true);
        }
    }

Matt
Top achievements
Rank 1
 answered on 29 Sep 2015
2 answers
241 views

Utilizing: ASP.Net AJAX Q3 2014 

I'm opening windows, containing an aspx page, with various controls (combo, text, numeric, datepicker, etc.).  The RadWindowManager is set to KeepInScreenBounds="true" and RestrictionZoneID="ContentPane".  When running it on my Windows 7 desktop, it works great.  When running it on my Windows 8.1 ​Windows Surface Pro 3, the page controls lose focus after I click in the text entry box.  It then refreshes the window and doesn't allow me to change the value in the text box.  If I click on a RadComboBox, it fires the query and displays the dropdown; but, when I click on the text box to change the combobox value, it doesn't allow me to change the value in the text box..  This only applies to pages that are contained in a RadWindow, when running on a Windows Surface.  The problem might be specific to Windows 8.1; but, I don't have another 8.1 machine to test it.  Other aspx page controls work fine.  If I take the problem page and run it as a stand-alone page, without RadWindow, it works fine.  If I remove the RestrictionZoneID property from the RadWindowManager, the controls no longer lose focus; but, of course, I lose the ability to KeepInScreenBounds.  By the way, I get the same result whether I use the fancy RadWindow properties (below), or not.  In other words, if I just use ... <telerik:RadWindow ID="AssetCreateDialog" runat="server">, I get the same result.

 

 

 

<telerik:RadWindowManager ID="RadWindowManager2" runat="server" EnableShadow="true" Style="z-index: 12345" KeepInScreenBounds="true" RestrictionZoneID="ContentPane">

<Windows>​

<telerik:RadWindow ID="AssetCreateDialog" runat="server" Title="Create Asset" Height="650px" Top="50px"
                Width="800px" Left="125px"  ReloadOnShow="true" ShowContentDuringLoad="false"  VisibleStatusbar="false"  
                Modal="true" Behaviors="Move, Resize, Close">
            </telerik:RadWindow>

 â€‹

John
Top achievements
Rank 1
 answered on 29 Sep 2015
10 answers
1.3K+ views
Hi

I'm using the filtering option for the first time on one of my columns in my rad grid. But I notice that when I type some text it is case sensitive when doing the search.

For example if some of the strings in the column contain the word Africa, I have to search for Africa I cannot search for africa.

Is there a way to turn off the case sensitivity??

thanks
Eyup
Telerik team
 answered on 29 Sep 2015
2 answers
361 views

Hi,

 

I have a radgrid and i have an image button to export .  On click of image button show loading panel and once the file is exported close the loading panel.But once i hit the export the loading panel still remains even after the file is downloaded. Can you help me  to show loading panel during Export to excel. 

 

Thanks in Advance.

Vvamc
Top achievements
Rank 1
 answered on 29 Sep 2015
4 answers
370 views

I have a few rad RadButtons in a sequence. I have defined them with custom images only.

When I click or hover, the button appears to either grow slightly or is offset by a few pixels.

This causes content to the right and below to shift and it is quite uncomfortable to see.

I've tried to align the buttons in a table with fixed row height and width about 4 pixels wider than the buttons to see if it would absorb the slack. Unfortunately even the table cells shift.

I've not seen this before, and it does not happen if the same buttons use text in place of images.

<telerik:RadButton ID="RadButton2" runat="server" Text="RadButton" Image-ImageUrl="~/Images/video_icon_24.png" Image-HoveredImageUrl="~/Images/video_icon_24_hover.png" ButtonType="SkinnedButton" Height="24px" Width="24px" NavigateUrl="lulavision.aspx" ToolTip="Showtime!"></telerik:RadButton>
<telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" Image-ImageUrl="~/Images/music_icon_24.png" Image-HoveredImageUrl="~/Images/music_icon_24_hover.png" ButtonType="SkinnedButton" Height="24px" Width="24px" NavigateUrl="lulavision.aspx" ToolTip="Showtime!"></telerik:RadButton>

Tomica
Top achievements
Rank 2
 answered on 29 Sep 2015
1 answer
149 views

Running 2015.2.826.45

I accidentally posted this in the Upload forum, not AsyncUpload, so I am reposting it.  This used to work, but we recently changed environments and I am not sure where to check for problems.

<telerik:RadAsyncUpload runat="server" Width="300" SkinID="defaultUpload" ID="uImportFile" OnFileUploaded="fileUploaded" AllowedFileExtensions=".xls,.xlsx" OverwriteExistingFiles="True" AutoAddFileInputs="False" MaxFileInputsCount="1"                    TargetFolder="~/UploadedFiles" OnClientFileUploadFailed="uploadFailed"><br></telerik:RadAsyncUpload>

As soon as the user selects the file to be uploaded, a temp file is created based on the name of the upload in App_Data/RadUploadTemp.  But then a postback happens, the file is removed from RadUPloadTemp, but it not moved into the UploadedFiles folder. â€‹This happens on a production server as well as locally.  I have set permissions on the folder to full control.  Tried Chrome, IE, FireFox and got the same results.  The OnClientUploadFailed event is not firing.  The OnFileUploaded even is firing.  What am I missing?

Thanks,
Randy

Ivan Danchev
Telerik team
 answered on 29 Sep 2015
4 answers
278 views
Hi,

I have a RadFilter attached to a RadGrid that has DateTime columns.  The DateTime values are stored in UTC format but are displayed to the user in their local timezone. When the user creates a filter on one of the DateTime columns I need a way to convert the value on the filter to the equivalent UTC value and then filter on those results.

Thanks for any help,

jason

License
Top achievements
Rank 1
 answered on 29 Sep 2015
2 answers
123 views

Hi, 

I am getting following error If I ​​use any control inside RadAjaxPanel that causes autopostback (such as changing RadComboBox selection), once after seeing the confirmation from "OnBeforeUnload" event and opts to ​Stay on the ​page.

 

Exception: screen:sys.webforms.pagerequestmanagerparsererrorexception

I am using following code for on​BeforeUnload event handling:

                window.onbeforeunload = function(e)
                {                   
                    if (IsDirty() == true)
                    {
                        var ev = e || window.event;
                        ev.returnValue = "Are you sure?";
                        return "Are you sure?";
                    }
                }

Reference url: http://www.telerik.com/forums/isdirty---ajax-dirty-panel

 

Please help me into this issue.

 

thanks!

Ankit

Maria Ilieva
Telerik team
 answered on 29 Sep 2015
1 answer
188 views
I have a master page that has a RadSkinManager on it. The user is able to select the desired skin from the chooser on the master page and it gets applied to all controls on all the pages that inherit from the master page. My issue is that I have some aspx pages that are being used as radwindows that do not use the master page. I need to be able to get the value of the skin in order to apply it to these pages. PersistenceMode on the radskin manager is 'Cookie', but I don't know what the name of the cookie is. Please advise on how to get this value from the skin manager.
Konstantin Dikov
Telerik team
 answered on 29 Sep 2015
1 answer
158 views

Hi,

 

I want to disable some selected rows (I use a GridClientSelectColumn) in my grid. The user must not be allowed to deselect these rows, but he is free to select

other rows. The originally selected rows have to stay selected.

Disabling the row is no problem, I do this server-side in the RowBound event handler. But these can still be (de)selected.

Is there some easy way to "lock" the selected rows or do I have to program this behavior in javascript?

If I have to do that, how can I prevent a row from being deselected (e.g. if the user just clicks another row which will deselect all other rows)?

 

Thanks!

Eyup
Telerik team
 answered on 29 Sep 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?