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

XamlParseException telerik:RadRadioButton

10 Answers 156 Views
Telerik Minifier
This is a migrated thread and some comments may be shown as answers.
uku
Top achievements
Rank 1
uku asked on 25 Jun 2010, 07:38 AM
Hello,

I'm using the following telerik components
in a minified version
- Telerik.WIndows.Controls.dll
- Telerik.Windows.Controls.Input.dll
- Telerik.Windows.Controls.Navigation.dll
- Telerik.Windows.Data.dll
and  the original version of Telerik.Windows.Controls.GridViews because of the GridViewSelectColumn problem (see post http://www.telerik.com/community/forums/silverlight/assembly-minifier/gridviewselectcolumn-does-not-exist.aspx)

On a page where I just use the GridView and the RadButton I'm receiving the XamlParseException "Failed to create a 'System.Type' from the text 'telerik:RadRadioButton'"

I don't use any RadRadioButton in the whole application so my question is, if there is a dependency so that it's mandatory to include the RadioButton in the minified assembly?
By the way, are there any dependencies which has to be considered when creating the minified assembly. If this would be the case it would be helpful to receive a message like "if you select componenent x you also have to select component z"

Thanks for your support

Uwe

10 Answers, 1 is accepted

Sort by
0
Accepted
Miro Miroslavov
Telerik team
answered on 25 Jun 2010, 01:46 PM
Hello uku,

You have errors, because the minified versions of Data, Controls and Input are not minified against RadGridView - which means that some classes and resources are removed that are needed for the Grid.
But we've just published new version that should fix the problem with the GridViewColumns.
So you can try to minify all the assemblies including the RadGridView.

We are waiting to hear more feedback from you.
Thank you.

Greetings,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Grimmer
Top achievements
Rank 1
answered on 02 Sep 2010, 11:53 AM
Hi there,
I'm also experienceing the same issue (cannot create a system.type from text telerik:RadRadioButton) mentioned in the OP.

Is there a resolution available for this problem yet please?
0
Miro Miroslavov
Telerik team
answered on 02 Sep 2010, 12:01 PM
Hello Richard Grimmer,

Can you give us some more details. Can you send us the MinifyInfo.txt and give some more details on how you use the minified assemblies?
Thank you.

Regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Grimmer
Top achievements
Rank 1
answered on 02 Sep 2010, 12:04 PM
Of course.

Using in pretty much the way that the OP described. I've also gone as far as re-minifying with the radio button included, but no dice.

The one (portential) kink is that I'm using Prism / MVVM, though having said that, this is the second project I've used the minifier on and the first went swimmingly with no problems.

MinifyInfo:
Uploaded Assemblies:
* Telerik.Windows.Controls.Data
* Telerik.Windows.Controls
* Telerik.Windows.Controls.GridView
* Telerik.Windows.Controls.Input
* Telerik.Windows.Controls.Navigation
* Telerik.Windows.Controls.Scheduler
* Telerik.Windows.Data
----------------------------
Selected Controls:
* Telerik.Windows.Controls.RadDockPanel
* Telerik.Windows.Controls.RadExpander
* Telerik.Windows.Controls.RadHtmlPlaceholder
* Telerik.Windows.Controls.RadRadioButton
* Telerik.Windows.Controls.RadGridView
* Telerik.Windows.Controls.RadCalendar
* Telerik.Windows.Controls.RadComboBox
* Telerik.Windows.Controls.RadContextMenu
* Telerik.Windows.Controls.RadMenu
* Telerik.Windows.Controls.RadTreeView
* Telerik.Windows.Controls.RadScheduler
* Telerik.Windows.Controls.GridViewCheckBoxColumn
* Telerik.Windows.Controls.GridViewComboBoxColumn
* Telerik.Windows.Controls.GridViewDynamicHyperlinkColumn
* Telerik.Windows.Controls.GridViewHyperlinkColumn
* Telerik.Windows.Controls.GridViewImageColumn
* Telerik.Windows.Controls.GridViewMaskedTextBoxColumn
* Telerik.Windows.Controls.GridViewSelectColumn
* Telerik.Windows.Controls.GridViewToggleRowDetailsColumn
* Telerik.Windows.Controls.ExportExtensions
* Telerik.Windows.Controls.PrintExtensions
* Telerik.Windows.Controls.GridView.CheckBoxEditor
* Telerik.Windows.Controls.GridView.GridViewFilteringDropDown
* Telerik.Windows.Controls.Resource
0
Miro Miroslavov
Telerik team
answered on 02 Sep 2010, 12:23 PM
Hi Richard Grimmer,

By re-minifying do you mean that you uploaded the already minified assemblies, or started with the original ones? The first will not work, since the Radio button is excluded from the assemblies and after that even you select it in the UI - it can't add it back. So you should minify the original assemblies.

The Prism shouldn't be a problem - it could be a problem for the up-coming "Xap Minifier" - which will have to deal with the dynamic loading of modules. :)

Please let me know if minifying the original assemblies fixes the problem.

Sincerely yours,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Grimmer
Top achievements
Rank 1
answered on 02 Sep 2010, 12:25 PM
Lol - I'm not QUITE that gormless...

I did indeed use the un-minified assemblies when including the radio button - as you can see from the minifyinfo, the radio button is included (which it obviously wouldn't be if I'd used minified assemblies).

0
Miro Miroslavov
Telerik team
answered on 02 Sep 2010, 12:43 PM
Hello Richard Grimmer,

Sorry for that, i just don't get the exact meaning of re-minifying.
However I've just tried minifying exactly the same thing and created simple example project showing few RadioButtons. (the reflector also says that the RadRadioButton is present in the Controls.dll)
Can you check the attached example and the minified assemblies as well.
It is also possible to run into VS issue - is it possible to cache your first version of the assemblies without RadioButton, and now it can't realize that the ref. assemblies are different, thus using the old ones from it's cache (it often do this). You can try Cleaning a couple of times, deleting bin/obj folders and it this doesn't help, you can paste the assemblies in another folder and reference from there.
Please let me know if this solve the problem.

Kind regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Grimmer
Top achievements
Rank 1
answered on 02 Sep 2010, 02:09 PM
Hi there....

OK - good news, it seems to (provisionally) be working, but with a couple of points however...

The sample project that you sent ran up correctly, but when viewing mainpage.xaml, the radio buttons are shown as standard buttons (in the designer also)..not a problem just a little odd.

So in the end I used the assemblies from your project and referenced them instead of my versions - all seems to be ok, but I'd like to know what I'd missed - can you send me your minifyinfo file so that I can see how it was done (and so that we can repeat the process) - I'm assuming that I'd missed a couple of important things, since all of your assemblies are slightly larger than mine (but have still taken the "telerik payload" in our app from 4.19 down to 2.97MB)

Thanks for your help chap.



0
Miro Miroslavov
Telerik team
answered on 03 Sep 2010, 07:08 AM
Hello Richard Grimmer,

You can find the MinifyInfo file in the attached archive. Actually I've minified the latest build of the selected controls. (you may notice the version is much higher than yours assemblies). it is possible that the assemblies are different, thus the minified assemblies are larger. If you want, you can try with the latest official binaries form the Service Pack 1 and see if it works the same way.

Kind regards,
Miro Miroslavov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Richard Grimmer
Top achievements
Rank 1
answered on 03 Sep 2010, 08:14 AM
That's brilliant - thanks very much for your time.
Tags
Telerik Minifier
Asked by
uku
Top achievements
Rank 1
Answers by
Miro Miroslavov
Telerik team
Richard Grimmer
Top achievements
Rank 1
Share this question
or