Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
150 views
I've been digging around with FF's DOM Inspector to figure this out so if I'm mistaken in anything please let me know.

One of the things I've been doing with events on my schedule is to make some of my own css divisions within the events, some of these are at the very bottom of the events and I'd noticed that the longer an event was, the more likely it was that my content would get cut off at the bottom. What it looks like is that the major vertical aspect of each event on the schedule is set by setting a percentage of 100% for each vertical division block (so 40 blocks is 4000%), but then to add some padding values, seemingly to correct for the division lines taking up 1px between times. This seems to have the unfortunate effect of making a dead padded area at the bottom of each event that has the height of the sum of all the divider lines. So if you cross 40 lines you end up with 40px of unusable space at the bottom of the event.

I've played with the values within FireFox and it worked much better to set a percentage height that accounted for the 1px dividers. So in the case that your events height is 25px and the divider is 1px then to cover two blocks and the line (assuming it doesn't cover the top or bottom) it just ends up being 100% / 25px * (25px * 2 + 1px) which is 204% instead of what seems to be in there now, which is 200% and then some padding at the bottoms to make up for the lines.

Since I'm not sure why this design decision was made in the first place I just wanted to point out that it does have some negative consequences if Telerik would like to alter it for the next release or provide a workaround.

Thanks for a great product.
T. Tsonev
Telerik team
 answered on 03 Jul 2008
1 answer
151 views
Is it possible to custom style the "select" button on the rad upload so that it behaves as other asp.net buttons do, with changing color for button down and such when clicked. Currently when clicked it acts like a hyperlink almost, bringing up the file dialog box.
Veselin Vasilev
Telerik team
 answered on 03 Jul 2008
4 answers
154 views
Hi, a customer is reporting that a key screen in my website is failing badly on IE6 (so bad it locks up the window and task manager has to be used to kill it) and giving errors in FF3.  I've verified this for myself; assumption at this stage is the errors relate to the failure in some way.

One error in FF3 is:
a hidden1 is not defined also pops up on my main page from time to time.  the errors seem to occur in the telerik suite and I have no idea how to track them down.

another I think more serious is:
"Permisssion denied to get property XULElement.,accessibleType in /scripts/4_4_4/Radmenu.js  - line 969

};
RadMenu.prototype.RenderInProgress=function(){
return this.DomElement.offsetWidth==0&&RadControlsNamespace.Browser.IsIE;
};

a similar error in RadSplitter.js, line 27

_7.style.width=_8+"px"; var _9=_7.offsetWidth-_8; var _a=_8-_9;









You can see my trial site live and the errors for yourself on
http://trial.fitnessmentor.co.nz

to replicate, go to the join tab, create yourself an account.  it's free so ignore the credit card bit and just click join.

then go to the 'weekly schedule' option in the menu, and create then edit some workouts.







regards
ewart

Peter
Telerik team
 answered on 03 Jul 2008
1 answer
122 views
Hi,

I am currently experiencing an issue in IE7 when attempting to add a hyperlink (through the hyperlink manager) to an image that is contained within a floated div.

