Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
93 views

Hi,

I have placed RadAjaxLoadingPanel1 in two forms .the senario is when i  click on the save button it will redirect to second page with querystring parameters.its saving the data and showing the loadingpanel while saving .But after saving when it redirect to other page it showing the error .please find the attached  error screen shot and code .please let me know.
thank you.

<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="btnPrintCard">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="updatepanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Hay">
        </telerik:RadAjaxLoadingPanel>

Pavlina
Telerik team
 answered on 24 Aug 2012
3 answers
571 views
Hello,
I have a Telerik RadGrid in a user control.
When I use the Excel Export, with ExportSettings:
    <ExportSettings>
            <Excel Format="Biff" />
    </ExportSettings
I recieve the following message:

Value of '0' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Parameter name: emSize


When I change the Format to Html it works, but I get the warning that the File Extension is wrong.

Also, when I use the same grid (with Format=Biff) in a ASPX file direcly instead of a user control, it works OK

Can anybody tell me what to do to have the BiffExport work in a user control?

This is the Trace when the error occurs:
  
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle 
style, GraphicsUnit unit, Byte gdiCharSet, Boolean 
gdiVerticalFont)<BR>   at System.Drawing.Font.Initialize(String 
familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, 
Boolean gdiVerticalFont)<BR>   at System.Drawing.Font..ctor(String 
familyName, Single emSize)<BR>   at 
Telerik.Web.UI.ExcelBiff.Font.GetData()<BR>   at 
Telerik.Web.UI.ExcelBiff.Workbook.AddFontRecordToList(Font font)<BR>   
at Telerik.Web.UI.ExcelBiff.StyleHandler.GetFontIndex(Cell cell)<BR>   
at Telerik.Web.UI.ExcelBiff.StyleHandler.GetXFIndex(Cell cell)<BR>   
at Telerik.Web.UI.ExcelBiff.Cell.CreateBiffCell()<BR>   at 
Telerik.Web.UI.ExcelBiff.Worksheet.WriteRowBlocksAndCells(Stream stream, Int32 
lastRow, UInt32 indexRecOffsetsStart, Int32 firstCol, Int32 
lastCol)<BR>   at Telerik.Web.UI.ExcelBiff.Worksheet.Write(Stream 
stream)<BR>   at Telerik.Web.UI.ExcelBiff.Workbook.Save(Stream 
stream)<BR>   at 
Telerik.Web.UI.ExportInfrastructure.XlsBiffRenderer.Render()<BR>   at 
Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderForm(HtmlTextWriter 
nullWriter, Control form)<BR>   at 
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection 
children)<BR>   at 
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter 
writer)<BR>   at 
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter 
writer)<BR>   at 
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter 
output)<BR>   at 
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, 
ControlAdapter adapter)<BR>   at 
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter 
adapter)<BR>   at 
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter 
writer)<BR>   at 
Telerik.Web.UI.Grid.Export.TableViewExporter.ExcelExportRenderPage(HtmlTextWriter 
nullWriter, Control page)<BR>   at 
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection 
children)<BR>   at System.Web.UI.Control.RenderChildren(HtmlTextWriter 
writer)<BR>   at System.Web.UI.Page.Render(HtmlTextWriter 
writer)<BR>   at 
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, 
ControlAdapter adapter)<BR>   at 
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter 
adapter)<BR>   at System.Web.UI.Control.RenderControl(HtmlTextWriter 
writer)<BR>   at 
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, 
Control page)<BR>   at 
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection 
children)<BR>   at System.Web.UI.Control.RenderChildren(HtmlTextWriter 
writer)<BR>   at System.Web.UI.Page.Render(HtmlTextWriter 
writer)<BR>   at 
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, 
ControlAdapter adapter)<BR>   at 
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter 
adapter)<BR>   at System.Web.UI.Control.RenderControl(HtmlTextWriter 
writer)<BR>   at 
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, 
Control page)<BR>   at 
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection 
children)<BR>   at System.Web.UI.Control.RenderChildren(HtmlTextWriter 
writer)<BR>   at System.Web.UI.Page.Render(HtmlTextWriter 
writer)<BR>   at 
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, 
ControlAdapter adapter)<BR>   at 
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter 
adapter)<BR>   at System.Web.UI.Control.RenderControl(HtmlTextWriter 
writer)<BR>   at System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<BR>

