Just started playing with your suite yesterday and I am very impressed, keep up the good work.
I noticed that while enabling or disabling a button on the client the button's style was not being updated. Of course the exception being if the script ran before the page load, this makes sense since it was before the decorator starts doing its magic.
I created the following helper functions that I can call to disable/enable a button.
This wasn't my first choice, due to hard coding class names I have no control over but it works.
I am having issues finding the decorator element that I pass as the second param. I have resorted to hardcoding the client IDs (eww).
Any suggestions, am I missing something?
Keep up the good work!
Marc
I noticed that while enabling or disabling a button on the client the button's style was not being updated. Of course the exception being if the script ran before the page load, this makes sense since it was before the decorator starts doing its magic.
I created the following helper functions that I can call to disable/enable a button.
This wasn't my first choice, due to hard coding class names I have no control over but it works.
//disables a button that has been decorated with the RadFormDecorator |
function disableButton(button, decorator) |
{ |
var btnDisabledClass = 'radfdSkinnedFormButton radfd_<%=ConfigurationSettings.AppSettings["Telerik.Skin"]%> radfdInputDisabled'; |
button.disabled=true; |
decorator.className = btnDisabledClass; |
} |
//enables a button that has been decorated with the RadFormDecorator |
function enableButton(button, decorator) |
{ |
var btnEnabledClass = 'radfdSkinnedFormButton radfd_<%=ConfigurationSettings.AppSettings["Telerik.Skin"]%>'; |
button.disabled=false; |
decorator.className = btnEnabledClass; |
} |
I am having issues finding the decorator element that I pass as the second param. I have resorted to hardcoding the client IDs (eww).
var decRemoveMembersFromRole = document.getElementById("Skinnedctl00_cphPage_ctl00_btnRemoveMembersFromRole"); |
Any suggestions, am I missing something?
Keep up the good work!
Marc