Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
332 views
We have a rather peculiar issue going on with the ajax loading panel.

First, the changes we did:

  • We have upgraded from Telerik Q3 2010 to Q3 2011
  • We have updated the solution from VS 2008 to VS 2010
  • We have also updated the project to use the .Net Framework version 4.0 from 2.0
  • The project is being published to a separate machine running on IIS 7 (previously was on IIS 6 on the same separate machine)
  • We are using a 64 bit application pool with integrated mode (previously was 32 bit classic mode)

When we run the aspx site from within Visual Studio, it works fine and the loading panel shows up as expected.

However when we publish to the other machine, that's when it looks odd.  The loading panel doesn't show at all (although the processing of the aspx page still appears to work).  Checking with fiddler also shows that the loading panel doesn't work (nothing is sent/received).

We have the following code in the aspx page:

<telerik:RadAjaxManager id="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnValidate">
                             <UpdatedControls>
                                   <telerik:AjaxUpdatedControl ControlID="divAll" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
                               </UpdatedControls>
                </telerik:AjaxSetting>
           </AjaxSettings>
</telerik:RadAjaxManager>
 
 
<telerik:radAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" mindisplay="5000" ZIndex="10000">
     <asp:Image ID="Image2" runat="server" ImageUrl="../images/Loading3.gif" alt="loading..."  />
</telerik:radAjaxLoadingPanel>


We are not sure what else we might be missing?
Maria Ilieva
Telerik team
 answered on 05 Jun 2012
0 answers
44 views
I have an odd issue w/ my ajaxmanager - whenever it updates something, i get some odd text next to the controls I indicated that it updated  - attached is a screenshot.


what am I doing wrong?
Jeremy
Top achievements
Rank 1
 asked on 05 Jun 2012
1 answer
76 views
I have a page and clicking of a button opens a small RadWindow. Here the user makes some selections and clicks 'Generate' button. Now the server will start to stream a PDF file. Now radWindow.VisibleOnPageLoad = false does not work because the response stream is now PDF and not normal content type text/html

Is there a way to close the RadWindow in this case or is it a bug/limitation with Telerik RadWindow? 
Marin Bratanov
Telerik team
 answered on 05 Jun 2012
1 answer
72 views
Is the above possible ?

Essentially, i've got a collection of html anchor tags. I've set them to runat server and added their i'd to the target controls of the RadToolTipManager.

What i want to do is have each of these anchor tags cause an ajaxupdate request of the tooltipmanager and show the tooltip.
Each of the anchor tags has an id, which relates to an id in my database. I therefore want to query the database with this ID and pull out the appropiate information associated with the anchor tag.

The anchor tag enscapsulates an image, so if there's an easier way in which i should use a different control/element let me know.

Regards,

Alan
Marin Bratanov
Telerik team
 answered on 05 Jun 2012
3 answers
95 views
Hi,

I am trying to export the radgrid content to a pdf file. My grid has hierarchy data. In the PDF file, the header is getting attached in each page. How do i overcome this issue. I made the header not to show up for each level but irrespective of that i am seeing the header. Attached the file for reference. 

Regards,
Meenakshi Sekar. 
Andrey
Telerik team
 answered on 05 Jun 2012
5 answers
131 views
What I am trying to do is match the text of my grid field to my dropdownlsit field text, but it always gives me the follwoing error even though the text is in the item is in the dropdown list in the grid.  I am trying to match computer make and models that come up from and existing table to a new database.  for example.

Optiplex 755
Optiplex 760
Precision 2000
latitude 2400

In my dropdown inside my radgird these are all in there but when the match tries to happen it tells me they are not, it should nto be a case issue.

 <telerik:GridBoundColumn DataField="strSN" HeaderText="SN" />
                                <telerik:GridBoundColumn DataField="strComputername" HeaderText="NETWORK NAME" />
                                <telerik:GridBoundColumn DataField="strBrand" HeaderText="EXIST_MODEL" />
                                <telerik:GridTemplateColumn HeaderText="DB_Model">
                                    <ItemTemplate>
                                        <asp:DropDownList ID="ddlModel" runat="server" CausesValidation="false"></asp:DropDownList>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>

