This is a migrated thread and some comments may be shown as answers.

RadGrid databinding question (+theme)

3 Answers 210 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Serrin
Top achievements
Rank 1
Serrin asked on 19 Nov 2008, 06:20 PM
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:

   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

3 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Deshev
Telerik team
answered on 20 Nov 2008, 04:55 PM
Hi Serrin,

Straight to your questions:

1) Themes are most likely to be supported for Q1 2009. There is a small chance that we publish another theme for our beta, for now tentatively targeted at mid-December, but I would not count on that.

2) This is a known bug. You can work around it by binding the grid to an empty collection before displaying it, and then rebinding to your actual data source.

Kind regards,
Hristo Deshev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Hannes
Top achievements
Rank 2
answered on 07 Jan 2009, 04:04 PM
On question 1:

When is the Q1 release planned? I'm still desparately looking for the famous 'mid-december' release, but to no avail...
I'm looking for both 'theming' and a reliable SL grid component for an upcoming project.
0
Serrin
Top achievements
Rank 1
answered on 07 Jan 2009, 07:32 PM
Hey Hannes,

I know I saw somewhere that the Q1 2009 release is planned for February, as for specifics that is all I can recall seeing on the forums here. :)

As far as the mid-december release, there was a SP release on 12/18 that included a much more solid RadGrid for Silverlight which I'm now using and that has addressed many of the problems the previous beta had.  You can see some of the info on the SP release page.  And in looking for that I found (here) that it does say February for Q1 2009. :)
Tags
GridView
Asked by
Serrin
Top achievements
Rank 1
Answers by
Hristo Deshev
Telerik team
Hannes
Top achievements
Rank 2
Serrin
Top achievements
Rank 1
Share this question
or