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

Image is being cut

14 Answers 182 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Italo
Top achievements
Rank 1
Italo asked on 17 Apr 2008, 11:01 PM
Radio Buttons skinned by the form decorator are being cut. I had to make a change to the CSS to fix it; I added the height attribute. I'm using IE 6

.radfd_Outlook .radfdCheckboxChecked,
.radfd_Outlook .radfdCheckboxUnchecked,
.radfd_Outlook .radfdRadioUnchecked,
.radfd_Outlook .radfdRadioChecked
{
 font: normal 11px Verdana, Arial, Sans-serif;
 padding: 0 4px 0 20px;
 display: block; float: left;
 line-height: 17px;
 height: 17px;
 color: #404040;
}

14 Answers, 1 is accepted

Sort by
0
Quang
Top achievements
Rank 1
answered on 18 Apr 2008, 12:11 AM
I just encountered the same issue.  Thanks for the tip.  It was extremely useful.  Another approach I found you can take is to specify a default  value of  
0
Martin
Telerik team
answered on 18 Apr 2008, 12:27 PM
Hello Quang,

RadFormDecorator works properly only on semantic and accessible markup, that is - the checkboxes have to be supplied with the W3C required attribute <label>, which is used for the actual skinning of the controls (we use css to send the checkboxes and radiobuttons far left, away from browser's viewport).

Best wishes,
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 14 May 2008, 11:53 AM
Hello Martin,

Could you develop please: I have all my Web20 Formdecorated checkboxes (generated in codebehind by a lonely 'new checkbox()') truncated as explained by Italo.
I don't need any text for my checkbox and take no care generating any <label> by setting the Text property or the LabelAttribute. Does your answer means that I should ? An how ?

Thanks
CS
0
Eric
Top achievements
Rank 2
answered on 15 May 2008, 03:52 PM
Some of my checkboxes do not have a defined text property, does that mean that those cannot be fix?

Thanks,
Eric
0
Martin
Telerik team
answered on 19 May 2008, 07:41 AM
Hi Eric,

The skinned checkboxes and radiobuttons are designed and intended to work with semantic and accessible markup, i.e. they need to have the label property set, because the actual "skinning" is carried out by that element, not by the checkboxes and radiobuttons which are hidden by the form decorator. If you do not need labels for your controls, please, set a &nbsp; to the text property of each element. This will fiix the display problem.

Regards,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ADe
Top achievements
Rank 1
answered on 22 Jul 2008, 02:53 PM
I'm getting the same problem. They work fine unless I add a style rule of,

body
{
      font-size: 11px;
}

As soon as I do this the radio and checkbox images get cropped. is style option in the first post of this thread the only solution.

All have lables set so that not it.
0
Tervel
Telerik team
answered on 23 Jul 2008, 01:26 PM
Hi ADe,

The RadControls for ASP.NET AJAX  Q2 2008, to be released today should address this problem properly. Our suggestion is to download the Q2, try it and in case you find any issue with the RadFormDecorator outstanding, please get back to us.


Best wishes,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
ADe
Top achievements
Rank 1
answered on 23 Jul 2008, 04:08 PM
I downloaded it, installed it, removed the style fix from above and get the same problem.

Maybe I downloaded the wrong thing. The file was called,
RadControls_for_ASP.NET_AJAX_2008_2_708_FUTURES_trial.exe

Is that right?
0
Georgi Tunev
Telerik team
answered on 24 Jul 2008, 06:52 AM
Hello ADe,

The Q2 release should be available for download in the next several hours - we apologize for the delay.

Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ADe
Top achievements
Rank 1
answered on 24 Jul 2008, 04:12 PM
Well guys I still get the problem (unless I include the css fix).

I found that if I uninstalled Q1 and then installed Q2 (only) that in my Visual Studio project it couldn't find any of the Telerik components which I thought was odd.

I went ahead and removed everything, then installed Q1 and then Q2 and then copied the hotfix files over the Q2 files in Program Files.
 
The issue is still present. Could it be that Visual Studio is still using the Q1 version as (like a say) it didn't work at all with just Q2 installed?

I'm using Visual Studio 2005 by the way on .net Framework 2.0.

EDIT: Just noticed Q2 are a completely new set of controls in the toolbox. That's probably the problem. Is there an easy way to convert my existing project to use the new controls? Surely I don't have to start over!
0
Georgi Tunev
Telerik team
answered on 25 Jul 2008, 09:53 AM
Hi ADe,

Installing the Q2 release should not be the reason for the problem that you experience with your project. Can you please open a support ticket and send the project to me so I can check it? I'll get back to you right away.



Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
MB
Top achievements
Rank 1
answered on 26 Jul 2008, 05:29 PM
Q2 release doesn't fix it for me... still getting the checkbox image positioned too low and hence appreaing to be chopped off.

Checkboxes all have labels, no weird global css that can be affecting it.

I've just about given up on this thing, as I've spent too much time on it already, and there is precious little documentation. 

Edit: UGH!! ---------------------------------

I found the cause of the problem...

The file: RadControls_for_ASP.NET_AJAX_2008_2_723_dev.exe  which I downloaded from MyClient area, was faulty, and actually contained the Q1 installation.

I just installed the file based on the description, and didn't stop to check that it was actually the file it said it was.

It would seem that there was a problem with feeding the wrong file from the MyClient area, as down-loading the same file again now gives me the Q2 release, which works as expected.

0
Georgi Tunev
Telerik team
answered on 28 Jul 2008, 05:56 AM
Hi MB,

Yes, uploading of the files in the Client.Net accounts is a time-taking process and if you have downloaded the release before it was officially announced on the main page, there is a chance for this problem to appear. We apologize for the inconvenience.


Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
MB
Top achievements
Rank 1
answered on 28 Jul 2008, 06:48 AM
Hi,

Actually, I downloaded after it was announced (being on the other side of the world means I am always downloading after the announcement) and from MyClient download... which showed it as the available Q2 download.

As I said... the file name says it's Q2 but the contents was actually Q1

Anyway, it's good now.
Tags
FormDecorator
Asked by
Italo
Top achievements
Rank 1
Answers by
Quang
Top achievements
Rank 1
Martin
Telerik team
CSurieux
Top achievements
Rank 2
Eric
Top achievements
Rank 2
ADe
Top achievements
Rank 1
Tervel
Telerik team
Georgi Tunev
Telerik team
MB
Top achievements
Rank 1
Share this question
or