Hi,
When i use GetButtonByCommand method of toolbar it shows an alert box that says: "Cannot find a button with such command name!"
I know there is no buttons with such name, but my buttons are being loaded dynamically.
So i should use
if (GetButtonByCommand("cmdSome"))
toolbar.DisableButton(GetButtonByCommand("cmdSome"));
So the GetButtonByCommand should return null if it can not find that button. And not alert anything i hope.
Kind Regards,
Caglar Ozkul
When i use GetButtonByCommand method of toolbar it shows an alert box that says: "Cannot find a button with such command name!"
I know there is no buttons with such name, but my buttons are being loaded dynamically.
So i should use
if (GetButtonByCommand("cmdSome"))
toolbar.DisableButton(GetButtonByCommand("cmdSome"));
So the GetButtonByCommand should return null if it can not find that button. And not alert anything i hope.
Kind Regards,
Caglar Ozkul