I am having issues with my prepare function. I am trying to select the Delete button to be able to disable/enable it. This is the code to select the first item (which would be the dropdown group). I am trying to select the first item within that group.
var prepareRecruiter = function (grid, toolbar, rowIndex, record) {
var dropdown = toolbar.items.get(0);
dropdown.setDisabled(true);
};
I tried multiple variations along the lines of toolbar.items.get(0).get(0); and toolbar.items.items.get(0); without success.
How do I select the delete button so i can disable it?

I have the following code for my gridcommand:
<ext:CommandColumn runat="server" Width="35" Sortable="false" fixed="true" meta:resourcekey="CommandColumnResource2" ID="ctl2108">
<Commands>
<ext:GridCommand Icon="ApplicationForm">
<Menu EnableScrolling="false">
<Items>
<ext:MenuCommand Text="Delete" Icon="ApplicationFormDelete" CommandName="Delete" meta:resourcekey="DeleteCommandResource1" />
<ext:MenuCommand Text="Disable" Icon="ApplicationFormDisable" CommandName="Disable" />
<ext:MenuCommand Text="Enable" Icon="ApplicationFormEnable" CommandName="Enable" />
</Items>
</Menu>
</ext:GridCommand>
</Commands>
<PrepareToolbar Fn="prepareRecruiter" />
<Listeners>
<Command Fn="REDcommand" />
</Listeners>
</ext:CommandColumn>
Thank you!