Is there a more elegant method of changing the web panel header text other than enclosing that text property within a DIV tag and then changing it through javascript?
I can get a handle to the header object but I cannot see any methods to allow me to do anything other that set and get visible.
Thanks for your response Ivan.
One of the developers here found this to work also:
panel.getHeader()._element.innerText='CFR Add';
Thanks
Hello,
You can use the property panel._headerElement.textContent and change text of header on client side with JS code. Please take a look at the sample below: <script type="text/javascript"> function Button1_onclick() { var panel = igpnl_getPanelById("<%= WebPanel1.ClientID %>"); panel._headerElement.textContent = "Changed"; //var header = panell.getHaeder(); debugger; } </script>
Hope this helps.