Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
232 views
I have a RadPanelBar on my master page.
I have registered the custom skin on the page and set the EnableEmbeddedSkin property to False.My custome skings are not working properly.

<

telerik:RadPanelBar ID="RadPanelbar1" runat="server" DataSourceID="SiteMapDataSource1" Skin="MySkin" EnableEmbeddedSkins="false" Style="margin-right: 0px"></telerik:RadPanelBar>

I am using Images in my custome skin but somehow the Images do not load.
It just shows plain text.

This is how my css file looks like:

/* Default RadPanelBar Custom skin */

.RadPanelbar_MySkin
{
background: #e0e0e0;
white-space: nowrap;
width: 167px !important;
font: normal 11px Arial, Verdana, Sans-serif;
}

.RadPanelbar_MySkin .rpText
{
padding-left: 23px;
vertical-align: super;
}

.RadPanelbar_MySkin .rpImage
{
margin: 4px 0px;
}

.RadPanelbar_MySkin

.rpRootGroup .rpLink
{
background: #e0e0e0 url('PanelBar/vNavHeader.gif') no-repeat;
line-height: 24px;
height: 30px;
color: white;
font-weight: bold;
}

.RadPanelbar_MySkin

.rpRootGroup .rpLink:hover
{
color: #e0e0e0;
}

.RadPanelbar_MySkin

.rpRootGroup .rpExpanded,
.RadPanelbar_MySkin .rpRootGroup .rpLink:hover .rpExpanded
{
background: #e0e0e0 url('PanelBar/vNavHeaderExpanded.gif') no-repeat !important;
height: 25px;
}

.RadPanelbar_MySkin .rpRootGroup .rpSelected
{
text-decoration: underline;
}

.RadPanelbar_MySkin

.rpGroup .rpLink
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat;
line-height: 23px;
height: 23px;
font-weight: normal;
}

.RadPanelbar_MySkin .rpGroup .rpExpanded,
.RadPanelbar_MySkin .rpGroup .rpLink:hover .rpExpanded
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat !important;
height: 23px !important;
line-height: 27px !important;
overflow: hidden !important;
color: white !important;
}

.RadPanelbar_MySkin

.rpGroup .rpLast .rpLink
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOut.gif') no-repeat;
height: 31px;
}

.RadPanelbar_MySkin

.rpGroup .rpLast .rpLink:hover
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOver.gif') no-repeat;
height: 31px;
}

.RadPanelbar_MySkin

.rpGroup .rpLink
{
color: white;
}
 

.RadPanelbar_MySkin

.rpGroup .rpLink:hover
{
color: #0066cc;
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOver.gif') no-repeat;
}
 

.RadPanelbar_MySkin

.rpGroup .rpSelected
{
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOver.gif') no-repeat;
text-decoration: underline;
color: white;
}
 

.RadPanelbar_MySkin

.rpGroup .rpLast .rpSelected
{
background: #e0e0e0 url('PanelBar/vNavSubBtmMenuItemOver.gif') no-repeat;
t
ext-decoration: underline;
color: white;
}
 

.RadPanelbar_MySkin

.rpRootGroup .rpExpanded .rpText
{
line-height: 25px;
color: white;
font-weight: bold;
}
 

.RadPanelbar_MySkin

.rpGroup .rpSelected .rpText
{
font-weight: normal;
}
 

.RadPanelbar_MySkin

.rpGroup .rpExpanded .rpText
{
color: white;
font-weight: normal;
}
 

.RadPanelbar_MySkin

.rpLevel2 .text
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
line-height: 23px;
}
 

.RadPanelbar_MySkin

.rpLevel2 .selected .text
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
}

.RadPanelbar_MySkin

.rpDisabled .text
{
color: #ccc;
cursor: default;
}

 .RadPanelbar_MySkin ul.rpRootGroup .rpDisabled:hover,
.RadPanelbar_MySkin .rpRootGroup .rpDisabled .text
{
background: #e0e0e0 url('PanelBar/vNavHeader.gif') no-repeat;
color: #ccc;
cursor: default;
}
 

.RadPanelbar_MySkin

.rpRootGroup .rpGroup .rpDisabled:hover,
.RadPanelbar_MySkin .rpRootGroup .rpGroup .rpDisabled .rpText
{
text-decoration: none;
background: #e0e0e0 url('PanelBar/vNavSubMidMenuItemOut.gif') no-repeat;
color: #ccc;
cursor: default;
}

 .RadPanelbar_MySkin .rpRootGroup .rpGroup .rpLevel2 .rpDisabled .rpText
{
background: no-repeat left center;
margin-left: 15px;
padding-left: 18px;
line-height: 23px;
}


