Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
101 views
When I change my skin from Office2007 to Sunset in my c# code-behind, it causes my skin not to render.
Here's the code that caused the error...

    protected void MPL_Proposals_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        if (MPL_Proposals.SelectedItem != null) 
        { 
            var propId = Convert.ToInt64(MPL_Proposals.SelectedValue); 
            var filter = string.Empty; 
            PopulateMpl(propId, filter); 
            RadGrid_MPL.Rebind(); 
 
            RadGrid_MPL.Skin = myProposalId != propId ? "Sunset" : "Office2007"; 
        } 
    } 
 

My grid is "RadGrid_MPL". As long as I don't change its default skin it looks great. But if I try to change it, it removes its style.

Thoughts?
Dimo
Telerik team
 answered on 16 Oct 2009
1 answer
147 views
My company bought the RadControls for asp.net and the first time I have tried to use any of the controls after a uneventful and successful install I get this error:
Error 1 Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. Z:\ClosingApp\Default.aspx 14 
What is causing this error?
T. Tsonev
Telerik team
 answered on 16 Oct 2009
1 answer
145 views
We are using Telerik Radcontrols for ASP.NET AJAX in a custom CMS-type application that will be used to host hundreds/thousands of client sites going forward.  The application uses 4 or 5 Telerik controls and for each client we usually start with a standard Telerik control skin and then make some (potentially a LOT of) changes to it for that client.  So far, we have been making a copy of the original skin, giving it a new name and making any changes directly to that copy but I am concerned that as time goes on, Telerik will release changes to the controls that also require changes to the standard skins (like you did in the 2009-Q2 release with radpanelbar) that will require me to go make tweaks to all existing customized client telerik skins in order to deploy a new DLL.  This will get very scary as the number of clients scale up so I am wondering if you would recommend that instead of me making changes directly to a base Telerik skin we should instead use a base skin and then create a separate "custom" CSS file that over-rides any needed changes from the base skin using inheritance?  The thinking is that then if Telerik comes out with new releases that have new versions of skins or modified skins we just plug those in place of the old ones we are using and the custom "over-ride" CSS file for each client continues to do it's thing (in theory).  Is there anything inherently better about the original approach or problems with the proposed new approach that I am not seeing?

Thanks in advance for any help you can offer.
Dimo
Telerik team
 answered on 16 Oct 2009
1 answer
115 views
Hi,

My situation is a few usercontrols all containing a single radtoolbar.
All controls are wrapped in a XmlHttpPanel.
I used this property EnableClientScriptEvaluation="true" so it registers the javascript when reloaded.
That works great.

However when I hover over a different toolbar then the one I have updated,
the hovered image gets placed next to the button.

the source looks like this afterwards.
<class=rtbWrap  href="#">  
<SPAN class=rtbOut>  
    <SPAN class=rtbMid>  
        <SPAN class=rtbIn>  
            <IMG class=rtbIcon src="../../interface/images/icons/text.gif">  
        <SPAN class=rtbText></SPAN> 
        </SPAN> 
    </SPAN> 
</SPAN> 
<IMG class=rtbIcon src="../../interface/images/icons/text.gif">  
</A> 
instead of this (how it looks on load)
<class=rtbWrap title="Click to maintain the products scripts" href="#">  
<SPAN class=rtbOut>  
    <SPAN class=rtbMid>  
        <SPAN class=rtbIn>  
            <IMG class=rtbIcon alt="Click to maintain the products scripts" src="../../interface/images/icons/text.gif">  
        <SPAN class=rtbText>Scripts</SPAN> 
        </SPAN> 
    </SPAN> 
</SPAN> 
</A> 
Notice the extra image within the link element.
This only happens after loading a different control with the XmlHttpPanel.

kind regards,
Wim
Peter
Telerik team
 answered on 16 Oct 2009
1 answer
139 views
Hello Guys,

Thanks to another thread I have been able to hide the horizontal scroolbar (using overflow-x:hidden !important; ) , but so far I haven't been able to hide the vertical one, would you please help me

thanks
T. Tsonev
Telerik team
 answered on 16 Oct 2009
