Multicolumn and typo in Telerik Javascript

6 posts, 0 answers
  1. Andrew
    Andrew avatar
    39 posts
    Member since:
    Feb 2011

    Posted 27 Mar 2012 Link to this post

    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
  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 27 Mar 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrew
    Andrew avatar
    39 posts
    Member since:
    Feb 2011

    Posted 28 Mar 2012 Link to this post

    Thanks for that, but where would I put that script?
  5. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 28 Mar 2012 Link to this post

    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.
  6. Andrew
    Andrew avatar
    39 posts
    Member since:
    Feb 2011

    Posted 28 Mar 2012 Link to this post

    Hmm, I've tried putting it there, but the erroring function still takes precedence, and fires...
  7. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 03 Apr 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017