Please suggest what I am doing wrong here?

Andrew
Top achievements
Rank 1
 answered on 09 Jul 2008
1 answer
209 views
I am trying to use the set_status method when I create a new window and the status that I am setting always gets overwritten with the URL of window. Am I missing something? In the sample below the "Test Window Status" shows up for a second but is then replaced by http://www.google.com.

Thanks!

========== Sample Code ====================

<%

@ Page Language="C#"%>

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<

html><head runat="server">

<script type="text/javascript">

function openWindow(){

var oWindow =radopen("http://www.google.com", "window1");

oWindow.set_status(

"Test Window Status");}

</script>

</

head>

<

body><form id="form" runat="server">

<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"></telerik:RadWindowManager>

<input type="button" value="New Window" onclick="openWindow();" />

</

form></body></html>

Georgi Tunev
Telerik team
 answered on 09 Jul 2008
1 answer
194 views

Hi,

I want to add templates at run-time.  Could you please let me know where and how would I do that in code insetead of aspx page.  I'm building a server control and cannot use aspx. 

<telerik:Radschdular>
<AppointmentTemplate>
<%# Eval("Subject")%>
<asp:Label runat="server" ID="lbl1" />
</AppointmentTemplate>
</telerik:Radschdular>


I think i need to use this in the code:
RadScheduler1.AppointmentTemplate.InstantiateIn(lbl1);

But, i'm not sure how to use this.  Any help or suggestion would be appereciated.

Thank you,
-Sal

T. Tsonev
Telerik team
 answered on 09 Jul 2008
3 answers
128 views

Hello everybody,

I wrote the following javascript function for the RadScheduler's 
AppointmentInserting javascript event

function AppointmentInserting(sender, eventArgs)
{
    var time = eventArgs.get_startTime();
    alert(time);
}


The alert box then shows: NaN

However, the function worked until we installed the the telerik update for RadControls for ASP.NET Ajax yesterday.

Is this a known bug or did I do something wrong?

Has anybody a solution for this problem?

Sincerely
Oliver

Helen
Telerik team
 answered on 09 Jul 2008
1 answer
138 views
Hi,

Is there a setting in the grid that would have it display HTML tags as text instead of rendering them?

Thanks
Vlad
Telerik team
 answered on 09 Jul 2008
1 answer
189 views
hey, I am trying to trigger an event through OnClientAppointmentMoveEnd in RadScheduler, but ajaxManager.ajaxRequest(argument) will not fire for some reason, it fires on any other part of the page.  someone please help me

function ScheduleMoved(sender, eventArgs)  
{     
 
       var start = formatDate(eventArgs.get_newStartTime());  
       var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");  
       var index = eventArgs.get_appointment().get_id();                      
       ajaxManager.ajaxRequest(index.toString() + '+'  + start.toString());  
 
                          
}  
Konstantin Petkov
Telerik team
 answered on 09 Jul 2008
5 answers
768 views
anybody can give me an example how to use ajax timer with RADAJAXManager or RAJAJAXPanel?
Konstantin Petkov
Telerik team
 answered on 09 Jul 2008
1 answer
181 views
In order to use the GridClientSelectColumn, I have the AllowRowSelect option enabled. However, I only want users to be able to select items using the GridClientSelectColumn. The problem I'm having is that a user may select multiple rows using the checkboxes or holding down Shift and selecting the first and last. However, as soon as the user clicks on a column that is not the GridClientSelectColumn it deselects all the other columns they selected and selects only the last one they clicked on.

Thanks,
Adam
Princy
Top achievements
Rank 2
 answered on 09 Jul 2008
3 answers
257 views
Hello.I want to disable commandItem on the server side.
When the person have the permission of edit,the commandItem on the top display. When the person do not have the permission of edit,the commanditem do not display.
Shinu
Top achievements
Rank 2
 answered on 09 Jul 2008
2 answers
92 views
Hi,

I would like to bind the RadGrid to objects rather than to a database.  I'd like each row in the grid to represent the data in a different object. When I do in-line editing in the RadGrid, I'd like the corresponding object to be updated.

Can you point me to any tutorials and/or examples regarding this?

Thanks!

Tom
Princy
Top achievements
Rank 2
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?