Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
177 views
Here are the problem details. If anyone has any ideas, I would appreciate it:
  1. Using ASP.NET AJAX Q2 2013 SP1
  2. Simple file upload page using RadUpload,RadProgressManagerand RadProgressArea  (see aspx page and web.config below)
  3. Progress bar moves and updates properly running on developer machine using IIS 7.5.
  4. But, when running on Windows 2008 R2 server using IIS 7.5, the following happens:
    • Progress bar does not move
    • The Uploaded percentage and byte count remain at zero during the upload.
    • The progress area filename is blank during the upload.
    • The file DOES successfully upload.
    • When upload is complete, upload percentage is 100% and byte count matches total file size.
  5. Used fiddler to compare dev machine vs server mid-progress traffic and noticed JSON progress status details are zero/blank when run on server. And they are correct when run on dev machine (see comparison below)
// Running on Server
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: '',
PrimaryTotal: '168.26MB',
PrimaryValue: '0B',
PrimaryPercent: '0',
SecondaryValue: '0',
Speed: '0B/s',
TimeElapsed: '20311',
TimeEstimated: '2147483647',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433547, Bytes: 0, FilesCount: 0, CurrentFileName: '', RequestLength: 176433547 }};

 

// Running on developer machine
var rawProgressData = {InProgress: true,
ProgressCounters: true,
CurrentOperationText: 'C:\\test\\test.zip',
PrimaryTotal: '168.26MB',
PrimaryValue: '102.49MB',
PrimaryPercent: '61',
SecondaryValue: '0',
Speed: '191.21MB/s',
TimeElapsed: '536',
TimeEstimated: '344',
OperationComplete: 'false',
RadUpload: { RequestSize: 176433596, Bytes: 107464352, FilesCount: 0, CurrentFileName: 'C:\\test\\test.zip',RequestLength: 176433596 }};

ASPX Page

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
    <telerik:RadUpload ID="RadUpload1" runat="server"
        TargetFolder="~/Test"
        MaxFileSize="400000000"
        ReadOnlyFileInputs="true"
        EnableFileInputSkinning="false"
        MaxFileInputsCount="1"
        ControlObjectsVisibility="None"
        OverwriteExistingFiles="True" 
        >
    </telerik:RadUpload>
    <telerik:RadProgressArea ID="RadProgressArea1" runat="server"
        ProgressIndicators="TotalProgressBar, TotalProgress, TotalProgressPercent, RequestSize, CurrentFileName, TimeElapsed, TimeEstimated, TransferSpeed" >
    </telerik:RadProgressArea>
   <asp:Button ID="UploadButton" runat="server" Text="Upload" />   
</div>
</form>

web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.web>
      <compilation strict="false" explicit="true" targetFramework="4.5">
        <assemblies>
          <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
          <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        </assemblies>
      </compilation>
      <httpRuntime targetFramework="4.5" maxRequestLength="500000" />
      <!--500 MB-->
      <httpHandlers>
        <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      </httpHandlers>
    </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" />   
    </handlers>
    <modules>
      <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
    </modules>
      <security>
          <requestFiltering>
              <requestLimits maxAllowedContentLength="509715200"/>
              <!-- Max request/upload size=500MB for IIS-->
          </requestFiltering>
      </security>
  </system.webServer>
</configuration>

Thanks

Hristo Valyavicharski
Telerik team
 answered on 03 Jun 2014
2 answers
154 views
I'm using the FileExplorer in a RadWindow popup and the issue I'm experiencing is that the async upload window resizes beyond the popup window area when many files are uploaded.

Is there a way the the upload popup can maintain it size and just use a scrollbar?
Loy
Top achievements
Rank 1
Iron
 answered on 03 Jun 2014
8 answers
550 views
Is it possible to close the modal by clicking the overlay?

Something like you see with other modal scripts:

overlayClose: true | false Close modal box by clicking on overlay. Default is true.

Marc
Marin Bratanov
Telerik team
 answered on 03 Jun 2014
3 answers
527 views
For an image, I would like to use the Alt Text as the tooltip, not the title.  Is there any way to do this?
Marin Bratanov
Telerik team
 answered on 03 Jun 2014
