RadGrid GridButtonColumn throws an exception in Firefox 3.0.6

12 posts, 0 answers
  1. Liat Malka
    Liat Malka avatar
    5 posts
    Member since:
    Dec 2007

    Posted 01 Mar 2009 Link to this post

    Hi,

    I have a RadGrid inside an <asp:panel> in my page.
    The grid has a 
    GridButtonColumn that does some AJAX operation in the displayed page. here is definition in the grid:

    <

    radG:RadGrid ID="grdFavorites" runat="server" CssClass="RadGrid"

     

     

     

     

     

    AllowPaging="True"

     

     

     

     

    AllowSorting="True"

     

     

     

    EnableAJAX="false" EnableAJAXLoadingTemplate="false"

     

     

     

    AutoGenerateColumns="False"

     

     

     

    Skin="None"  

     

     

    LoadingTemplateTransparency="7"

     

     

     

     

    PageSize="100" Width="100%" GridLines="None"

     

     

     

    OnItemCommand="grdFavorites_ItemCommand"

     

     

     

     

     

    OnItemDataBound="grdFavorites_ItemDataBound" onfocus="this.blur();"

     

     

     

     

    AllowMultiRowEdit="true"

     

     

     

     

    OnNeedDataSource="grdFavorites_NeedDataSource">  

     

     

    <ClientSettings>

     

     

     

     

     

    <ClientEvents OnRequestStart="RequestStart" />

     

     

     

     

     

    </ClientSettings>

     

     

     

    <MasterTableView

     

     

     

    HeaderStyle-CssClass="RadGridHeader"

     

     

     

    FooterStyle-CssClass="RadGridHeader"

     

     

     

    ItemStyle-CssClass="RadGridItem"

     

     

     

    AlternatingItemStyle-CssClass="RadGridAltItem"

     

     

     

    Width="100%"

     

     

     

    GridLines="none" DataKeyNames="Id" Style="cursor:pointer;"

     

     

     

    AllowMultiColumnSorting="True"

     

     

    BorderWidth="0">

     

     

    <Columns>

     

     

    .......
    <radG:GridButtonColumn ItemStyle-Width="7%" ButtonType="ImageButton" ImageUrl="../Images/MyImage.gif"

        HeaderText="Remove"

        UniqueName="RemoveFavorites" CommandName="RemoveFromFavorites"

        Reorderable="False" Resizable="False">

        <ItemStyle Width="40px" />

        <HeaderStyle Width="40px" />

    </radG:GridButtonColumn>

    </

    Columns>

     

     

     

    This works ok on IE (tested versions 6-7). However, in Firefox I get an error, It seems the error is on the imagebutton (see the below NET error).

    Can anyone help out on this one? Is this a known issue? I can debug the code, but I think it is useless...

     

     Thank you!

     

    Server Error in 'xxx' Application.


    Input string was not in a correct format.

    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.FormatException: Input string was not in a correct format.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [FormatException: Input string was not in a correct format.]

       System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599

       System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112

       System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +138

       System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +12

       System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +661

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1194

     


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 04 Mar 2009 Link to this post

    Hello Liat,

    We have not had similar reports. Based on this information, it is hard to determine what is causing the unwanted behavior. If the issue persists, you can open a formal support ticket, and send us the problematic code, for further investigation.

    Kind regards,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ryan
    Ryan avatar
    7 posts
    Member since:
    Aug 2007

    Posted 06 Mar 2009 Link to this post

    I am getting the same issue as well.  It is happening when I try to click the 'delete' image to delete a row in the grid.  It is also happening in my master detail grid when I click the 'plus' sign.  Only happens with image buttons.

    Any help would be great.  We have had several issues with the grids and the new version of firefox.  I am using 2008 q2.

    Thanks,

    Ryan
  5. Liat Malka
    Liat Malka avatar
    5 posts
    Member since:
    Dec 2007

    Posted 08 Mar 2009 Link to this post

    Hi Yavor,

    Can you please check this issue, since it seems it is not local to our application?
    This happens to me as well when I try to click the 'delete' image to delete a row in the grid. The generated onclick event is (for example):

    onclick

    ="AjaxNS.AR('ctl00$C$FavoritesResultsControl$grdFavorites$ctl01$ctl08$ctl00', '', 'ctl00_C_FavoritesResultsControl_RadAjaxManager1', event); return false;"

     

     

    I cannot open a ticket for some reason (type of subscription?) - I would appreciate any help on this one.

     

    Please guide us how to solve this issue.

     

    Regards,

    Liat Malka

  6. Liat Malka
    Liat Malka avatar
    5 posts
    Member since:
    Dec 2007

    Posted 08 Mar 2009 Link to this post

    Hi Yavor,

    Can you please check this issue, since it seems it is not local to our application?
    This happens to me as well when I try to click the 'delete' image to delete a row in the grid. The generated onclick event is (for example):

    onclick

    ="AjaxNS.AR('ctl00$C$FavoritesResultsControl$grdFavorites$ctl01$ctl08$ctl00', '', 'ctl00_C_FavoritesResultsControl_RadAjaxManager1', event); return false;"

     

     

     

    I cannot open a ticket for some reason (type of subscription?) - I would appreciate any help on this one.

     

    Please guide us how to solve this issue.

     

    Regards,

    Liat Malka

  7. Aaron
    Aaron avatar
    3 posts
    Member since:
    Mar 2009

    Posted 09 Mar 2009 Link to this post

    I am getting the same error.  In IE it functions properly, in FF 3 it doesn't even get to the ItemCommand event.

    This occurs on the button press.  The imagebutton in question is the "ownershipcolumn"
    <radG:RadGrid ID="gridTimeCard" LoadingTemplateTransparency="15" EnableAJAXLoadingTemplate="True" 
        UseEmbeddedScripts="false" ShowStatusBar="False" ShowFooter="false" EnableViewState="false" 
        Visible="False" Skin="WebBlue" AllowFilteringByColumn="True" EnableAJAX="true" 
        AllowSorting="True" AllowPaging="true" runat="server" RadControlsDir="~/Include/RadControls/" 
        AutoGenerateColumns="False" GridLines="None" LicenseFile="~/Include/RadControls/LicenseFile.xml" 
        SkinsPath="~/Include/RadControls/Grid/Skins"
        <GroupingSettings CaseSensitive="false" /> 
        <MasterTableView PageSize="25" AllowPaging="True" ShowFooter="false" 
            DataSourcePersistenceMode="ViewState" EnableViewState="true" EnableColumnsViewState="true" 
            RetrieveAllDataFields="false" AdditionalDataFieldNames="FullNameReverse" AllowFilteringByColumn="true"
            <NoRecordsTemplate> 
                <center> 
                    <span class="lbl_small_red">There are no timecards.</span></center
            </NoRecordsTemplate> 
            <Columns> 
                <radG:GridTemplateColumn HeaderStyle-Width="40px" ItemStyle-Width="40px" AllowFiltering="false" 
                    HeaderText="In/Out" UniqueName="ownershipcolumn"
                    <ItemTemplate> 
                        <asp:ImageButton ID="imgOwner" Visible="true" runat="server" ImageUrl="~/Include/Style/Image/NotChecked.gif" /> 
                    </ItemTemplate> 
                </radG:GridTemplateColumn> 
                <radG:GridTemplateColumn AllowFiltering="false" HeaderStyle-Width="20px" ItemStyle-Width="20px" 
                    HeaderStyle-HorizontalAlign="center" HeaderText="" UniqueName="StatusImage"
                    <ItemTemplate> 
                        <asp:Image ID="imgStatus" runat="server" /> 
                    </ItemTemplate> 
                </radG:GridTemplateColumn> 
                <radG:GridBoundColumn AllowSorting="true" AllowFiltering="true" AutoPostBackOnFilter="true" 
                    HeaderStyle-HorizontalAlign="left" SortExpression="StatusName" DataField="StatusName" 
                    HeaderText="Status" UniqueName="StatusName" /> 
                <radG:GridTemplateColumn HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" 
                    AutoPostBackOnFilter="true" SortExpression="FullNameReverse" DataField="FullNameReverse" 
                    AllowFiltering="true" HeaderText="User" UniqueName="MyPersonName"
                    <ItemTemplate> 
                        <asp:LinkButton ID="lnkSubmitter" runat="server"></asp:LinkButton> 
                    </ItemTemplate> 
                </radG:GridTemplateColumn> 
                <radG:GridBoundColumn AllowFiltering="false" DataFormatString="{0:MM/dd/yy}" CurrentFilterFunction="GreaterThanOrEqualTo" 
                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" SortExpression="BeginDate" 
                    AutoPostBackOnFilter="true" DataType="System.DateTime" DataField="BeginDate" HeaderText="Start Date" 
                    UniqueName="BeginDate"
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn AllowFiltering="false" DataFormatString="{0:MM/dd/yy}" CurrentFilterFunction="GreaterThanOrEqualTo" 
                    ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" SortExpression="EndDate" 
                    AutoPostBackOnFilter="true" DataType="System.DateTime" DataField="EndDate" HeaderText="End Date" 
                    UniqueName="EndDate"
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn HeaderStyle-HorizontalAlign="left" ItemStyle-HorizontalAlign="left" 
                    AllowFiltering="false" DataType="System.Boolean" DataField="IsPaper" HeaderText="Was Paper" 
                    UniqueName="IsPaper"
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn ItemStyle-HorizontalAlign="right" DataFormatString="{0:N2}" 
                    AllowFiltering="false" HeaderStyle-HorizontalAlign="right" DataType="System.Decimal" 
                    DataField="ApprovedCompHours" HeaderText="Comp Hours" UniqueName="ApprovedCompHours"
                </radG:GridBoundColumn> 
                <radG:GridBoundColumn ItemStyle-HorizontalAlign="right" DataFormatString="{0:N2}" 
                    AllowFiltering="false" HeaderStyle-HorizontalAlign="right" DataType="System.Decimal" 
                    DataField="TotalHours" HeaderText="Total Hours" UniqueName="TotalHours"
                </radG:GridBoundColumn> 
            </Columns> 
            <ExpandCollapseColumn Visible="False"
                <HeaderStyle Width="19px" /> 
            </ExpandCollapseColumn> 
            <RowIndicatorColumn Visible="False"
                <HeaderStyle Width="20px" /> 
            </RowIndicatorColumn> 
        </MasterTableView> 
        <ClientSettings ReorderColumnsOnClient="True"
            <Scrolling AllowScroll="true" SaveScrollPosition="true" ScrollHeight="150px" UseStaticHeaders="true" /> 
        </ClientSettings> 
        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true"></PagerStyle> 
    </radG:RadGrid> 
     

  8. Aaron
    Aaron avatar
    3 posts
    Member since:
    Mar 2009

    Posted 09 Mar 2009 Link to this post

    FYI, I am using FireFox 3.0.7
  9. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 10 Mar 2009 Link to this post

    Hi Aaron,

    I tested the setup locally, and the control behaved as expected.
    As mentioned previously, since this information is not enough to replicate the issue, you can open a formal support ticket, and send us a small project, demonstrating your setup, along with the unwanted behavior. We will review it locally, and advise you further.

    Kind regards,
    Yavor
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  10. Igor
    Igor avatar
    5 posts
    Member since:
    Mar 2009

    Posted 27 Mar 2009 Link to this post

    Have the same problem.
    Telerik-Guys, PLEASE check all Int.Parse() invocations !!! Exception occurs because of it!
  11. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 30 Mar 2009 Link to this post

    Hello guys,

    The issue under FireFox browser should be addressed since version Q3 2008 of the suite and respectively in the latest release 2009.1.311. Please migrate to these versions of the controls and let us know if you still encounter problems.

    Kind regards,

    Sebastian
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  12. Liat Malka
    Liat Malka avatar
    5 posts
    Member since:
    Dec 2007

    Posted 30 Jun 2009 Link to this post

    Hello!

    Where can i find latest versions (Q3 2008 and 2009.1.311) mentioned above?

    When going to downloads i see only Q3 2007 SP2 (Feb 25, 2008) and 2007.3 1425 (Feb 25, 2008).

    Thank you!

  13. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 01 Jul 2009 Link to this post

    Hello Liat,

    I checked your account and it indicates that you have Single developer license without subscription for RadControls for ASP.NET AJAX Q3 2007. In order to get the Q3 2008 or the latest Q1 2009 release of the suite, you will need to purchase the new version of the controls. See this page on our site for more details:

    http://www.telerik.com/purchase.aspx

    or contact our sales team directly at sales@telerik.com.

    Greetings,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017