Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
201 views
I posted something last week but the issue went away, and no it is back and I can't figure it out so can someone please take a look?
I have a website that works fine on my development pc but when I deploy it to the webserver I get the following error: BC30456: 'RadAjaxManager1_AjaxRequest' is not a member of 'ASP.default_aspx'.
Here is my Radajaxmanager code on the default.aspx page:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"      
        DefaultLoadingPanelID="RadAjaxLoadingPanel1">     
        <AjaxSettings>    
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdPoints" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdPoints">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdPoints" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdGroups">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdGroups" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
            <telerik:AjaxSetting AjaxControlID="GrdThirdParty">     
                <UpdatedControls>    
                    <telerik:AjaxUpdatedControl ControlID="GrdThirdParty" LoadingPanelID="RadAjaxLoadingPanel1" />    
                </UpdatedControls>    
            </telerik:AjaxSetting>    
        </AjaxSettings>    
    </telerik:RadAjaxManager>   
This is the code on the code behind page:
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As AjaxRequestEventArgs)     
        Dim values As String = e.Argument     
        Dim array() As String    
        array = values.Split(",")     
        pointsLowerLimit = CInt(array(0))     
        pointsUpperLimit = CInt(array(1))     
        UpdatePointsLimits(pointsLowerLimit, pointsUpperLimit)     
        UpdatePointsHiddenFields(pointsLowerLimit, pointsUpperLimit)     
        For Each item As GridDataItem In GrdPoints.Items     
            Dim pReceipt As Single = CSng(item("percentOfOperationalNominatedForReceiptRole").Text)     
            Dim pDelivery As Single = CSng(item("percentOfOperationalNominatedForDeliveryRole").Text)     
            Dim imgR As Image = TryCast(item.FindControl("receiptPercent"), Image)     
            Dim imgD As Image = TryCast(item.FindControl("deliveryPercent"), Image)     
            imgR.ImageUrl = setIndicatorURL(pointsLowerLimit, pointsUpperLimit, pReceipt)     
            imgD.ImageUrl = setIndicatorURL(pointsLowerLimit, pointsUpperLimit, pDelivery)     
        Next    
    
    End Sub    
 
This is the Javascript that calls the ajaxmanager when a radwindow closes:
function OnClientClose(oWnd, args) {     
             //get the transferred arguments     
             var arg = args.get_argument();     
             if (arg) {     
                 var pointLimits = new Array();     
                 pointLimits[0] = arg.lowerLimit;     
                 pointLimits[1] = arg.upperLimit;     
                 var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");     
                 ajaxManager.ajaxRequest(pointLimits); // invoke ajaxRequest explicitly      
             }     
         }    
 
I would appreciate any help I can get on this to get it to work on the webserver.
Thank you.
Chris LaFrancis
Top achievements
Rank 1
 answered on 11 May 2010
1 answer
89 views
Can you please provide some documentation about how radcontrol works, specially grid? I want to know the answer to the questions like - when we have paging enabled in grid, does it query the database again to load the second page? When we use Multi-Column sorting, how it works?

Thanks.
Schlurk
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
227 views
Trying to get a DropDown on a RadGrid to use multi-select. Is this even possible? This is what I've tried so far:

        <telerik:GridDropDownColumn DataField="txtOfficeID" DataSourceID="dsOffices"   
            HeaderText="Office" ListTextField="Office_Name" ListValueField="Office_ID" 
            SortExpression="txtOfficeID" UniqueName="txtOfficeID"> 
        </telerik:GridDropDownColumn> 
 
    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
        If TypeOf e.Item Is GridEditFormItem And e.Item.IsInEditMode Then 
            Dim EditFormItem As GridEditFormItem = CType(e.Item, GridEditFormItem) 
            Dim DropDown As RadComboBox = EditFormItem("txtOfficeID").Controls(0) 
            DropDown.AllowCustomText = True 
            DropDown.AutoCompleteSeparator = "," 
        End If 
    End Sub 
 

Roger McCoy
Top achievements
Rank 1
 answered on 11 May 2010
3 answers
147 views
Hello,

I am using the following code in order to give user the ability to cancel uploading a file, while giving the developer the ability to do more actions:

        $telerik.$(".ruCancel", area.get_element()).click 
        ( 
            function(e)  
            { 
                return CancelUpload(); 
            } 
        );   
 
 
//---------------------- 
 
    function CancelUpload() 
    { 
        area.cancelRequest(); 
        alert('canceled');
        return false;    
    }        


what happens is that the alert is executed, which leads to the assumption that the cancelReuest was also executed, but the browser status bar still shows that the file is under upload !!!!

this only happens when using Chrome.



Genady Sergeev
Telerik team
 answered on 11 May 2010
