Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
112 views
Hi,

On my page (aspx). I have this code

RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(Page);
 ajaxManager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(this.RadAjaxManager1_AjaxRequest);

I load a user control dynamically

var ucToolMfgInfo = (UserControls_ToolsDetailsMfgInfoUC)Page.LoadControl("~/Tools/UserControls/ToolsDetailsMfgInfoUC.ascx");

This user control has button which opens a radwindow. The javascript on this user control is on radscriptblock. When the radwindow open, On the radwindow, when I click submit button, it saves data and then  it calls function from aspx page to refresh the browserwindow. It is browserwindow.refeshGridComponent. I can get the alert test111 but the ajaxmanager does not refresh and it does not call RadAjaxmanager_ajaxrequest function to update the grid on the user control.
function refreshGridComponent(arg, arg1) {
                alert('test111');
                var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(this.Page).ClientID %>");
                ajaxManager.ajaxRequest("Component"); 
            }

In the Radajaxmanager_ajaxrequest function on aspx page

protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
   try
   {
          if (e.Argument == "Component")
                    LoadUserControls("A3");
    }
}

Any help is appreciated.

Thanks.

Andrey
Telerik team
 answered on 17 Jul 2012
2 answers
152 views
Hello again,

I have come across a strange rendering issue with the HtmlChart as you can see in the screenshot attached.  The chart is nested in a radgrid and populates the data just fine.  The axis for both y and x along with the points in the line series all render correctly with no issue.  But the actual grid and the line itself of the chart render way off to the right for some reason.  This seems to happen in all versions of IE from 6 thru 9.

Any help would of course be appreciated.

Following is the markup for the radgrid on the page:

<telerik:RadGrid ID="ReportsDataGrid" runat="server"
    AutoGenerateColumns="false"
    AllowPaging="true"
    AllowFilteringByColumn="true"
    DataSourceID="ReportsDataSource"
    ShowGroupPanel="true"
    PageSize="25">
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView DataSourceID="ReportsDataSource" DataKeyNames="SenderAddress,SourceIP"
    GroupLoadMode="Server" CommandItemDisplay="Top">
        <Columns>
            <telerik:GridBoundColumn DataField="SenderAddress" HeaderText="Sender Email Address" />
            <telerik:GridBoundColumn DataField="SourceIP" HeaderText="Sender Source IP Address" />
            <telerik:GridBoundColumn DataField="Messages" HeaderText="Messages" DataFormatString="{0:N0}" />
            <telerik:GridBoundColumn DataField="Volume" HeaderText="Volume (KB)" DataFormatString="{0:N0}" />
        </Columns>
        <PagerStyle
            Mode="NextPrevAndNumeric"
            Position="Bottom"
            AlwaysVisible="true"
            />
        <CommandItemSettings 
            ShowAddNewRecordButton="false"
            ShowExportToExcelButton="true" 
            ShowExportToCsvButton="true"
            />
        <NestedViewTemplate>
            <asp:Panel runat="server" ID="InnerContainer" Visible="false">
                <div class="nestedchartcontentpane" style="position:relative">
                    <asp:Label ID="SelectedRecordEmail" runat="server" Text='<%# Eval("SenderAddress") %>' Visible="false" />
                    <asp:Label ID="SelectedRecordIP" runat="server" Text='<%# Eval("SourceIP") %>' Visible="false" />
                    <telerik:RadHtmlChart runat="server" ID="ReportsDataChart" Width="900" Height="300"
                        Transitions="true" DataSourceID="ReportsNestedDataSource"  >
                        <Legend>
                            <Appearance Visible="false" />
                        </Legend>
                        <PlotArea>
                            <XAxis MajorTickType="Outside" MinorTickType="None" DataLabelsField="Date">
                                <LabelsAppearance DataFormatString="{0}" RotationAngle="45" />
                                <TitleAppearance Visible="true" Text="Date" />
                                <MinorGridLines Visible="false" />
                            </XAxis>
                            <YAxis MajorTickType="Outside" MinorTickType="None">
                                <LabelsAppearance DataFormatString="{0:N0}" RotationAngle="0" />
                                <TitleAppearance Visible="true" Text="Messages" />
                                <MinorGridLines Visible="false" />
                            </YAxis>
                            <Series>
                                <telerik:LineSeries Name="Messages" MissingValues="Gap" DataField="Messages">
                                    <LabelsAppearance Visible="false" />
                                    <TooltipsAppearance DataFormatString="{0:N0}" />
                                </telerik:LineSeries>
                            </Series>
                        </PlotArea>
                    </telerik:RadHtmlChart>
                    <asp:SqlDataSource ID="ReportsNestedDataSource" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:asp_statistics %>" 
                        SelectCommand="GetReportsExchTopRelayAddressesChart" 
                        SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ReportsSelectedDate" Name="date"
                                PropertyName="SelectedDate" Type="DateTime" />
                            <asp:ControlParameter ControlID="ReportsOn" Name="type"
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="ReportsDataUnit" Name="unit"
                                PropertyName="SelectedValue" Type="String" />
                            <asp:ControlParameter ControlID="SelectedRecordEmail" Name="address"
                                PropertyName="Text" Type="String" />
                            <asp:ControlParameter ControlID="SelectedRecordIP" Name="sourceip"
                                PropertyName="Text" Type="String" />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </div>
            </asp:Panel>
        </NestedViewTemplate>
    </MasterTableView>
    <ExportSettings 
        HideStructureColumns="true"
        ExportOnlyData="true"
        IgnorePaging="true"
        OpenInNewWindow="true"
        />
