We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Toolbar not able to disable dropdown item

Hi there,
have newest version 6.3.1.8, Toolbar with some items. One item is a combobox.

**************************

Text="m_IconAddReviewComment" ToolTip="Add reviewcomment" />
Text="m_IconSetStatusOK" />
Text="m_IconSetSubStatusOK" />
Text="m_IconSetAllStatusOK" />
ToolTip="Quickfilter" />







***********************************

I want to disable the items (item.disabled = true). Works for all items except the combobox (ID="m_QuickFilter"). the disabled-property is simply ignored.
Even set toolbar-enabled to false: same result, the combobox stays selectable.
I set visibility of this item to false: the item dissapears. But that is not what my customer wants.
How can I disable toolbar-items with a template in it?

regards

sascha

btw: Not so funny that I have to set the item-property "disabled" whereas the toolbar itself has the property "enabled".




2 Replies

RP Rekha P Syncfusion Team September 26, 2008 10:12 AM UTC

Hi Sascha,

Thank you for using Syncfusion Products.

The ToolBarItems can be disabled by using

{
m_ReviewToolBar.Items[2].Disabled = true;
}

Regarding the disable of toolbar-items placed inside the template, it can't be disabled using above code because the controls inside template may have different properties and methods. So please refer the below online sample which illustrates getting the properties of controls placed inside the template and disabling of dropdown control and the sample files can be downloaded from 'Download Source'.
http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm'>http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm">http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm

Please let me know if you have any concerns.

Thanks,
Rekha




MS Mr. Sascha Wald September 26, 2008 03:13 PM UTC

Thank you. Works fine this way.

regards
sascha


btw:
something went wrong with the link; here the workong one:
http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm

>Hi Sascha,

Thank you for using Syncfusion Products.

The ToolBarItems can be disabled by using

{
m_ReviewToolBar.Items[2].Disabled = true;
}

Regarding the disable of toolbar-items placed inside the template, it can't be disabled using above code because the controls inside template may have different properties and methods. So please refer the below online sample which illustrates getting the properties of controls placed inside the template and disabling of dropdown control and the sample files can be downloaded from 'Download Source'.
http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm'>http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm">http://websamples.syncfusion.com/samples/Tools.Web/6.3.1.8/F76829-Toolbar/main.htm

Please let me know if you have any concerns.

Thanks,
Rekha





Loader.
Live Chat Icon For mobile
Up arrow icon