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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Toolbar not able to disable dropdown item

Thread ID:

Created:

Updated:

Platform:

Replies:

76829 Sep 25,2008 11:26 AM UTC Sep 26,2008 03:13 PM UTC ASP.NET Web Forms (Classic) 2
loading
Tags: Tools
Mr. Sascha Wald
Asked On September 25, 2008 11:26 AM UTC

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".




Rekha P [Syncfusion]
Replied On 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



Mr. Sascha Wald
Replied On 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





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;