</telerik:RadGrid>
Slav
Telerik team
 answered on 17 Jul 2012
3 answers
239 views
Hello,

We've recently upgraded to VS 2010 and have started dabbling in some MVC.  We currently have both non-MVC pages co-mingled with MVC pages.  We seem to have run into an issue with the RadEditor's SpellChecker.  The error message we receive is below.  Followed by our web.config and skin file (used for all editors in our application).  I've done some research to try to fix the problem without having to post a new thread but we're still unable to find the solution to our problem.  Any ideas?  If you need anything else please let us know.

Error Message:
"Message from webpage:
The spellchecking functionality requires a HttpHandler registration in web.config. Please, use the control Smart Tag to add the handler automatically, or see the help for more information.
/Telerik.Web.UI.SpellCheckHandler.axd"

Web.config:
<system.web>   
   <httpHandlers>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" validate="false" />
      <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.1.12.611, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true" />
   </httpHandlers>
</system.web>
<system.webServer>
   <validation validateIntegratedModeConfiguration="false" />
   <modules runAllManagedModulesForAllRequests="true" />
   <handlers>
     <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
     <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.axd" type="Telerik.Web.UI.DialogHandler" />
     <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
     <add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.1.12.611, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode" />
   </handlers>
</system.webServer>


Skin file:
<telerik:RadEditor runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" Width="99%"
ToolsFile="~/RadControls/Editor/ToolsFile_slim.xml" EnableResize="False"
ContentFilters="RemoveScripts,IECleanAnchors,ConvertFontToSpan,IndentHTMLContent,ConvertToXhtml" 
StripFormattingOptions="MSWordRemoveAll" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" 
SpellCheckSettings-AjaxUrl="/Telerik.Web.UI.SpellCheckHandler.axd"  ExternalDialogsPath="~/RadControls/EditorDialogs"  />


Thanks!
Daniel Brewer
Rumen
Telerik team
 answered on 17 Jul 2012
13 answers
204 views
I have noticed a bug when placing Flash objects in content with RadEditor. This happens whether I use Firefox or Internet Explorer to place the flash animation.
When I save the content and view it on the page, the flash animation appears as expected in Internet Explorer, however it shows up as the big "F" icon in Firefox. From what I can tell, the editor is failing to swap out the placeholder image tag with the proper tags to embed the swf animation. I also noticed that I can switch to HTML view and save it while I am in HTML view and it works fine in all browsers. This has lead me to believe that there is an issue with the RadEditor javascript that fires when the modes are switched and when the content is saved. Please advise on how to fix this issue.
Rumen
Telerik team
 answered on 17 Jul 2012
2 answers
204 views
Hello,

