This is a migrated thread and some comments may be shown as answers.

RadFormDecorator and RadGrid Issue (GridButtonColumn image not displayed)

4 Answers 85 Views
Grid
This is a migrated thread and some comments may be shown as answers.
AndreaT
Top achievements
Rank 1
AndreaT asked on 21 Aug 2008, 03:08 PM
Hi,

In a master/content page website I have a content page which hosts a RadFormDecorator, used to docorated a search panel and a RadGrid. The grid has Vista skin. The grid has a classic GridButtonColumn:

<telerik:GridButtonColumn ConfirmText="ELIMINARE l'elemento Selezionato?"  
                    ButtonType="ImageButton"  
                    ImageUrl="~/admin/images/Delete.gif"  
                    CommandName="Delete" Text="Elimina Elemento" 
                    UniqueName="DeleteColumn"
        <ItemStyle HorizontalAlign="Center" /> 
    <HeaderStyle Width="30px" /> 
</telerik:GridButtonColumn> 

when th page is first loaded the images are not displayed. The images are displayed back if I select a row or an ajaxified refresh is forced.

I removed the decorator and the images are displayed properly.

Any advice?

Thank you
Lorenzo

4 Answers, 1 is accepted

Sort by
0
Leon
Top achievements
Rank 1
answered on 21 Aug 2008, 07:42 PM
Lorenzo,

Is this the latest Q2 2008 version you are running? I remember Telerik announced better integration with the FormDecorator control with that version.

Otherwise, you can work-around the problem through decorating zones:

http://www.telerik.com/demos/aspnet/prometheus/FormDecorator/Examples/DecorationZoneID/DefaultCS.aspx

or by excluding the image buttons from the decorated controls.

Thanks,
~Leon
0
AndreaT
Top achievements
Rank 1
answered on 22 Aug 2008, 06:17 AM
No way, Leon. Seems that RadFormDecorator is incompatible with radgrid. I tried all of possible combinations, but I does not work.

Moreover I found that hitting the browser refresh button RadFormDecorator-RadGrid combination raise a javascript error:

 function Sys$WebForms$PageRequestManager$remove_pageLoaded(handler) { 
        var e = Function._validateParams(arguments, [{name: "handler", type: Function}]); 
        if (e) throw e; 
 
        this._get_eventHandlerList().removeHandler("pageLoaded", handler); 
    } 

Lorenzo
0
Kiara
Top achievements
Rank 1
answered on 22 Aug 2008, 02:26 PM
Lorenzo, try out whether using decoration zones and excluding the grid from those zones styles by RadFormDecorator is applicable workaround for your case.

Kiara
0
AndreaT
Top achievements
Rank 1
answered on 23 Aug 2008, 01:20 PM
Kiara,

the workaround does not work. I think it is a bug and i will open a support ticket.

Lorenzo
Tags
Grid
Asked by
AndreaT
Top achievements
Rank 1
Answers by
Leon
Top achievements
Rank 1
AndreaT
Top achievements
Rank 1
Kiara
Top achievements
Rank 1
Share this question
or