Code to fill grid dropdown
Protected Sub myRadGrid_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound
       If (TypeOf e.Item Is GridDataItem) Then
           Dim item As GridDataItem = CType(e.Item, GridDataItem)
           Dim options As DropDownList = DirectCast(item.FindControl("ddlModel"), DropDownList)
           Dim field As String = e.Item.Cells(5).Text.ToString.ToLower
           sql = "Select dm.intModelId, m.strmake + ' ' + dm.strModel Model from Drat_Model dm INNER JOIN Drat_Make m on m.intMakeId = dm.intMakeId Order by strModel"
           buildDD(sql, options)
           'options.SelectedItem.Text = DirectCast(DataBinder.Eval(e.Item.DataItem, field).ToString(), String)
       End If
   End Sub



Error
DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'optiplex 760'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'optiplex 760'.
  
Source Error: 
  
  
Line 95: 
Line 96:             buildDD(sql, options)
Line 97:             options.SelectedItem.Text = DirectCast(DataBinder.Eval(e.Item.DataItem, field).ToString(), String)
Line 98:         End If
Line 99:     End Sub
  


but if I comment out and then populate it works and the Optiplex 760 is in the dropdownlist and is also the same as the field Exist_Model.
Shinu
Top achievements
Rank 2
 answered on 05 Jun 2012
4 answers
244 views
I have a grid that is by default grouped into 1 grouping upon page load.  This is accomplished in the Page_Load event as in the following code.  I had to do this because if using the client-side settings for grouping, when exporting, the group names do not show up in an exported ExcelML format.

        If Not IsPostBack Then
            rgWeightBreaks.MasterTableView.Columns(2).Visible = False
            rgWeightBreaks.MasterTableView.GroupByExpressions.Add(New Telerik.Web.UI.GridGroupByExpression(rgWeightBreaks.MasterTableView.Columns(2)))
...

I have a toolbar that changes the grouping of the grid.  If I don't do anything in the grid such as expand a group, these buttons work flawlessly.  However, if I expand a group and then try to use one of the buttons, I get "Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."