1 answer
115 views
Hi,

I'm working on a bit of a mashup of functionality and could use some guidance.  Our application has the need to drag from a list of items (call it A) to another list of items (call it B).  This issue gets complex however because the items need to appear different in list A than they do in B.  For example A contains text items and B contains image representation of the text dragged in A.  It gets further complicated because list B needs to render not in a set of rows, but rather side by side wrapping automatically to the next line (ex. Grid ListView/DataList View).  The final complication is that I need to be able to drag/drop re-order the items in list B.

So, right or wrong, I've been able to cover a lot of the functionality by combining the ability to drag from a tree to a grid with the ability to render grid items as shown in the 'ListView/DataList View' example on the site (I suppose I could also have done a grid to grid drag and drop).  Now I'm trying to figure out how I can re-order and even delete items from the grid in a moderately elegant way.  What it really boils down to is this; is there a way to render grid data as shown in the 'ListVIew/DataList View' example, but still enable drag drop of items in that list.  When I try enabling the client side settings for row drag drop I'm not able to drag my individual items.  It tries to treat the whole grid as one row (which I suppose it may be).

Thanks for reading to the end if you made it.  Thanks further if you have any ideas.

Attached is a screenshot of what I have so far.

-Steve
Sebastian
Telerik team
 answered on 16 Oct 2009
1 answer
122 views
Hi,
I'm just starting to look at the Visual Style Builder to create new skins - my old skins are broken. But I do not see the Dock control listed in the supported set of controls. Why is this?
Clayton
Paul
Telerik team
 answered on 16 Oct 2009
1 answer
112 views
Hello Telerik!

Some nodes can be checked on the server and there are checked also in the generated control (leaf nodes). Some nodes can be checked on the server programatically, also data for the control contains JSON array: checked:1, but generated treeview does not contain checked nodes. In fact only leaf nodes can be checked on server side when tri-state checkboxes are enabled.

        void treeView_NodeDataBound(object sender, RadTreeNodeEventArgs e)  
        {  
            int i;  
            if (this.keys != null)  
            {  
                for (i = 0; i < this.keys.Length; i++)  
                {  
                    if (keys[i] == e.Node.Value)  
                        break;  
                }  
                if (i < this.keys.Length)  
                {  
 
                    if (this.treeView.CheckBoxes)  
                        e.Node.Checked = true;  
                    else  
                        e.Node.Selected = true;  
                }  
            }  
        } 
<RadTreeView DataTextField="n_code_name" DataFieldID="n_id" DataFieldParentID="att_50170_key" DataValueField="n_id" Skin="Office2007" CheckBoxes="True" TriStateCheckBoxes="true" CheckChildNodes="false" /> 


Thank you Tom
Vesko
Top achievements
Rank 2
 answered on 16 Oct 2009
5 answers
288 views
I have a two radio buttons and checkbox that when one of the radio buttons is selected the the check box should be unchecked and hidden..

I have tried this 

//hide: 0 or 1 to determine hide or show action 
function HideShowTakeMeThere(chk_TakeMeThere,lbl_TakeMeThere, hide) 
{   
var chk = document.getElementById(chk_TakeMeThere);  
var lbl = document.getElementById(lbl_TakeMeThere);  
chk.style.visibility = lbl.style.visibility = hide == 1 ? "hidden" : "visible";  


which work great until I added form decorator .. now it doesn't work at all 
so I tried as well but not working also  
 chk.style.display = 'none'

any ideas?
thank you
Martin
Telerik team
 answered on 16 Oct 2009
1 answer
159 views
Good Day Madams and Sirs,

Once again, if this is a repeat post, guide me to an answer, thank you.

FF vs IE.

When using  the FormDecorator on a page, all skins/styles are applied and working.  However, in Firefox, the application of a skin/style to a CheckBox kills the focus indication (the added border no longer shows on focus).  The mouseover works fine in both browsers.

This can be tested in the demos for the FormDecorator here:
http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

Is there anyway to prevent the focus indication from being removed?
Martin
Telerik team
 answered on 16 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?