[CLOSED] Collapse panel throws error

  1. #1

    [CLOSED] Collapse panel throws error

    Hi there,

    I'm trying to collapse a panel on the click of button via a listener/handler:

     buttons.Add(Html.X().Button()
                                .Listeners(listeners =>
                                    {
                                       // listeners.Click.Suce
                                        listeners.Click.Handler = "#{store1}.reload();#{pnlSearchForm}.collapse(true)"; //"
                                    })
                                .Text("Search"));
    but I get the following error:

    collapseDir.substr is not a function
    is this a known bug?
    Last edited by Daniil; Jun 08, 2012 at 2:21 PM. Reason: [CLOSED]
  2. #2
    Hi,

    If you're passing a parameter with the .collapse() function, the first parameter should be a string, which is the collapse direction.

    http://docs.sencha.com/ext-js/4-0/#!...ethod-collapse

    The second optional parameter is a boolean, to animate or not.

    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 6
    Last Post: Jul 02, 2012, 1:17 PM
  2. [CLOSED] Control saved in HttpRuntime cache throws a js error
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 06, 2012, 1:52 AM
  3. [CLOSED] Grid column hyperlink throws a JS error when clicked
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 23, 2012, 1:52 PM
  4. [CLOSED] UpdateSelection() throws javascript error
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 07, 2011, 11:14 AM
  5. [CLOSED] [1.0] Panel collapse from javascript giving error
    By vedagopal2004 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 08, 2010, 6:23 AM

Posting Permissions