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

Multicolumn and typo in Telerik Javascript

5 Answers 42 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 27 Mar 2012, 02:31 PM
I added a GroupSettings-Repeatcolumns="3" to a menu item, and I get an error in a ScriptResource in one of the telerik functions

j(A).chidlren(".rmGroup").append(j(B).children(".rmGroup").children(".rmItem").eq(0));


You can see in bold the typo line! Is there a way I can edit this as a workaround?
Regards,

AG

5 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 27 Mar 2012, 03:29 PM
Hi Andrew,

Thank you for pointing that out. We are already aware of this issue and it is already fixed. It will be, however, available for download with the next internal build (that is next week). As a temporary workaround you can use the following script as well:
Telerik.Web.UI.RadMenuItem.prototype._recalculateColumns = function ()
{
 
var $ = $telerik.$;
 
if(this.get_groupSettings().get_repeatDirection() == Telerik.Web.UI.MenuRepeatDirection.Horizontal)
return;
 
var childListElement = this.get_childListElement();
var columnElements = $(childListElement).children(".rmGroupColumn");
 
for (var columnIndex = columnElements.length - 1; columnIndex > 0; columnIndex--) {
var column = columnElements[columnIndex];
var prevColumn = columnElements[columnIndex - 1];
 
if (this._getColumnItemCount(prevColumn) == this._getColumnItemCount(column))
return;
 
$(prevColumn)
.children(".rmGroup")
.append($(column)
.children(".rmGroup")
.children(".rmItem")
.eq(0));
}
}


Regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andrew
Top achievements
Rank 1
answered on 28 Mar 2012, 08:34 AM
Thanks for that, but where would I put that script?
0
Kate
Telerik team
answered on 28 Mar 2012, 09:23 AM
Hello Andrew,

The most appropriate place for the script would be on your page right after the scriptmanager. 

All the best,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andrew
Top achievements
Rank 1
answered on 28 Mar 2012, 09:32 AM
Hmm, I've tried putting it there, but the erroring function still takes precedence, and fires...
0
Kate
Telerik team
answered on 03 Apr 2012, 12:51 PM
Hi Andrew,

The fix is already available for you to download with the latest internal build of our controls. Please give it a try and let me know if you still encounter the issue.

Kind regards,
Kate
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Menu
Asked by
Andrew
Top achievements
Rank 1
Answers by
Kate
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or