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

Bug with GroupSettings.Height

8 Answers 90 Views
Menu
This is a migrated thread and some comments may be shown as answers.
tparks69
Top achievements
Rank 1
tparks69 asked on 03 Apr 2008, 01:13 AM
When I use GroupSettings.Height I am consistently getting a javascript framework error. 

Error: get_childListElement() is null or not an object

This doesn't happen in the RadQ3 2007 version.  Is this  a known problem, is there a workaround?

Thanks,

8 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Apr 2008, 02:35 PM
Hi Tom,

We are not aware of such a problem. What is the exact setup in which you use RadMenu. Could you please send us some code, or open a support ticket and attach a small demo project.

Thanks.

Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
T. Tsonev
Telerik team
answered on 03 Apr 2008, 03:20 PM
Hi,

Actually, we have recently discovered an issue with templated items that results in such error. If you are using templated items, please open a formal support ticket, so we can send you a hotfix.

Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tparks69
Top achievements
Rank 1
answered on 04 Apr 2008, 01:56 AM
Actually, I'm not using templated items, it seems to happen when I use GroupSettings-Height in conjunction with the ExpandMode=WebService.  All I have to do is remove GroupSettings-Height="50px" (from the code below) and the code works fine.  I'm using the free developer version so I'm guessing I don't get access to put in a support ticket?

This is (most of) the code:  (.aspx)

<

body>

<form id="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<div>

<telerik:RadMenu ID="RadMenu1" runat="server" OnItemClick="RadMenu1_ItemClick">

<WebServiceSettings Path="rad3.asmx" Method="testmethod" />

<Items>

<telerik:RadMenuItem Text="Projects" Value="1" GroupSettings-Height="50px"

 ExpandMode="WebService"></telerik:RadMenuItem>

</Items>

</telerik:RadMenu>

</div>

</form>

</

body>

This is the code for the asmx.cs:

[WebService(Namespace = "http://tempuri.org/")]

[

WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

[

ScriptService]

public class rad3 : System.Web.Services.WebService

{

[

WebMethod]

public RadMenuItemData[] testmethod(RadMenuItemData item, object context)

{

List<RadMenuItemData> result = new List<RadMenuItemData>();

RadMenuItemData itemData = new RadMenuItemData();

itemData.Text =

"FirstText";

itemData.Value =

"FirstValue";

result.Add(itemData);

RadMenuItemData itemData1 = new RadMenuItemData();

itemData1.Text =

"2ndText";

itemData1.Value =

"FirstValue";

result.Add(itemData1);

RadMenuItemData itemData2 = new RadMenuItemData();

itemData2.Text =

"3rdText";

itemData2.Value =

"FirstValue";

result.Add(itemData2);

RadMenuItemData itemData3 = new RadMenuItemData();

itemData3.Text =

"4thText";

itemData3.Value =

"FirstValue";

result.Add(itemData3);

RadMenuItemData itemData4 = new RadMenuItemData();

itemData4.Text =

"5thText";

itemData4.Value =

"FirstValue";

result.Add(itemData4);

 

RadMenuItemData itemData5 = new RadMenuItemData();

itemData5.Text =

"6rdText";

itemData5.Value =

"FirstValue";

result.Add(itemData5);

RadMenuItemData itemData6 = new RadMenuItemData();

itemData6.Text =

"7thText";

itemData6.Value =

"FirstValue";

result.Add(itemData6);

RadMenuItemData itemData7 = new RadMenuItemData();

itemData7.Text =

"8thText";

itemData7.Value =

"FirstValue";

result.Add(itemData7);

return result.ToArray();

}

}

0
T. Tsonev
Telerik team
answered on 04 Apr 2008, 01:14 PM
Hi,

Thank you for reporting this problem. We have managed to fix it and I am attaching a trial hotfix here.

Greetings,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tparks69
Top achievements
Rank 1
answered on 04 Apr 2008, 05:31 PM
Hmm... that didn't seem to do the trick.  Maybe I apply the Hotfix incorrectly?  I just took the folders in the .zip and copied them over the existing Prometheus folders.
0
Simon
Telerik team
answered on 07 Apr 2008, 03:44 PM
Hello tparks69,

Please review the following KB article (scroll to the "Prometheus" section) for more specific instructions on how to install the new version of the assembly successfully.

If you still have problems after trying the tips in the article, please let me know.

Best wishes,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
tparks69
Top achievements
Rank 1
answered on 14 Apr 2008, 04:19 PM
OK, the hot fix prevents the .js error I reported before.  But, the GroupSettings-Height does not appear to be working 100%. 

For example:  I have a list of 100 items I load into the menu.  When I click to drop it down it goes beyond the bottom of the page.  So I apply GroupSettings-Height = "200px" to the menu.  The first time I go to click the menu open, it still goes beyond the bottom of the page.  It should have the little arrows that allow me to scroll within the menu, but they are not there.

Interestingly, after I select a menu item and the page posts back, and I drop down the menu again, the little arrows appear.
0
Simon
Telerik team
answered on 17 Apr 2008, 03:07 PM
Hi tparks69,

I tried reproducing the problem you described with v2007.3.1517, but to no avail.

I have attached the test page for your reference. Please examine it and if you manage to reproduce the problem, please send it back to me. I will investigate it and eventually provide a solution or a workaround.

Greetings,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Menu
Asked by
tparks69
Top achievements
Rank 1
Answers by
Peter
Telerik team
T. Tsonev
Telerik team
tparks69
Top achievements
Rank 1
Simon
Telerik team
Share this question
or