Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
231 views
Hi,

I'm using telerik (v2010.2.826.35) RadUpload control. The control works fine in IE9, but when I use it in IE8, the browse button doesn't work (the dialogue box on browse button click doesn't opens).

Can you please provide some solution to this.

One more condition, I can't apply meta tag in the head section of the page to set the document mode to IE7 as there's some kind of bindings in my application.


Thanks

Sumit
Kostas
Top achievements
Rank 1
 answered on 08 Jul 2014
3 answers
283 views
I have been trying to set the value of a hidden field by using Javascript and
then access the value from within my C# codebehind. When I run the code that is
copied below, the value that is assigned to hidden field is null

i have a rad combo in rad grid on OnClientSelectedIndexChanged i am setting selected value to hidden field , and i have another rad combo on this rad combo item request event i am trying to get value from hidden field 

I would appreciate any help with the matter. I have spent hours trying to
solve what seems like a very simple problem.


<telerik:GridTemplateColumn DataField="CostEntityName" HeaderText="Cost Entity" AllowFiltering="true" UniqueName="CostEntityName1">
  <ItemTemplate>
     <telerik:RadComboBox ID="rcb_PODetailCostEntity" runat="server" MarkFirstMatch="True"
                         EnableLoadOnDemand="True" Height="140px" ShowMoreResultsBox="True"
                         ItemRequestTimeout="500" OnItemsRequested="rcb_PODetailCostEntity_ItemsRequested"
                        Width="99%" DataTextField="StatusEntityName" DataValueField="StatusEntityID"
                        DropDownWidth="280px" ExpandEffect="pixelate" OnClientSelectedIndexChanged="GetSelectedCostEntityID">
     </telerik:RadComboBox>
  </ItemTemplate>
<ItemStyle Width="5%" />
<HeaderStyle Width="5%" />
</telerik:GridTemplateColumn>  

<telerik:GridTemplateColumn DataField="CostEntityKeyName" HeaderText="Cost Entity Key" AllowFiltering="true" UniqueName="CostEntityKeyName1">
<ItemTemplate>
    <telerik:RadComboBox ID="rcb_PODetailCostEntityKey" runat="server" MarkFirstMatch="True"
             EnableLoadOnDemand="True" Height="140px" ShowMoreResultsBox="True"
             ItemRequestTimeout="500" OnItemsRequested="rcb_PODetailCostEntityKey_ItemsRequested"
             Width="99%" DataTextField="StatusEntityName" DataValueField="StatusEntityID"
             DropDownWidth="280px" ExpandEffect="pixelate">
    </telerik:RadComboBox>
</ItemTemplate>
<ItemStyle Width="7%" />
<HeaderStyle Width="7%" />
</telerik:GridTemplateColumn>  



Jva script function calling on client selected index changed
function GetSelectedCostEntityID(sender, eventArgs)  
                {
                    var combo = $find("<%= rgPODetailsForNonInv.ClientID%>").get_masterTableView().get_dataItems()[0].findControl("rcb_PODetailCostEntity");
                    //alert(eventArgs._item._properties._data.value);

                    document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_PODetailCostEntityID").value = eventArgs._item._properties._data.value;
                    //$(document).ready(function() {
                    //$("<%=  HiddenField_PODetailCostEntityID.ClientID  %>").val(eventArgs._item._properties._data.value);
                    //});
                    //$("<%= HiddenField_PODetailCostEntityID.ClientID %>").val(eventArgs._item._properties._data.value);
                    //alert(document.getElementById("ctl00_MainContentPlaceHolder_HiddenField_PODetailCostEntityID").value);
                    //document.getElementById("ctl00_MainContentPlaceHolder_lbl_PODetailcostEntity").value = eventArgs._item._properties._data.value;
                }   

code behind Item request event for 2nd rad combo
 protected void rcb_PODetailCostEntityKey_ItemsRequested ( object sender, RadComboBoxItemsRequestedEventArgs e ) 
    {
        try
        {
            string PageParameter = null;
            RadComboBox rcb_CostEntityKey = (RadComboBox)sender;
            GridDataItem dataItem = (GridDataItem)rcb_CostEntityKey.NamingContainer;
            RadComboBox rcb_CostEntity = (RadComboBox)dataItem.FindControl("rcb_PODetailCostEntity");
            int CostEntityID =0;
            int.TryParse(HiddenField_PODetailCostEntityID.Value, out CostEntityID);
            if (CostEntityID == GlobalConstants.CONTRACT_ENTITY_ID)
                PageParameter = "contract";
            if (CostEntityID == GlobalConstants.CSSALES_ORDER_ENTITY_ID)
                PageParameter = "cssalesorder";
            if (CostEntityID == GlobalConstants.CONTRACT_ITEM_ENTITY_ID)
                PageParameter = "contractitem";
            if (CostEntityID == GlobalConstants.PROJECT_ENTITY_ID)
                PageParameter = "project";
            if (CostEntityID == GlobalConstants.TRADING_SALES_ENTITY_ID)
                PageParameter = "tradingsales";
            if (CostEntityID == GlobalConstants.MANUFACTURE_ORDER_ENTITY_ID)
                PageParameter = "ManufactureOrder";
            GetIDValues.rcb_dKey_ItemsRequested(sender, e, int.Parse(rcb_CostEntity.SelectedValue), rcb_CostEntityKey, PageParameter);
        }
        catch (Exception ex)
        {
            XITingExceptionProcessor.ProcessException(this, ex);
        }
    }





Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
1 answer
117 views
Hi,
I am interested in knowing how the radeditor handles requestvalidation - does it encode the html within a javascript function and then decode server-side? Can you provide any information on how radeditor handles validation - like, when it does it, and where?

Thanks

Daniel
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
289 views
I am binding a set of addresses to the RadMap server-side, and would like to set the Zoom and CenterPosition so that the points on the map are all within view.

For instance, the user may have zoomed into the US - the selects a list that adds addresses in Europe.  I would like to reset the map zoom/center to show this whole group.  How would I go about doing this?
Ianko
Telerik team
 answered on 08 Jul 2014
3 answers
180 views
How to resize image on AsyncUpload?
I want to specify a maximum width (Constrain Proportions) when uploading a picture.
If the picture I upload is 1800px wide, I want to be saved as a maximum of 600 px wide.
Tips on how I solve it. I am using the "AsyncUpload - Validation" example....
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
8 answers
236 views
I have a Radgrid which is part of a popup window. the popup window has a panel which has an update panel to which the radgrid is added. The refresh and delete do not work here because the RadGrid1_ItemCommand is never invoked! Whereas if I add the same control, without the popup it works fine.
Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
3 answers
547 views
Hello,

My requirement is to refresh ajaxified grid's data based on some conditions from client side using jquery.
As a temporary solution, I have written following jquery code:

$("a.rgCurrentPage").each(function () {
                    $(this).removeAttr("onclick");
                    $(this)[0].click();
                });

Is telerik provided any client side function to trigger radgrid's pager number's click event using javascript ?

thank you in advance
Gafoor.
Princy
Top achievements
Rank 2
 answered on 08 Jul 2014
1 answer
253 views
Hi there,

I have two RadAsyncUpload and a RadProgressArea on the same page, but I want the RadProgressArea to show only when the user uploading files using the first RadAsyncUpload, and hide the RadProgressArea when the user uploading through the second RadAsyncUpload. Currently, the RadProgressArea shows on both. Is there any way to hide the RadProgressArea using javascript? Any help is much appreciated.
Shinu
Top achievements
Rank 2
 answered on 08 Jul 2014
5 answers
559 views
Want to get the tooltip of a current selected item in radcombobox
sandeep
Top achievements
Rank 1
 answered on 07 Jul 2014
4 answers
191 views
I am setting a target for the radbutton.  This was working fine with my last build from Q1.  With the latest Q2 build, it appears to be ignoring the Target setting to open the link in the parent window. Instead, it navigates to the new page within the existing window.  Did something change here?


<telerik:RadButton ID="testButton" runat="server" NavigateUrl="~/newPage" Text="Setup" Target="_parent" Skin="MetroTouch" ButtonType="LinkButton" AutoPostBack="false" />
Dobromir
Telerik team
 answered on 07 Jul 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?