1 answer
45 views
v4.0.30319

When using the ImageManager to insert images into the RadEditor, users would like to be able to right-click the image and edit it's properties. While this option is currently in place and configured, there is an issue when attempting to accomplish this on the first insert, on the first right-click. 

>Start/Refresh page with RadEditor (important!)
>Insert image via ImageManager
>Right-click image...Properties
>Properties are all empty, can edit but cannot click 'OK', only 'Cancel' (Img1)
>Click 'Cancel'
>Right-click image...Properties
>Properties are now correct and available for edit (Img2)

How can we fix this so that the properties are correct and available for edit on the first attempt? This provides a serious usability issue for us. Any help would be greatly appreciated. 

Vessy
Telerik team
 answered on 03 Jun 2014
1 answer
307 views
In one mvc partial view I've got some ajax.ActionLinks which when clicked update the div 'importpartupdate' (they just updates the div whith new ajax.actionLinks with other routevalues). The problem is that when this update is competed I have to update another div - depending on which link is clicked . That's why in my OnComplete function of my ajax.ActionLink I make an ajax request to the action 'GridViewLanguage' which returns me the partial view which should uodate this other div with  claass .floatLanguage.

The partial view which action Gridviewlanguage retuns me is just am user control with radgridcombobox. It as you see has an Itemtemplate with an anchor element 
with href property <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">  and I see that the menuID item has each time proper value. 



<telerik:RadGrid ID="RadGridLang" runat="server" AutoGenerateColumns="False"  EnableEmbeddedSkins="False"  RegisterWithScriptManager=false <br>                 DataTextField="Descr" DataValueField="LanImg"<br>                Height="100%" Width="120px" AppendDataBoundItems="true" CellSpacing="0" GridLines="None" OnLoad="RadGridLang_Load"><br>                <MasterTableView><br>                    <Columns><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt="ASP.NET hosting" /><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                        <telerik:GridTemplateColumn DataField="LanCd"><br>                            <ItemTemplate><br>                                <telerik:RadComboBox ID="RadComboBoxLang" runat="server" EmptyMessage="Select a language" DataTextField="Descr" DataValueField="LanCd" EnableEventValidation="true"  RegisterWithScriptManager=false <br>                                    EnableLoadOnDemand="true" DataSourceID="ObjectDataSourceDrob" CausesValidation="false" AllowCustomText="true" AppendDataBoundItems="true" OnLoad="RadComboBoxLang_Load" ><br>                                     <ItemTemplate><br>                                        <div class="imageWrap"><br>                                           <telerik:RadComboBoxItem Text="Select" /><br>                                        <a href="<%#DataBinder.Eval(Container.DataItem, "menuID")%>">                                            <br>                                            <img src="<%#DataBinder.Eval(Container.DataItem, "LanImg")%>" alt='<%# Eval("Descr")%>'/>&nbsp&nbsp&nbsp&nbsp&nbsp<%#DataBinder.Eval(Container.DataItem, "Descr")%></a><br>                                        </div><br>                                       <br>                                    </ItemTemplate><br>                                </telerik:RadComboBox><br>                            </ItemTemplate><br>                        </telerik:GridTemplateColumn><br>                    </Columns><br>                </MasterTableView><br>            </telerik:RadGrid>

                                                                                   
   



So the first time when I click a link eeverything works correctly and my two divs are correctly updated. But the second time I click a new link it seems the the floatlanguuage div is not updated - and the href property in the anchor element stays the same as the previous request. Can you suggest why teh value in the href property in the link in the radcombobox stays the same 

like somehow the browser is caching the previous info I don't know. \i tried with cache:false- nothing worked.

Here is my view partial view which makes request to the action after a ajax.actionlink is clicked 