Regards,

Frank
Daniel
Telerik team
 answered on 24 Aug 2012
1 answer
97 views
hiii,,
how can i remove the underline in hyperlinkcolumn?

regards
hash
Shinu
Top achievements
Rank 2
 answered on 24 Aug 2012
3 answers
118 views
Good afternoon,

I am creating a WebUserControl, and it got a menu and a RadComboBox, where I created a Width property therein.
Would you like a hint of you have some method that I call the combo update for it, because when I fill my property width does not resize the combo in "Design", but when I compile the project and squeegee on the browser size the combo is in agreement with the value set in the property.

Following is the code used in the annex.

<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="comCedente.ascx.vb" Inherits="GSaaSD.comCedente" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Panel ID="pnCombo" runat="server" Width="276px" style="float:left;">
    <div id="DivMenu"
        style="float:left;margin-top:0px; width: 150px;height:15px;">
        <telerik:RadMenu ID="RadMenu1" runat="server"
            EnableRoundedCorners="true" EnableShadows="true"
            Width="13px" Height="15px" Skin="Web20"
            BackColor="White" BorderColor="White" style="z-index:100;" ClickToOpen="true" >
            <Items>
                <telerik:RadMenuItem Text="" Width="11px" Height="13px" PostBack="False" ImageUrl="../../Imagens/seta_baixo.png" >
                    <Items>
                        <telerik:RadMenuItem Text="Fornecedor" />
                        <telerik:RadMenuItem Text="Usuário" />
                        <telerik:RadMenuItem Text="Plano de Conta" />
                    </Items>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
        <asp:Label ID="lblCedente" Text="" runat="server" style="z-index:101;margin-left:5px;font-family:segoe ui, arial, sans-serif;font-size:11px;"></asp:Label>
    </div>
    <p style="clear:both;width:15px;height:2px;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;"></p>
    <telerik:RadComboBox ID="combo" runat="server" EnableAutomaticLoadOnDemand="True"
        EnableVirtualScrolling="True" Filter="StartsWith" ForeColor="#666666" ItemsPerRequest="10"
        LoadingMessage="Carregando..." MaxLength="50" ShowMoreResultsBox="True" AutoPostBack="True"
        Width="275px" Skin="Default"
        style="z-index:102;margin-right:0px;padding-right:0px;">
    </telerik:RadComboBox>
</asp:Panel>

Public Property Width_Combo() As Integer
    Get
        Return Width_Controle_Combo
    End Get
    Set(ByVal value As Integer)
        combo.Width = value
        pnCombo.Width = value
    End Set
End Property
Ivana
Telerik team
 answered on 24 Aug 2012
1 answer
307 views
OnCheckedChanged event fires in any case but when I de-check the very last flag still on.
Is it known?
Thank you

<
telerik:GridTemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="CheckBoxSet" AutoPostBack="True"  OnCheckedChanged="RadGridScheduler_CheckChanged" runat="server" />                                                                   
 </ItemTemplate>                                                               
<HeaderStyle Width="30px" />
</telerik:GridTemplateColumn>
 
 
    Protected Sub RadGridScheduler_CheckChanged(ByVal sender As Object, ByVal e As EventArgs)
        Try
            'here
        Catch ex As Exception
            Call LogManager.WriteToErrorLog(errorPath, ClassName, System.Reflection.MethodBase.GetCurrentMethod.Name.ToString(), ex, Err)
        End Try
    End Sub
Eyup
Telerik team
 answered on 24 Aug 2012
5 answers
112 views
Dear Team,


i ve a web site with many rad controls in front page like Rad Dock, Rad Menu, Rad Grid, Rad Tool Tip, Rad Slider.

While opening the front page all rad controls are opening first than rad slider.

i want to show rad slider first or with other other controls.

could u give the suggestion, why rad slider is opening later.

Also give some solution.


regards,
Satyadev.
Slav
Telerik team
 answered on 24 Aug 2012
1 answer
75 views

Hi,

I am dynamically adding RadComboBoxes to placeholder and I have a search Button and reset Button.
I am using Page method to data bind  RadComboBox as shown in the link.
On clicking "search" Button,  I collect values from these Comboxes and process the information.
By clicking "Reset" button, I  clear the selection from Comboboxes .