As an example, I have performed the following test on the demo site (http://www.telerik.com/DEMOS/ASPNET/Prometheus/Editor/Examples/Default/DefaultCS.aspx).

1. Add a div around the current image using the HTML view of the editor:
<div style="float: left;"><img alt="product logo" src="../../Img/productLogoLight.gif" /></div>
2. Go back to the Design view
3. Click on the image and select the Hyperlink Manager
4. Add a link to the image

The following output is produced in IE:
<a href="http://www.telerik.com">http://www.telerik.com</a>
<div style="float: left"><img alt="product logo" src="../../Img/productLogoLight.gif" /></div>

However, in firefox, it produces the expected output of:
<div style="float: left;"> <a href="http://www.telerik.com"><img src="../../Img/productLogoLight.gif" alt="product logo" /></a></div>

Is there any way to get this to work in IE?
Rumen
Telerik team
 answered on 03 Jul 2008
1 answer
137 views
I think I just misunderstand the clientside model but here's what I'm trying to achieve.

I am trying to get a clientside reference to a raddatepicker in the editformtemplate of a radgrid. I've used the code previously provided in this forum to do this:

          //walks over all elements with the specified tag name inside our grid 
            //does not require registration, but is a bit more complex 
            function GetGridServerElement(serverID, tagName) 
            { 
                if (!tagName) 
                    tagName = "*"; //* means all elements 
                     
                var grid = $get("<%=RadGrid1.ClientID %>"); 
                var elements = grid.getElementsByTagName(tagName); 
                for (var i = 0; i < elements.length; i++) 
                { 
                    var element = elements[i]; 
                    if (element.id.indexOf(serverID) >= 0) 
                        return element; 
                } 
            } 

When I call this function, it does return what looks like the correct object.

However, when I examine the returned object it does not have the methods or properties of the raddatepicker client side object.

i.e.

var rdp = GetGridServerElement("rdpStartDate","*")

returns a valid object and it seems to be related to what I want (one of the properties 'className' is equal to 'pickerWrapper_Telerik'), but it does not seem to be a raddatepicker object. I would have expected to be able to do something like this:

rdp.get_selectedDate()

But, it doesn't work. I think there is some relationships between the object a get back from GetGridServerElement() and the expected client object - but I can't figure it out.

Can you please help??

Thanks.
Veli
Telerik team
 answered on 03 Jul 2008
4 answers
95 views
Hi all

When I double click a day in month view I need to be able to get the startdate. Using this javascript returns NaNNaN etc which is not what I want.

eventArgs.get_startTime();

I've tried get_start() and get_date() but they don't work, any ideas?

Thanks
Jon
Jonathan
Top achievements
Rank 1
 answered on 03 Jul 2008
1 answer
67 views
Hi,
I am using scheduler to display appointments. The problem is that I can have upto 5 appointments in 1 hour. However, the calendar displays only first 2 entries, and then i get "show more" link. After clicking on the link, also I dont get to see anything.
My question is: How can i display all the 5 appointments in month view and disable the "show more" link?

Please let me know ASAP.

Thanks!
Peter
Telerik team
 answered on 03 Jul 2008
1 answer
158 views
I've asked this question before and never got a satisfactory answer. 

None of the "official" examples for iterating through the detail tables to hide the expand/collapse image mention that the grid MUST BE expanded in order for this to work.  And doesn't that kind of defeat the purpose of having expand on demand?

I would like to have an example of how to re-collapse the grid once the expand/collapse images have been hidden. 

And also how to KEEP the expanded state of what the users are looking at on postback, for example, on editing a specific detail row.

Thanks.
Veli
Telerik team
 answered on 03 Jul 2008
5 answers
444 views

Having a problem dragging controls from the toolbox to either the design or source view. Dragging a control and dropping it on the page produces nothing but xml.

Here's a sample from pasting a textbox control:

<

soap-env:envelope soap-env:encodingstyle=http://schemas.xmlsoap.org/soap/encoding/

xmlns:clr="http://schemas.microsoft.com/soap/encoding/clr/1.0" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"

 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 

<soap-env:body>

 How do I fix this?

Thanks

Jacques

Sebastian
Telerik team
 answered on 03 Jul 2008
2 answers
109 views
Is there anyway to check on the client side whether an event is attatched to a menu item? I am setting the OnClientItemClicked event of the menu and it is not firing when I click a menu item. I'm setting the event in my code behind page on the server side like this...

mainMenu.OnClientItemClicked = "hideMainMenu";

Basically what I want to do is have a "Menu" button that will show the menu and then after they select any of the menu items, I want to hide the meu again. Very similar to how a context menu with the exception that this will be the main menu. It is up to the client though, if they want to always show the menu or only show it when the click the menu button which is why I am setting the OnClientItemClicked event in code vs on the page.

Thanks!

===== Menu Code in ASPX page =============

<telerik:RadMenu ID="mainMenu" runat="server"
                EnableViewState="False" Flow="Vertical" Skin="Vista">
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </telerik:RadMenu>
Robert Bross
Top achievements
Rank 1
 answered on 03 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?