DataWeight is reversed?

3 posts, 1 answers
  1. Jerry
    Jerry avatar
    4 posts
    Member since:
    Apr 2012

    Posted 24 May 2012 Link to this post

    I'm able to successfully render the tagcloud, but for some reason the font weight is reversed? I.e. heavier weighted items have a smaller font than lower weighted items. 

    <telerik:RadTagCloud ID="RadTagCloud1" runat="server"  renderitemweight="true" MaxNumberOfItems="40" TakeTopWeightedItems="true"
        DataMember="DefaultView" DataSourceID="SqlDataSource3" datatextfield="display_term" dataweightfield="document_count" maxfontfize="700%" MinFontSize="300%"
        WordsToExclude="a,about,after,all,also,an,and,are,not,as,at,be,been,but,by,can,could,did,do,does,problem,each,for,from,get,had,has,have,he,her,him,his,how,i,if,in,into,is,it,its,just,me,more,most,my,not,of,on,or,our,said,see,shall,she,should,so,some,than,that,the,their,there,they,this,those,to,up,used,was,we,were,what,when,which,while,who,why,will,with,would,you,your" ForeColor="White">
    </telerik:RadTagCloud>
  2. Answer
    Slav
    Admin
    Slav avatar
    1356 posts

    Posted 29 May 2012 Link to this post

    Hello Jerry,

    There appears to be a typo in the name of the property MaxFontSize. As a result a default value of 20px is assigned to this property, which is less than the value of the MinFontSize property, and the size is reversed. If you configure the RadTagCloud as shown below, its items will be displayed as expected:
    <telerik:RadTagCloud ID="RadTagCloud1" runat="server" RenderItemWeight="true" MaxNumberOfItems="40"
        TakeTopWeightedItems="true" DataTextField="display_term" DataWeightField="document_count"
        MaxFontSize="700%" MinFontSize="300%" WordsToExclude="a,about,after,all,also,an,and,are,not,as,at,be,been,but,by,can,could,did,do,does,problem,each,for,from,get,had,has,have,he,her,him,his,how,i,if,in,into,is,it,its,just,me,more,most,my,not,of,on,or,our,said,see,shall,she,should,so,some,than,that,the,their,there,they,this,those,to,up,used,was,we,were,what,when,which,while,who,why,will,with,would,you,your">
    </telerik:RadTagCloud>


    All the best,
    Slav
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jerry
    Jerry avatar
    4 posts
    Member since:
    Apr 2012

    Posted 29 May 2012 Link to this post

    Slav - Thank you, that fixed it! 
Back to Top