I am currently using a RadMultiPage with Width="100%" and BorderWidth="1px". I understand that the intended behavior is that the 1 pixel is added on top of the 100%, however, this is causing me some problems. I would like the control to have an overall width of 100%, including the border. Is there an easy way to achieve this behavior?

Thanks in advance,
Robin
Robin
Top achievements
Rank 1
 answered on 17 Jul 2012
1 answer
74 views
Dear All Guru's,  I have been trawling the internet looking for away to use the RadScheduler and the Exchange provider to open another users calendar within Exchange.  I have got it working for 1 calendar but ideally I would like to open calendars side by side.  If someone could help me I would be most grateful.

Simon
Simon
Top achievements
Rank 1
 answered on 17 Jul 2012
1 answer
91 views
Hi,

Both RadTextBox and RadDatePicker cannot be focused in FireFox when they are placed in a DIV which scrolls with JQuery JScrollPane.

Any suggestions?

BR, Marc
Antonio Stoilkov
Telerik team
 answered on 17 Jul 2012
0 answers
138 views
Hi Team,

I have an ajaxified page.

I am opening a pop up from the repeater (from a link in repeater).

In the popup I have one more repeater control. I have a link button in the repeater. When clicked on the button another pop up opens.

We can add some data and close the two popups and return to the parent page.

Now when I try to navigate away from the page by clicking a button, I am getting the error "Microsoft JScript runtime error: 'length' is null or not an object".

When I debug the javascript, I was taken to WebResource.axd file and showing the error as shown in the attachment.

This is happening only in IE and not in Chrome and Firefox.

Any one have solution?

Regards
Srinivas
Sri
Top achievements
Rank 1
 asked on 17 Jul 2012
3 answers
111 views
I have radupload it opens a dialog box to upload the file, file is seleted but it never uploads and attaches on the submital ..

code below..

<label for="resume">Upload Resume</label><BR>  <div 
class="clear" style="height: 8px"></div><BR>  <a href="#" 
id="upload">Select a PDF</a><span 
id="filename"></span><BR>        
<asp:FileUpload ID="FileRadUpload" runat="server" accept="application/pdf" 
style="visibility:hidden;height:0;"  
/><BR>        <asp:CustomValidator 
ID="Customvalidator1" runat="server" Display="Dynamic" 
ValidationGroup="Validate"<BR>            
ControlToValidate="FileRadUpload" 
ClientValidationFunction="validateRadUpload"<BR>            
CssClass="errormessage" 
SetFocusOnError="true"><BR>                
<span class="errormessage">Only PDF extension are 
allowed</span><BR>        
</asp:CustomValidator>  <BR>  <div 
class="clear"></div><BR> </div><!--/field--> <BR> <div 
class="field"><BR>  <label for="position">Desired 
Position:</label><BR>  <telerik:RadTextBox 
ID="PositionRadTextBox" runat="server" EmptyMessage="" TextMode="SingleLine" 
CssClass="gray-02"></telerik:RadTextBox><BR>        
<asp:RequiredFieldValidator ID="PositionRequiredfieldvalidator" 
runat="server" Display="Dynamic" CssClass="errormessage" 
ValidationGroup="ContactGroup" ControlToValidate="PositionRadTextBox" 
ErrorMessage="Enter 
position"></asp:RequiredFieldValidator> <BR> </div><BR> <div 
class="field"><BR>  <asp:Button ID="submit" runat="server" 
CssClass="submit" Text="Submit" OnClick="SubmitButton_Click" 
ValidationGroup="ContactGroup" /><BR> </div><BR>
Peter Filipov
Telerik team
 answered on 17 Jul 2012
1 answer
175 views
Hi all,

    I have a RadListBox, in that I need to access the  label control. Also I need to hide the same in a button click.How can I do this?

Please find the code

    <telerik:RadListBox runat="server" ID="RadList_1" Height="150px" Width="180px" CheckBoxes="true"
           ButtonSettings-ShowTransferAll="true" onitemdatabound="RadList_1_ItemDataBound">
                       <ItemTemplate>
                           <asp:Label ID="lblTest" runat="server" Text="Test"></asp:Label>
                       </ItemTemplate>                    
                   </telerik:RadListBox>


Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 17 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?