Hello folks!
As promised... So Grid is now working and looks great, so my first two questions are:
1) When will themes be supported? Just a curiosity, as I have Caramel theme on everything in my current sample app and the Grid didn't pick up on it. No rush, as it's in CTP, and while I am assuming that it will be available on or by Q1, I had to ask.
2) Onto the main question... I am loading the Grid with data from a WCF webservice, so there is a tiny delay between the loading and the response from the webservice. So... if I run the Grid being populated with the web service, I get a crash on VS. Details are:
With the pointer at the "throw Error.invalidOperation" line at the bottom.
But if I run it with default data (a single Person from the sample Hristo posted in General) first as well as the web service, by the time everything displays the web service has returned data and the grid populates. Any clue if there is a way to work around loading a dummy set, or is that something that we just have to work around for the time being?
Thanks again, these Silverlight controls are working great so far!
-Serrin
As promised... So Grid is now working and looks great, so my first two questions are:
1) When will themes be supported? Just a curiosity, as I have Caramel theme on everything in my current sample app and the Grid didn't pick up on it. No rush, as it's in CTP, and while I am assuming that it will be available on or by Q1, I had to ask.
2) Onto the main question... I am loading the Grid with data from a WCF webservice, so there is a tiny delay between the loading and the response from the webservice. So... if I run the Grid being populated with the web service, I get a crash on VS. Details are:
function Sys$UI$Silverlight$Control$_pluginError(slSender, e) { |
if (!this.get_element()) return; |
var args = new Sys.UI.Silverlight.ErrorEventArgs(e); |
this.onPluginError(args); |
this._doCheck = null; |
if (!args.get_cancel()) { |
if (!this._raiseEvent("pluginError", args)) { |
var eerrorType = e.errorType, |
eerrorCode = e.errorCode, |
eerrorMessage = e.errorMessage, |
id = this.get_id(), |
lineNumber = "", charPosition = "", source = "", methodName = "", |
errorFormat = Sys.UI.Silverlight.ControlRes.otherError; |
if (errorType === "ParserError") { |
errorFormat = Sys.UI.Silverlight.ControlRes.parserError; |
lineNumber = e.lineNumber; |
charPosition = e.charPosition; |
source = e.xamlFile; |
} |
else if (((errorType === "ImageError") || (errorType === "MediaError")) && |
(errorMessage === "AG_E_NOT_FOUND")) { |
errorFormat = Sys.UI.Silverlight.ControlRes.mediaError_NotFound; |
errorMessage = slSender.Source; |
} |
else if (errorType === "RuntimeError") { |
if (e.lineNumber) { |
errorFormat = Sys.UI.Silverlight.ControlRes.runtimeErrorWithPosition; |
lineNumber = e.lineNumber; |
charPosition = e.charPosition; |
methodName = e.methodName; |
} |
else { |
errorFormat = Sys.UI.Silverlight.ControlRes.runtimeErrorWithoutPosition; |
methodName = e.methodName; |
} |
} |
throw Error.invalidOperation(String.format(errorFormat, |
id, |
errorType, |
errorCode, |
errorMessage, |
lineNumber, |
charPosition, |
methodName, |
source)); |
} |
} |
With the pointer at the "throw Error.invalidOperation" line at the bottom.
But if I run it with default data (a single Person from the sample Hristo posted in General) first as well as the web service, by the time everything displays the web service has returned data and the grid populates. Any clue if there is a way to work around loading a dummy set, or is that something that we just have to work around for the time being?
Thanks again, these Silverlight controls are working great so far!
-Serrin