Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
671 views

Hi all,

I m trying to make an multi file upload by using RadAsyncUpload.
Project is working well on local but when i publish it, control does not include any uploaded file, so it does not enter the for loop and a exclamation mark  appaers.

<telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" TargetFolder="~\AttachPath"
                        TemporaryFolder="~\App_Data\RadUploadTemp" AllowedFileExtensions="jpg,jpeg,png,gif">
                        </telerik:RadAsyncUpload>

 protected void lnkara_Click(object sender, EventArgs e)
        {
            PopulateUploadedFilesList();

            ConfigDataContext data = new ConfigDataContext();
            if (!string.IsNullOrEmpty(dropfleet.SelectedValue))
            {
                for (int i = 0; i < RadAsyncUpload1.UploadedFiles.Count; i++)
                {
                    CNF_FILE_PATH newfile = new CNF_FILE_PATH();
                    string path = ConfigurationManager.AppSettings["filePatch"] ;
                    newfile.FILE_PATH = path + RadAsyncUpload1.UploadedFiles[i].FileName;
                    newfile.REGISTRATION = dropfleetlist.SelectedItem.Text;
                    newfile.FLEET_ID = dropfleet.SelectedValue.ToInt();
                    data.CNF_FILE_PATHs.InsertOnSubmit(newfile);
                    data.SubmitChanges();
                    sucsessful.Visible = true;
                }
              
            }
        }

Hristo Valyavicharski
Telerik team
 answered on 29 Jun 2015
3 answers
134 views

