Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
set display = none on server side
posted

Hi,

how can I set style property on TBarButton object. My server code is:

UltraWebToolbar tb = (UltraWebToolbar)((ButtonMenue)Page.Master).FindControl("DynButtonBar");

for (int i = 0; i < tb.Items.Count; i++) {

if (tb.ItemsIdea.GetType().Equals(typeof(Infragistics.WebUI.UltraWebToolbar.TBarButton)))((TBarButton)tb.ItemsIdea)....??? <---

}

  • 10880
    posted

    You can set the TBarButton.DefaultStyle.CustomRules to "display:none;" or instead of looping through all the items, you can probably just set the UltraWebToolbar.ButtonStyle.CustomRules to "display:none;".  The CustomRules property off our style objects can be used to apply css without having to assign set the CssClass property to a class you defined.