Oct 29, 2009, 5:13 PM
[8.1] Splitbutton in gridpanel
Hi
I have tried replacing a normal button with a splitbutton in my gridpanel
eg
ext.SplitButton _btnSaveSettings = new ext.SplitButton();
_btnSaveSettings.ID = "btnSaveSettings";
_btnSaveSettings.Text = "Gem indstillinger";
_btnSaveSettings.Icon = ext.Icon.Wrench;
_btnSaveSettings.Listeners.Click.Handler =
Scripts.DataGrid.GetColumnSettings +
Scripts.DataGrid.GetSortState +
"return true;";
-
-
-
-
-
gridPanel.Buttons.Add(_btnSaveSettings);
But the splitbutton behaves a bit differently than splitbuttons I have other placesSeparator is missing
When I click the button the ajaxevent fires but also the menu is unfolded
When I try to unfold the menu the ajaxevent on the splitbutton is triggered
Something is a bit awkward here
I have used splitbuttons in eg toolbar and it's working ok as in your samples
Any ideas?
Thanks in advance