Here is my client-side code:
        <telerik:RadScriptManager ID="rsmWeightBreaks" runat="server" />
 
        <telerik:RadSkinManager ID="rskmWeightBreaks" runat="server" ShowChooser="false" />
 
        <telerik:RadScriptBlock runat="server" ID="rsbWeightBreaks">
            <script type="text/javascript">
                function onRequestStart(sender, args) {
                    if (args.get_eventTarget().indexOf("rtbExport") >= 0) {
                        args.set_enableAjax(false);
                        bExporting = false;
                    }
                }
            </script>
        </telerik:RadScriptBlock>
 
        <telerik:RadAjaxManager ID="ramWeightBreaks" runat="server"
            DefaultLoadingPanelID="ralpWeightBreaks"
            ClientEvents-OnRequestStart="onRequestStart"
            meta:resourcekey="ramWeightBreaksResource1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgWeightBreaks">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgWeightBreaks" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="rtbWeightBreaks">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rtbWeightBreaks" />
                        <telerik:AjaxUpdatedControl ControlID="rgWeightBreaks" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
 
        <telerik:RadAjaxLoadingPanel ID="ralpWeightBreaks" runat="server"
            meta:resourcekey="ralpWeightBreaksResource1"></telerik:RadAjaxLoadingPanel>
 
        <div style="width:800;">
        <asp:Label ID="lblIntroText1" runat="server" Text="Thank you for the opportunity to quote your shipment, please click on the below gateway to view your rates." meta:resourcekey="lblIntroText1" />
        <br /><br />
        <asp:Label ID="lblIntroText2" runat="server" Text="The inland rates displayed below reflect the price per kilogram in US Dollars." meta:resourcekye="lblIntroText2" />
        <br /><br />
        <asp:Label ID="lblFuelSurchargeText1" runat="server" meta:resourcekey="lblFuelSurchargeText1"></asp:Label> <asp:Label ID="lblFuelSurchargeAmount" runat="server" /> <asp:Label ID="lblFuelSurchargeText2" runat="server" meta:resourcekey="lblFuelSurchargeText2" />
        <br /><br />
        <div>
            <asp:Label ID="lblTermsAndConditions" runat="server" meta:resourcekey="lblTermsAndConditionsResource" Text="All quotes are subject to the " /> <asp:HyperLink ID="hlTermsAndConditions" runat="server" meta:resourcekey="hlTermsAndConditionsResource" NavigateUrl="#" Text="Terms & Conditions" />
        </div>
        <br />
        </div>
 
        <telerik:RadTabStrip ID="rtsWeightBreaks" runat="server" Width="802px"
            meta:resourcekey="rtsWeightBreaksResource1" SelectedIndex="0">
            <Tabs>
                <telerik:RadTab runat="server" Text="US Exports - Inland Rates" Selected="true"
                    meta:resourcekey="RadTabResource1"></telerik:RadTab>
                <telerik:RadTab runat="server" Text="US Imports - Inland Rates" Selected="true"
                    meta:resourcekey="RadTabResource2"></telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
 
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    <telerik:RadToolBar ID="rtbWeightBreaks" runat="server"
                        OnButtonClick="rtbWeightBreaks_ButtonClick"
                        meta:resourcekey="rtbWeightBreaksResource1">
                        <Items>
                            <telerik:RadToolBarButton Text="Gateway View" CommandName="GatewayView"
                                runat="server" Enabled="false" meta:resourcekey="RadToolBarButtonResource1"></telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="Airport View" CommandName="AirportView"
                                runat="server" meta:resourcekey="RadToolBarButtonResource2"></telerik:RadToolBarButton>
                        </Items>
                    </telerik:RadToolBar>
                </td>
                <td>
                    <telerik:RadToolBar ID="rtbExport" runat="server"
                        OnButtonClick="rtbWeightBreaks_ButtonClick"
                        meta:resourcekey="rtbExportResource1">
                        <Items>
                            <telerik:RadToolBarButton Text="Export To Excel" CommandName="ExportToExcel"
                                runat="server" meta:resourcekey="RadToolBarButtonResource3"></telerik:RadToolBarButton>
                        </Items>
                    </telerik:RadToolBar>
                </td>
            </tr>
        </table>
 
        <telerik:RadGrid ID="rgWeightBreaks" runat="server" Width="800px"
            CellSpacing="0" GridLines="None" meta:resourcekey="rgWeightBreaksResource1">
            <MasterTableView AutoGenerateColumns="false" GroupsDefaultExpanded="false" GroupLoadMode="Client"
                DataKeyNames="OriginAirport, DestinationAirport, TariffNumber" ClientDataKeyNames="OriginAirport, DestinationAirport, TariffNumber"
                UseAllDataFields="true" EnableHeaderContextMenu="true" AllowFilteringByColumn="true">
                <Columns>
                    <telerik:GridBoundColumn HeaderText="Origin City" DataField="OrgAirportCity"
                        HeaderStyle-Width="200px" ItemStyle-Width="200px" AllowFiltering="true"
                        meta:resourcekey="GridBoundColumnResource1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Airport" DataField="OriginAirport"
                        HeaderStyle-Width="50px" ItemStyle-Width="50px" AllowFiltering="true"
                        FilterControlWidth="35px" ShowFilterIcon="false" AutoPostBackOnFilter="true"
                        meta:resourcekey="GridBoundColumnResource2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="To Gateway" DataField="DestAirportCity"
                        HeaderStyle-Width="175px" ItemStyle-Width="175px" UniqueName="OriginCity"
                        Groupable="true" AllowFiltering="true"
                        meta:resourcekey="GridBoundColumnResource3">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Transit Days" DataField="TransitDays"
                        HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Right"
                        ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Right" AllowFiltering="false"
                        meta:resourcekey="GridBoundColumnResource4">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="Minimum Charge" DataField="MinimumCharge"
                        DataFormatString="{0:C}" HeaderStyle-HorizontalAlign="Right"
                        ItemStyle-HorizontalAlign="Right" AllowFiltering="false"
                        meta:resourcekey="GridBoundColumnResource5">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="45 kgs<br/>(100 LBS)" DataField="BreakOne"
                        DataFormatString="{0:C}" HeaderStyle-HorizontalAlign="Right"
                        ItemStyle-HorizontalAlign="Right" AllowFiltering="false"
                        meta:resourcekey="GridBoundColumnResource6">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="225 kgs<br/>(500 LBS)"
                        DataField="BreakTwo" DataFormatString="{0:C}"
                        HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                        AllowFiltering="false" meta:resourcekey="GridBoundColumnResource7">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="450 kgs<br/>(1000 LBS)"
                        DataField="BreakThree" DataFormatString="{0:C}"
                        HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                        AllowFiltering="false" meta:resourcekey="GridBoundColumnResource8">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn HeaderText="1350 kgs<br/>(3000 LBS)"
                        DataField="BreakFour" DataFormatString="{0:C}"
                        HeaderStyle-HorizontalAlign="Right" ItemStyle-HorizontalAlign="Right"
                        AllowFiltering="false" meta:resourcekey="GridBoundColumnResource9">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CityAirport" HeaderText="From Airport"
                        UniqueName="CityAirport"
                        Groupable="true" meta:resourcekey="GridBoundColumnResource10" Display="false">
                    </telerik:GridBoundColumn>
                </Columns>
                <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="false" />
            </MasterTableView>
            <GroupingSettings ShowUnGroupButton="true" />
            <ClientSettings AllowExpandCollapse="true" EnableRowHoverStyle="true" AllowDragToGroup="true">
                <Selecting AllowRowSelect="true" />
                <Scrolling UseStaticHeaders="true" AllowScroll="true" ScrollHeight="500px"/>
                <Resizing AllowColumnResize="true" />
            </ClientSettings>
            <ExportSettings OpenInNewWindow="true" ExportOnlyData="true">
                <Excel Format="ExcelML" />
            </ExportSettings>
        </telerik:RadGrid>
 
        <telerik:RadToolTip ID="rttTermsAndConditions" runat="server"
            TargetControlID="hlTermsAndConditions" RelativeTo="Element"
            Title="Terms And Conditions" Width="700px" Animation="Slide"
            HideEvent="LeaveTargetAndToolTip"
            meta:resourcekey="rttTermsAndConditionsResource">
            <div style="margin:10px">
                <ol>