I have been trying to get the "RadProgressArea" control to work reliably.  I have a process that allows the end user to build a list of reports to process, set a ton of options, then press a magic "go" button and generate all the requested documents.  Everything actually works with the exception of the progress display.

 The progress display currently is a "RadProgressArea" control configured along the lines documented elsewhere in the demo's covering "Custom Progress" configurations.  I have a RadProgressManager and RadProgressArea controls on a standard master/client page website.  The event process is fired off via a toolbar button being clicked in the header template of a RadGrid.  The site is your standard C# 4.5 framework type website built using the Telerik suite of products including the Telerik Reports.  Based upon my research I have a properly configured web.config file.  My trust levels are set to Full so it is not a question of Reflection not being available.

 My problem boils down to the process works some of the time.  That is to say the Progress Area pops up and displays the data without error.  The user is able to press the cancel button and everything works.  Notice I said some of the time?  Using the same hardware/software/selected options, the same process will not display the RadProgressArea control the next time (of course it isn't a every other time problem).  This doesn't mean the process doesn't work, simply that the user display doesn't show the progress of the update and no option of canceling is given.   In my particular case all the required reports get built so the end result is a happy user however they want their cancel button.

 

I have even gone so far as to forcibly show the progress area via client side code.  While this does work, when it "fails", the shown progress area mysteriously "goes away" or is ghosted preventing user interaction with it.  When it works it works irrespective to being forcibly shown.

 Does anyone have any suggestions on paths to explore to solve my problems?  Have I somehow reached a technical limit that I did not know of?  Should I be looking toward some kind of Asynchronous web service of such?  My goal is simply o give my users a progress display and the ability to cancel the task (subject to browser compatibility of course) in a reliable manner.

 

Hristo Valyavicharski
Telerik team
 answered on 29 Jun 2015
3 answers
229 views
All,

I have multiple web pages that each contain 36 radNumericTextboxes on them.

I want to disable the tab stop on the spin buttons for each of the controls. So far the only answer I can find is this:

myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")

I don't want to have 72 lines of code on each of my 19 pages to do something that I should be able to do in a for each loop. However, I cant seem to implement the following code because the telerik controls dont exist in system.web.ui.page

For Each myControl In Page.Controls
            If TypeOf myControl Is RadNumericTextBox Then
                myControl.ButtonDownContainer.Attributes.Add("tabindex", "-1")
                myControl.ButtonUpContainer.Attributes.Add("tabindex", "-1")
            End If
Next

So my question is, how can I return an array of all telerik controls contained on a page?

Thank you,
Erik
Top achievements
Rank 2
 answered on 29 Jun 2015
1 answer
96 views

Hi

I use the RadPersistenceManagerProxy because I use MasterPages. All works fine!

Because I need to persist the RadDateTimePicker, which is not supported, I want to save it manually with the OnSaveCustomSettings function. How can I use this approach in child page will mean with the RadPersistenceManagerProxy?

Regards

Felix

Kostadin
Telerik team
 answered on 29 Jun 2015
12 answers
144 views
I have a combobox that gets a default item set whenever the data for the combobox control is null. For example a combobox with a list of states for the user to select from. If no valid data exists, the user is presented a default item that says "Select State". If valid data exists, the default item is not set and the data value is set to the combobox.

Our combobox is set to autopostback and update a radlistbox of available items to select from. However, if "Select State" is visible in the combobox and the user selects a state, the SelectedIndexChanged event is not fired and as a result, the radlistbox is not filled with the data. However, if the combobox is changed again to a different state, then the event fires. If valid data is the selected item in the combobox and there is no default item, then the event is fired.

Understanding that the DefaultItem isn't part of the indexed items in the combobox, I can *sort of* understand why the event isn't firing, however, that doesn't resolve the issue that I need to postback whenever the user selects a valid item from the combobox.

How can I get a postback whnenver an item is selected in a combobox (not the default item) when the value being changed from is the default item?
Ivan Danchev
Telerik team
 answered on 29 Jun 2015
1 answer
78 views

Hi,

I was adding my style sheet in the client code of my page and my radscheduler looked fine. Then I decided to use RadStyleSheetManager to add my style sheet from the code behind and the radscheduler  in my page lost all of its default styles... Do I need to load them too in addition to my style sheet and in that case how do I do that?

Peter Filipov
Telerik team
 answered on 29 Jun 2015
4 answers
128 views

Hi,

I'm using RadTileList and creating the tiles dynamically based on user inputs. If user clicks on add, we will capture the data and create a tile and will Render in the UI. User can delete a tile, create a new tile with some inputs. We require Drag and Drop functionality and need to store the position of each tile. I'm using the below method to capture the position. ProjectAssetsTileList.GetAllTiles() is giving always "0" on page load. Please suggest a way to persist the TileList Tiles and Order.

 

protected List<DomainDAL.ProjectAsset> CaptureAssetPosition(List<DomainDAL.ProjectAsset> workingProjectAssets)
   {
       if (ProjectAssetsTileList.GetAllTiles().Count > 0)
       {
           foreach (DomainDAL.ProjectAsset asset in workingProjectAssets.Where(x => x.State != (int)Constants.AssetStatus.Deleted))
           {
 
               int position = ProjectAssetsTileList.GetAllTiles().FindIndex(x => x.Name == asset.AssetId.ToString());
               asset.SequenceNumber = position;
           }
       }
       List<DomainDAL.ProjectAsset> sorted = workingProjectAssets.OrderBy(x => x.SequenceNumber).ToList();
       return sorted;
   }

 

 

Marin Bratanov
Telerik team
 answered on 29 Jun 2015
4 answers
79 views

Hello,

I have a problem with show data in locked column on Internet Explorer 11. The problem appear for example when I expand some row or I added new to structure. When I use Chrome or Mozzila treelist behave good. Has anyone idea how fix this problem?

Thanks.

Mariusz
Top achievements
Rank 1
 answered on 29 Jun 2015
1 answer
155 views

Hello Team,

We are using RadAsyncUplaod to select Multiple Files and save it to Azure Blob Storage on click of upload button, The functionality which we want to achieve is to encrypt the File on selection before saving it to Temporary folder.

Let me know how to achieve this.

Regards,

Ruchi

Peter Filipov
Telerik team
 answered on 29 Jun 2015
1 answer
285 views

Hi,

I have a requirement to display a radwindow for every selected row in the radgrid. The content of the window is different for each row.
When I select multiple rows and click on a button, I need to display the radwindow one after the other. For example, if I select 5 rows and click on the button, I need to display the window 5 times.

In the button click event, I have the below code. 

foreach (GridDataItem item in grid.SelectedItems)
{
    window.VisibleOnPageLoad = true;
    // Load the content for the window
}
However, the window gets loaded only once after completion of the foreach loop. 

I also tried setting the Visible property of the window instead of using VisibleOnPageLoad. But in this case, the window is not displayed at all. 
Is there a way to display the window first and then continue execution of foreach loop?

Thanks in advance.

Regards,
Sowmya

Konstantin Dikov
Telerik team
 answered on 29 Jun 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?