Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > js EnableButton and XHTML
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered js EnableButton and XHTML

Feed from this thread
  • Jiří avatar

    Posted on Aug 11, 2009 (permalink)

    When I change
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    to
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    I get difficulties with your javascript function RadToolbar.EnableButton(item.commandName)

    When I look at RadControls\Toolbar\Scripts\1_6_3\RadButton.js file I can find this js function:
    RadToolbarButton.prototype.EnableButton=function(){ 
    this.Enabled=true
    this.ControlElement.setAttribute("disabled",false); 
    this.ToggleState(); 
    };  
    It seems that setAttribute("disabled", false) doesn't work at all in this doctype case.
    When I call
    item.ControlElement.disabled = false
    after
    RadToolbar.EnableButton(item.commandName)

    it behaves correctly.


Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Toolbar > js EnableButton and XHTML