<div class="importpartupdate"><br>        <ul><br>            @{<br>                if (Model != null)<br>                {<br>                    foreach (MvcBeaDAL.WebServiceBeaMenu item in Model.MenuLeft)<br>                    {<br><br>                      <li><br>                        @Ajax.ActionLink(@item.SpecialWord, "ImportShow", new { id = Model.LanguageName, menuID = item.ID, articlegroupID = item.ArticlegroupID, counter = 1 }, new AjaxOptions { UpdateTargetId = "importPartUpdate", HttpMethod = "GET", InsertionMode = InsertionMode.Replace, OnComplete = "success("+@item.ID+")" }, new { id=item.ID})<br><br>                      </li> <br>                    }<br>                } <br>            }<br>        </ul><br>    </div> <br><br><br></nav><br>   <script><br>       function success(ids) {<br><br>           var nocache = new Date().getTime(); <br><br>           jQuery.ajax({<br>                url: '@Url.Action("GridLanguageView")/?menuID='+ids<br><br><br>           }).done(function (data)<br>           {<br><br><br>             $(".floatLanguage").replaceWith(data);<br>             alert(data);<br>           });<br><br><br><br>       }<br>     </script>
Hristo Valyavicharski
Telerik team
 answered on 03 Jun 2014
3 answers
867 views
Hi There,
I'm just starting to use the RadGrid and I can't see how to access the data from GridCommandEventArgs.

I have a simple grid bound to an ObjectDataSource that is a .NET generated dataset (a .xsd file in the App_Code folder).
I have set up the grid so there is a delete button on each line.

Because the dataset uses more than 1 table and the Select uses a Join I cannot use the Delete/Update commands from the dataset ( as Visual Studio can't generate the SQL for Joined tables).

So I plan to capture the Delete command and do my changes to the dataset in that method and then update back to the database.

However, I do not know how to reference the record (row) on which Delete was pressed.  I need this to get the unique ID for the record.  Once I have this reference I can use it to find the records other fields and edit or otherwise manipulate the data.
I thought this might return the first column in the record but apparantly not.

    protected void RadGrid1_DeleteCommand(object source, GridCommandEventArgs e)
    {
        string ID = (string)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["RoleName"];  <-------This does not work

        string ID2 = (string)e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][0];  <-------This does not work
    }

I have no DataKeyValues set in the aspx file because ( I believe) I generate the field names from the dataset

How do I reference the row?
Is this the right way to deal with this problem?

Thanks for any help
Richard










Shinu
Top achievements
Rank 2
 answered on 03 Jun 2014
0 answers
61 views
hello

As shown in attached image , I am viewing the Radgrid on tablet which is touch screen ,
so it becomes difficult to click the prev and next button which is at the bottom of Radgrid .
How can i enlarge the size of the buttons so that it becomes easier to click by touch.

please help.

thanks
Kishor
Kishor
Top achievements
Rank 2
 asked on 03 Jun 2014
5 answers
216 views
hello

Iam using radchart for windows form

as attached in below chart ,the x-axis text is not seen completely

i want to see the complete text

please help

thanks
kishor
Kishor
Top achievements
Rank 2
 answered on 03 Jun 2014
3 answers
110 views
Hi
I'm trying to copy into a new div my htmlchart and print it with Chrome (Version 35.0.1916.114 m).
My page structure is the following:
- RadSplitter
        |_ RadPane
                   |_ Div (id = pieContainer)
                                   |_ RadHtlmChart

- Div (id=newDiv)

On print button click
function PrintableVersion() {
                //find telerik object container              
               var pieContainer = $telerik.$("#pieDiv");               
                   //append pie
               $("#newDiv").append(pieContainer.clone(true));
 
               //imposto la pagina come A4 orizzontale
               $(".A4Page").css({ width: "29.7cm", "min-height": "19cm", "margin-top": "10px", "padding-top": "10px", visibility: "visible" });
 
               //hide splitter
               var splitter = $find("<%=RadSplitter1.ClientID %>");
               splitter.set_visible(false);              
              //lancio la stampa
               window.print();
 
               //reset page
               $("#newDiv").empty();
               $(".A4Page").css({ height: "0", visibility: "hidden" });
               splitter.set_visible(true);
           }           
       </script>

See the attach for the result
pie chart is black

If I changed this row
     $("#newDiv").append(pieContainer.clone(true));
with
     $("#newDiv").append($get("pieDiv").innerHTML);              
same problem

If I changed with (no clone)
     $("#newDiv").append(pieContainer);
it works but I lost the pie into the original page

thanks
Danail Vasilev
Telerik team
 answered on 03 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?