...


Antonio Stoilkov
Telerik team
 answered on 05 Jun 2012
5 answers
153 views
Hi,

Im doing migration from ASP.NET Q3 2008 to ASP.NET AJAX Q1 2012 (both 4.0 Framework). How can I convert it? Does the dragging of RadScriptManager to existing page will convert it to ASP.NET AJAX? It did change some items on my web config but it looks like it doesnt run as ASP.NET AJAX. The Live samples has some port # in localhost when it is run, but my existing project has same localhost as before. And comparing their web config, has a huge difference. Any step by step info for dummies like me would be a great help.. What will happen to old rad dll? Thanks in advance..

RJ
RJ
Top achievements
Rank 1
 answered on 05 Jun 2012
1 answer
246 views
I have a radtextbox in a radwindow and I want to be able to expand the height of the textbox as the user resizes the radwindow. I have the textbox set up like so:

<telerik:RadTextBox runat="server" ID="configData" TextMode="MultiLine" Width="100%" Height="300px"/>
When I adjust the width of the window the width of the textbox will also expand so my first thought was to set the height to a percentage value however this did not work.

Is there a way to achieve this functionality?

Thanks
Vasil
Telerik team
 answered on 05 Jun 2012
7 answers
167 views
Hi,

I am using RadGrid in my asp.net project. When I click on Add new Record link, new row in RadGrid gets added. This new row contains four RadComboBox controls.When I select any particular value in first RadComboBox, respective value should be autopopulated in other three RadComboBox controls of new row. How can I achieve for new row in RadGrid..

Appreciate
if you could help, Thanks!

-Vinayak
Andrey
Telerik team
 answered on 05 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?