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

In Javascript it gives an incorrect width for a RadTimePicker in Firefox 3 and Safari 3

1 Answer 26 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 14 Oct 2008, 05:18 AM
Hi

In Javascript I need to get the width of a RadTimePicker.

I use the following code (where Picker can be either a RadDatePicker or RadTimePicker):

function getElementDimensions(Picker)
{
    var textBox = Picker.get_textBox();
    var dimensions = Picker.getElementDimensions(textBox);

    return dimensions;
}


I find for a RadDatePicker this works well in IE7, FF3 and Safari 3 for both height and width.

For a RadTimePicker the height is correct for all 3 browsers.

However the width is only correct in IE7. FF3 and Safari are way out.

Is there a different approach needed for a RadTimePicker?


Kind regards

Mark Eaton

1 Answer, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 16 Oct 2008, 08:45 AM
Hi Mark,


Please find attached a sample web application that demonstrates the needed approach.

Kind regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Input
Asked by
Mark
Top achievements
Rank 1
Answers by
Missing User
Share this question
or