/// <summary> /// Set the accordion options /// </summary> protected override void PreCreateScripts() { ClientOptions.Add("header", "> h3"); if (this.SelectedIndex == -1) { ClientOptions.Add("active", false); } else { ClientOptions.Add("active", this.SelectedIndex); } if (this.Animated) { ClientOptions.Add("animated", "slide"); } else { ClientOptions.Add("animated", false); } ClientOptions.AddRaw("change", @"function(event, ui) { $(':focusable:first', ui.newContent).focus(); }"); }