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

FormDecorator and RadGrid Checkboxes - invisible.

10 Answers 218 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Grzesiek
Top achievements
Rank 2
Iron
Grzesiek asked on 25 May 2008, 12:47 PM
When I put FormDecorator to my page, where I have RadGrid with CheckBoxColumn the checkboxes are making invisible.

Anyone one know why?

10 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 27 May 2008, 05:29 AM
Hi Grzesiek,

We are aware of this performance issue with RadGrid and RadFormDecorator, but unfortunately, due to rendering issues with both controls we are not able to give an adequate solution of how to fix it. However, this bug will be fixed with the next quarterly release of RadControls for ASP.NET AJAX. In the meantime you may us the DecoratedZoneID of FormDecorator in order to specify decorated zones and thus exclude the zone with RadGrid.

Sincerely yours,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
CSurieux
Top achievements
Rank 2
answered on 11 Jun 2008, 11:10 AM
Hello Martin,

Should be easier to have a NonDecoratedZoneId so we could remove the only grid of the page and it certainly represent 90% of pages.
CS
0
Tervel
Telerik team
answered on 12 Jun 2008, 07:26 AM
Hi Christian,

We are about done with making some changes to the grid and the treeview controls so that the form decorator is able to skin them properly. The coming Q1 2008 SP2 next week should feature much improved behavior :)


Sincerely yours,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gabriel Beauchamp
Top achievements
Rank 2
answered on 17 Jun 2008, 09:34 PM
Even in a simple table, the CheckBox disappears in FireFox, but is visible in IE7. Here is an example:

<telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="RadioButtons,CheckBoxes" EnableEmbeddedSkins="true" Skin="Default" />
        <table>
            <tr>
                <td>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </td>
            </tr>
        </table>

Any help would be appreciated.
0
Georgi Tunev
Telerik team
answered on 18 Jun 2008, 06:16 AM
Hi Gabriel,

You need to set the Text property of the checkbox as well so it can be skinned properly - for example you can set it to a single space (&nbsp;). The new version of RadFormDecorator that should appear tomorrow (19.06) will do this automatically in case Text is not set.




Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gabriel Beauchamp
Top achievements
Rank 2
answered on 18 Jun 2008, 02:44 PM
Good, thanks.

Another problem arose when trying to change the value of the Checked attribute using javascript. When I change it using javascript, the skin does not change.

Is there a way around that?
0
Georgi Tunev
Telerik team
answered on 18 Jun 2008, 03:14 PM
Hi Gabriel,

Currently RadFormDecorator does not have a method for checking / unchecking the checkboxes in a form or another element, but you can easily implement one of your own, by:

1. Looping through the inputs with attribute type="checkbox" in the form or in their parent element, i.e:

var checkboxes = document.getElementsByTagName('input');

document.getElementsByTagName('input') && checkboxes.getAttribute('type') == 'checkbox';

2. Loop through the responding labels of each checkbox in the form or in their parent, and:

- set "unchecked" className='SkinName radfdCheckboxUnchecked';

or respectively:

- set "checked" className='SkinName radfdCheckboxChecked';

If needed, use the IE Developer Toobar to view the generated classes, and how RadFormDecorator works, and do not forget to add the skin-specific class in the toggle classes, i.e - if you are using the Default skin:

className='Default radfdCheckboxUnchecked';
className='Default radfdCheckboxChecked'

I hope this helps.


Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gabriel Beauchamp
Top achievements
Rank 2
answered on 18 Jun 2008, 04:05 PM
Thanks, that worked perfectly!
0
Nick
Top achievements
Rank 1
answered on 21 Jun 2008, 01:35 AM
I have installed the latest version of Telerik (619 release) and am still experiencing issues with the RadGrid when I using the RadFormDecorator.  The Insert & Refresh images in the command area of my RadGrid are invisible when I include the RadFormDecorator (yet they are still operational).

The release notes state that there were fixes related to RadFormDecorator interaction with RadGrid.

If someone has found a work around, I would like to know about it.
0
Tervel
Telerik team
answered on 23 Jun 2008, 12:16 PM
Hi Nick,

We are not sure what might be causing the issue. There is an online demo that demonstrates the correct functioning of RadFormDecorator with RadGrid. You can view the example here:
http://www.telerik.com/demos/aspnet/prometheus/FormDecorator/Examples/FormDecoratorGridTabstrip/DefaultCS.aspx

On a side note, the new [significant] changes in RadFormDecorator brought about users reporting problems in several specific scenarios. We are currently keeping a thread that describes those and provides workarounds. Here is the link to the thread: http://www.telerik.com/community/forums/thread/b311D-bekebd.aspx

Is it possible to send us a simple project that demonstrates your issue? Once we are able to reproduce it locally, we will find what is causing it and provide a solution in that forum thread.


Greetings,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
FormDecorator
Asked by
Grzesiek
Top achievements
Rank 2
Iron
Answers by
Martin
Telerik team
CSurieux
Top achievements
Rank 2
Tervel
Telerik team
Gabriel Beauchamp
Top achievements
Rank 2
Georgi Tunev
Telerik team
Nick
Top achievements
Rank 1
Share this question
or