GridHTMLEditorColumn in RadGrid - Update doesn't work in Firefox

9 posts, 0 answers
  1. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 29 Jan 2009 Link to this post

    I'm using a GridHTMLEditorColumn in the RadGrid to enable rich text editing.

    It's all within a custom DNN (4.9) module with Ajax enabled.

    I'm using ObjectDataSource to enable automatic Edit/Update for the grid, update works fine in IE, but passes OLD data when used in Firefox.

    I narrowed it down to RadEditor problem by replacing GridHTMLEditorColumn with GridBoundColumn - worked just fine in both IE and Firefox.

    Please help.

    p.s. forgot to mention that the problem is with the "Update" being an ImageButton.

    The root of the problem is covered in depth in this thread. To make it work, I had to use a "LinkButton" instead of the ImageButton.
  2. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 29 Jan 2009 Link to this post

    WORKAROUND: Use LinkButton in the EditColumn.

    <EditFormSettings>
                    <EditColumn ButtonType="LinkButton" UniqueName="EditCommandColumn1" >
                    </EditColumn>
    </EditFormSettings>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Feb 2009 Link to this post

    Hello Chris,

    If you defined appropriate update/insert commands for your ObjectDataSource instance, the new value entered by the end user should be passed to the DAL regardless whether you use IE or FireFox browser. Can you please check whether the examples presented here:

    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/grideditors/defaultcs.aspx?product=grid
    http://www.telerik.com/community/code-library/submission/b311D-kemte.aspx

    work as expected on your machine under both browsers? Is it possible that some custom javascript error that appears under FF only causes the erratic behavior? Any further details concerning your grid configuration can help us pinpoint the reason for the issue to eliminate it asap.

    Best regards,
    Sebastian
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. chris
    chris avatar
    22 posts
    Member since:
    Aug 2012

    Posted 02 Feb 2009 Link to this post

    Sebastian, thank you for the reply. Sorry to mislead you with my post, but both your examples use the LInkButton to update the row, my problem was a combination of an ImageButton and RadEditor.

    I've edited the posts to reflect that.

    Also, I've found the workaround to make if work for now - I hope you'll fix the problem in the later release.

    Thank you.
  6. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Feb 2009 Link to this post

    Hi Chris,

    Can you reproduce the issue with the update from image button by modifying the examples I pointed out? Simply send an updated version of the code from the demos attached to a formal support ticket in order to investigate the matter further since we are still not able to recreate the erroneous behavior. Thus we will do our best to advice you further.

    Best regards,
    Sebastian
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Marcel Härry
    Marcel Härry avatar
    28 posts
    Member since:
    Jul 2009

    Posted 29 Jan 2012 Link to this post

    I have the same problem on ie 9. used controls: v.2011.3.1305.40
    LinkButton works, ImageButton does not, so i made my LinkButtons to ImageButtons.
    I'ts ugly but it works...
    <EditFormSettings ColumnNumber="2" CaptionDataField="wer" CaptionFormatString="Eintrag {0} bearbeiten"> 
    <EditColumn ButtonType="LinkButton" InsertText="<img src='images/ok.gif' border='none'/>" 
    UpdateText="<img src='images/ok.gif' border='none'/>"
    UniqueName="EditCommandColumn1"
    CancelText="<img src='images/cancel.gif' border='none'/>">
    </EditColumn>
  8. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 31 Jan 2012 Link to this post

    Hi,

    Could you open a formal support ticket  with description of the problem and attach a project which is replicating the issue, so we could test/debug it locally?

    When we finish investigating the issue we will share our findings with you.

    Greetings,
    Andrey
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  9. John
    John avatar
    41 posts
    Member since:
    Nov 2007

    Posted 29 Apr 2013 Link to this post

    We have exactly the same issue with IE 9 2013.1.220.35 build. ImageButton works fine with Chrome, not with IE9. Everything is fine after changing it to LinkButton. Is there a fix for this?
  10. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 03 May 2013 Link to this post

    Hi John,

    What error/exception do you get when using the ImageButton?
    The first think that comes on my mind is that you are rebinding the Grid during Page_Load, which is causing recreation of the controls inside it. When the controls are recreated the ImageButton's old object does not exist and you will get HttpRequestValidationException. If this is the case you have to choose between using the LinkButtons and avoid rebinding the grid so early in the Page Lifecycle.
    Another possible solution will be to use RadButton for ImageButton, it has overridden Control Page Validation to allow to make PostBack even when it is not anymore in the page.

    All the best,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017