After a post back from "search" button, if I try to reset ComboBoxes, it does not clear the selection from  comboBoxes.
But if "Reset"  button is clicked before any post back to server,   it successfully  clears selection from comboBoxes.



Dynamically Adding Comboxes :
             RadComboBox  radAutoCompleteBox = new RadComboBox();
             radAutoCompleteBox  .ID = f"ACPTBox"+ i;
              radAutoCompleteBox.WebServiceSettings.Method = "GetDataForSearchControl";
              radAutoCompleteBox.WebServiceSettings.Path = "TSearch.aspx";
              radAutoCompleteBox.CssClass = "TSrchCBBox"; 
              
              radAutoCompleteBox.OnClientItemsRequesting = "autoCompleteRequesting";
             
              radAutoCompleteBox.Skin = "Office2010Blue";
              radAutoCompleteBox.EnableEmbeddedSkins = true;
              radAutoCompleteBox.EnableViewState = true;
              radAutoCompleteBox.AutoPostBack = false;
              radAutoCompleteBox.AllowCustomText = true;
              radAutoCompleteBox.EnableLoadOnDemand = true;
              radAutoCompleteBox.EnableVirtualScrolling = true;
              radAutoCompleteBox.ShowMoreResultsBox = true;
             
           

TO CLEAR SELECTION 

                  radAutoCompleteBox.ClearSelection(); //THIS DOES NOT WORK
                  radAutoCompleteBox.Items.Clear(); 
                  radAutoCompleteBox.SelectedIndex = -1;
                  radAutoCompleteBox.Text = "";


             

http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx 

Can someone help me in solving this issue?
Thanks,
Prava
Ivana
Telerik team
 answered on 24 Aug 2012
1 answer
111 views
hii,
how can i hide the next/prev buttons in calender?

thanks....
Princy
Top achievements
Rank 2
 answered on 24 Aug 2012
1 answer
112 views
hi,,
how to save and load state of raddock in database..

thanks..
Shinu
Top achievements
Rank 2
 answered on 24 Aug 2012
2 answers
74 views
Hello telerik team,

the RadAjaxPanel loops under certain conditions and never stops until
clicking the browsers reload button.

I solved the problem, but other users might have the same problem some time.

Situation:
On the left side resides a country filter in a RadListBox and on the right side a
RadTabStrip with a RadMultipage. By selecting a country the tab reloads via the
RadAjaxManger and the AjaxPanel shows progress. Selecting another tab everything
works fine, but going back to the first tab and selecting another country, the AjaxPanel loops.

Reason:
I built some JavaScript around the RadListBox because i wanted multiple selection
without holding CTRL. I found the following script and it works fine:

Sys.Application.add_load(function () {
            var clb = findCountryListBox();
 
            $telerik.$(".rlbItem", clb._getGroupElement())
            .click(function (event) {
                event.stopImmediatePropagation();
                event.ctrlKey = true;
                clb._onClick(event);
            });
  });

The programm worked until i wanted to set the initial width of a RadSlider in percentage.
I added a couple of lines at the top of the Sys.Application.add_load method, but changing
the width of the slider in this method prevents the AjaxPanel from proper execution.

Sys.Application.add_load(function () {
            var clb = findCountryListBox();
            var ms = findMarginSlider();
         
        x = $("#marginTextRow").width();
       var offsetWidth = x * 0.9;
       ms.set_width(offsetWidth);
 
            $telerik.$(".rlbItem", clb._getGroupElement())
            .click(function (event) {
                event.stopImmediatePropagation();
                event.ctrlKey = true;
                clb._onClick(event);
            });
        });

Solution:
I changed the way to set the initial witdth which is shown here How to set the Width/Height of RadSlider in percentages
and the AjaxPanel runs fine.

I hope my post is not too confusing, but changing a controls property in the Sys.Application.add_load
method might be not a good idea if you're working with the RadAjaxManager and the RadAjaxPanel.

Firstable i tried several ways to configure the RadAjaxManger but nothing prevented the
AjaxPanel from looping until i moved the code that sets the slider width to another method.

Greetings,
Hubert
Hubert
Top achievements
Rank 1
 answered on 24 Aug 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?