2 answers
294 views
Using the Editor Lite in WCM scenario, users entering an ampersand character it is changed to &amp;
When they save a second time, the ampersand in &amp; it also changed to &amp; resulting in &amp;amp;

Any ideas?

UPDATE: The forum code also changed it in the title.
The title shoud be "ampersand changed to & amp;" without a space between the ampersand and amp;...
Jim Duncan
Top achievements
Rank 1
 answered on 11 May 2010
2 answers
243 views
I have a Radgrid that is populated from a Stored Procedure that dynamically creates columns. Therefore, I have created the RadGrid as follows:
  <telerik:RadGrid runat="server" ID="rgMetricsTrending" AutoGenerateColumns="true"> 
            </telerik:RadGrid> 
Now, the datasource is based on the selected value of a number of controls, but what I need is to change the dataformatString on every column based on the selectedValue of the radComboBox. I attempted to put this in the ColumnCreated sub as follows:
  Private Sub rgMetricsTrending_ColumnCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles rgMetricsTrending.ColumnCreated 
        Select Case e.Column.UniqueName 
            Case "ExpandColumn" 
            Case "TimeFrame" 
            Case Else 
                Dim col As GridNumericColumn = CType(e.Column, GridNumericColumn) 
                Select Case rcbMetrics.SelectedValue 
                    Case Enums.TrendingMetrics.Abandons, Enums.TrendingMetrics.ACD_Calls, Enums.TrendingMetrics.Calls_Offered 
                        'SET FORMAT TO A NUMBER 
 
                        col.DataFormatString = "{0:g}" 
                    Case Enums.TrendingMetrics.AHT, Enums.TrendingMetrics.AHT_Adj, Enums.TrendingMetrics.ASA 
                        'CAST AND FORMAT AS DATE/TIME 
 
                    Case Enums.TrendingMetrics.Contact_Rate, Enums.TrendingMetrics.Pct_Abandoned, Enums.TrendingMetrics.Pct_Transfer, Enums.TrendingMetrics.Service_Level 
                        'SET FORMAT TO PERCENT W/ 2 DECIMAL PLACES 
                        col.DataFormatString = "{0:p2}" 
 
                End Select 
        End Select 
    End Sub 
The issue that I'm having is that apparently ColumnCreated isn't hit on postback, and I need to know a better place to put the above code snippet. I've tried putting it in the ItemDataBound sub, but I do so using a for each column in rgMetricsTrending.Columns, and the count is always 0, so it never changes. The format changes to what I want, based on the selection, but unfortunately, it doesn't change when selectedValue of the Rad Combo Box changes and rebinds...any help would be greatly appreciated.
Veli
Telerik team
 answered on 11 May 2010
4 answers
100 views
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"  
            DataSourceID="AccessDataSource1" DataKeyNames="ID" 
             AllowSorting="True" Skin="" GroupingEnabled="False">             
        <MasterTableView DataSourceID="AccessDataSource1" CssClass="data2" > 
            <NoRecordsTemplate> 
               There are no items available. 
            </NoRecordsTemplate> 
            <ItemTemplate> 
                   <tr> 
                        <td> 
                            <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="FirstNameLabel" runat="server" Text='<%# Eval("FirstName") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="LastNameLabel" runat="server" Text='<%# Eval("LastName") %>' /> 
                        </td> 
                        <td> 
                            <asp:Label ID="CompanyLabel" runat="server" Text='<%# Eval("Company") %>' /> 
                        </td> 
                   </tr> 
                </ItemTemplate> 
             
                <PagerStyle /> 
 
        </MasterTableView> 
        </telerik:RadGrid> 
keymmachine
Top achievements
Rank 1
 answered on 11 May 2010
2 answers
132 views
The title says it all.  I have a hierarchial grid and for tabbing reasons, I only want textboxes to get focus.  I've set the TabIndex to -1 for all my my gridbuttoncolumns and gridclientselectcolumns in the prerender() event.  Expand/Collapse column is the only column left that I need to deal with like this.

Thanks.
Rob
Top achievements
Rank 1
 answered on 11 May 2010
6 answers
193 views
Very simple scenario here,

Got 2 Combobox's when either of them change value, i want a label to display the value.

Without a postback, so js / ajax


Schlurk
Top achievements
Rank 2
 answered on 11 May 2010
1 answer
58 views
Hi & sorry if this is obvious but...

what 's the best approach to creating "standard" customised controls?
In particular I'd like to create a standard tooltip that I'll use throughout my site and it will always use particular settings the same way e.g.:

Animation="Slide"       
Width="240px"
HideDelay="300"  
ShowDelay="300"
 AnimationDuration="300"
Position="MiddleRight"   etc....

Can I overide a standard class or somethng? if so is there something anyone can point me to that explains how this works?
Many thanks
Dimo
Telerik team
 answered on 11 May 2010
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?