or
set_enabled: function (c) { if (this._element) { return; } if (c) { b(this._element).attr("disabled", "disabled"); } else { b(this._element).removeAttr("disabled"); } }
if this._element is set, return is called. I think it should be opossite. Or am I doing something wrong?
I was able to disable the button with hard-code hacks in js. But disabled image is not used.
Another problem is that when I disable button even from server-side, button text looks like disabled and
button frame is not shown. But I am still able to click the button and I am redirected to '#'.
BTW:
How can I easily find reference to button item in js?
Thank you very much.
Kind regards
Andrej
var usaOrders = from od in OrderDetailswhere od.Order.Customer.Country == "USA"select new { Company = od.Order.Customer.CompanyName, OrderDate = od.Order.OrderDate, OrderID = od.OrderID, Product = od.Product.ProductName, UnitPrice = od.UnitPrice, Quantity = od.Quantity, Discount = od.Discount, Extended = od.UnitPrice * od.Quantity * ( 1M - (decimal)od.Discount )};Dim usaOrders = _ Where od.Order.Customer.Country = "USA"'======================================================='Service provided by Telerik (www.telerik.com)'Conversion powered by NRefactory.'Twitter: @telerik, @toddanglin'Facebook: facebook.com/telerik'=======================================================Dim usaOrders = from od in OrderDetails _ Where od.Order.Customer.Country = "USA" _ select _ Company = od.Order.Customer.CompanyName, _ OrderDate = od.Order.OrderDate, _ OrderID = od.OrderID, _ Product = od.Product.ProductName, _ UnitPrice = od.UnitPrice, _ Quantity = od.Quantity, _ Discount = od.Discount, _ Extended = od.UnitPrice * od.Quantity * ( 1 - od.Discount )