Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
194 views
Hi Everyone,

I would like to ask if anyone can help me with this problem, since till now i wasnt able to solve it myself. Problem is with RadAsyncUpload.
- This control is in <asp:Panel> so maybe that can cause it, maybe not.

- This problem occures only in Firefox. In IE and Chrome, upload control is working as expected.

- Problem definition: I click "Browse My Computer" button. Dialog will appear, then i select file and click "open". Dialog will close and nothing will happen. Nothing will start uploading, nothing will show up. There is only "Browse my computer" button and nothing is being done.

- In Firefox when i click on "Browse my computer" button, the page goes to loadPage javascript action and i think also to postback, since i hit the debugger in my customControl.ascx.cs file, so i concluded that in FF after clicking on this button i immediately go to postback but on Chrome and IE i am not jumping into pageLoad nor to debugger in .cs file.

- Also, in Firefox after i click open i wont jump into rauUpload_FileUploaded method. in IE and Chrome i do.

- I checked telerik live demos and it works OK in firefox there.

- Please note that postback happens after i click on "Browse my computer button", NOT after clicking on "open"

The structure is like follows:

MasterPage
{
    page.aspx
    {  
         <asp:panel>
         customControl.ascx
         {
             <RadAsyncUpload>
         }
         </asp:panel>
    }
}


UploadControl code:
<telerik:RadAsyncUpload ID="rauUpload" runat="server" OnFileUploaded="rauUpload_FileUploaded"
    EnableInlineProgress="false" ManualUpload="false" MultipleFileSelection="Automatic"
    MaxFileInputsCount="1" HideFileInput="true" OnClientFilesUploaded="checkFiles"
    OnClientFileUploadRemoved="fileRemoved" Width="150px" OnClientFileDropped="fileRemoved">
    <Localization Select="Select" />
</telerik:RadAsyncUpload>


Files and Versions included from MasterPage(I write these, since it can maybe interfere with telerik asyncupload somehow. They are included in the order they are written here):
jquery-2.1.js
jquery-migrate-1.2.1.min.js
jquery-ui-1.10.4.custom.min.js
jquery.tooltipster.min.js
select2.js
jquery.reveal.js
jquery.dropdown.min.js
JEditable.js
jquery.maskedinput.min.js
UploadControl.js
CommonScripts.js
Telerik DLLs are latest version, i downloaded them yesterday - 2014.3.1024.40


Thanks to anyone who is willing to help me with this.

Plamen
Telerik team
 answered on 21 Jan 2015
1 answer
179 views
Hello,

I have set a grid to go into edit mode when a row is double clicked:
<ClientEvents OnRowDblClick="RowDblClick" />
 
 
function RowDblClick(sender, eventArgs) {
        $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(eventArgs.get_itemIndexHierarchical());
  }


I want to hide the GridEditCommandColumn until a row is double clicked and put into edit mode. At this point the Save and Cancel items will be shown.
Basically I don't want to see the Edit Icon column, double click is the only way to get into edit mode.

Could you please provide some guidance on how to achieve this?

Thanks.


Maria Ilieva
Telerik team
 answered on 21 Jan 2015
2 answers
361 views
Hi,

I've recently come across what I believe are called font icons.
I've had some success using these icons by specifying SpriteCssClass on my RadToolBarButton's.

However, as soon as I specify a Skin for the toolbar, the icons do not render.
See the attached screenshots of the toolbar with and without a skin specified.

Here's my toolbar declaration (only the first 2 buttons included):

<telerik:RadToolBar ID="RadToolBar1" runat="server" RenderMode="Lightweight" Skin="Office2007" Orientation="Horizontal" EnableImageSprites="True" EnableEmbeddedSkins="True" EnableRoundedCorners="true">
    <CollapseAnimation Duration="200" Type="OutQuint" />
    <Items>
        <telerik:RadToolBarButton runat="server" Tooltip="Zoom In" SpriteCssClass="icon-TBi__Zoomin toolBarIconStyle">
        </telerik:RadToolBarButton>
        <telerik:RadToolBarButton runat="server" Tooltip="Zoom Out" SpriteCssClass="icon-TBi__Zoomout toolBarIconStyle">
        </telerik:RadToolBarButton>
    </Items>
</telerik:RadToolBar>

Any suggestions as to how to make this work.

Thanks in advance.

Jim






Ivan Zhekov
Telerik team
 answered on 21 Jan 2015
3 answers
336 views

I have a RadComboBox and I fill it on demand as the user types. No problems.
Now, if the ComboBox has an existing value on page load, and the user deletes it (via "x" or backspace),
the client-side .get_value() and the server-side.SelectedValue() still show the old value.

This is a problem because I check the value before saving, etc. In essence, the user deletes the value (text = "") but it still saves because the checks (client or server) show the value as still being there.

This was working for some time but has broken recently in our Prod version (2013.3.1324 - Q3 2013 SP2 ) and our Test/QA version (latest 2014.3.1209 - Q3 2014 SP1).

Client-side code below:

<telerik:RadComboBox ID="ddlPName" runat="server" CssClass="cert" Width="269px" Height="150px"
 CollapseAnimation-Duration="0" CollapseDelay="0" CloseDropDownOnBlur="true" Skin="Vista"
 EmptyMessage="Type Name" EnableLoadOnDemand="True" ShowMoreResultsBox="true"
 EnableVirtualScrolling="true" OnItemsRequested="ddlPName_ItemsRequested" DropDownWidth="269"
 MarkFirstMatch="false" OnClientSelectedIndexChanged="NameSelectedIndexChanged"
 OnClientDropDownOpened="onClientDropDownOpened" OnClientDropDownClosed="ddlPName_OnClientDropDownClosed"
 OnClientItemsRequestFailed="OnComboCallbackError" OnClientItemsRequesting="onItemsRequesting"
 OnClientTextChange="OnDDLTextChange">

</telerik:RadComboBox>function OnDDLTextChangeICD9(sender, args) {
 if (sender.get_value() == "") {
  sender.set_text("");
 }
}


Thanks for any ideas,
Robert




Nencho
Telerik team
 answered on 21 Jan 2015
1 answer
98 views
OK I was working with the radgrid export functionality and when I press the export button it does a postback and it updates the page with all the rows, and then nothing.

See the attached images. as soon as I click the pdf or csv export buttons on the grid or the separate buttons it re-renders the page with all the records but does not open the PDF or the CSV.

I think I am missing something simple, for I have used export a lot and not had this issue. I am using the most current code base. here is my button code, its really straight forward.

       Protected Sub ExportPDF_Click(sender As Object, e As EventArgs) Handles ExportPDF.Click

            RadGrid1.PageSize = RadGrid1.MasterTableView.VirtualItemCount
            RadGrid1.ExportSettings.IgnorePaging = True
            RadGrid1.ExportSettings.OpenInNewWindow = True
            RadGrid1.MasterTableView.ExportToPdf()
        End Sub



What is going on?


Daniel
Telerik team
 answered on 21 Jan 2015
1 answer
112 views
Hey there,

I have a grid with a default filters - a TextBox and a button next to it to choose filter type ("Contains", "GreaterThan", "LessThan" and so on). Now when I press on it with the mouse - the dropdown list slides down from the point where my mouse is, but if I tab on that button and press "Enter" or "Space" - this dropdown slides from the screen possition "0, 0" (very left top of the screen). Is there a way to change default coords  so that the dropdown would slide down from the button instead of top left of the screen?
(attached an image with example how it looks)

Thanks for any thoughts on how to fix that.

BR,
Modestas.
Eyup
Telerik team
 answered on 21 Jan 2015
1 answer
132 views

RadMenu does not work in ios8.
Dimitar
Telerik team
 answered on 21 Jan 2015
1 answer
263 views


I bind records using RadGrid, and each row it has a link
button. If I click the link, it will open the moalpopup (it is dynamic
one based on some condition). When I close the popup using close button,
it should continue with the link button event.

Code Behind:

protected void grid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item)
{
LinkButton link = ((LinkButton)gridDataItem.FindControl("link"));
ModalPopupExtender popup = (ModalPopupExtender)e.Item.FindControl("popup");
Image imageClose = (Image)e.Item.FindControl("imageClose");
popup.TargetControlID = link.ID;
link.Attributes.Add("onclick", "return false;"); // to avoid postback and stay in page and show popup
imageClose.Attributes.Add("onclick", "proceed('" + link.ClientID + "')");
}
}

Javascript:

function proceed(id)
{
window.document.getElementById(id).removeAttribute("onclick"); // Link button - to remove "onclick" attribute
window.document.getElementById(id).click(); // trigger click event
}

I tried with the above code, the attribute not removed and not continue with link button event.

Jesuraja
Top achievements
Rank 1
 answered on 21 Jan 2015
6 answers
175 views
RadCloudUpload for Amazon and Azure client side. The Documentation says that ", the selected files are directly transferred to the cloud storage. No files are kept on the hard drive of the server" . Does this means the files will be transferred from the clients PC to the cloud directly? . or does the data needs to be uploaded via server ?.
Ross
Top achievements
Rank 1
 answered on 20 Jan 2015
1 answer
115 views
I was trying to use the ColumnCreating event in radgrid, and it appears I cannot reference Telerik.Web. Is that included in the files of "UI for WinForms"?
Marin Bratanov
Telerik team
 answered on 20 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?