Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
317 views
I am using the Grid to get data reported back to me  I need to accomplish the following tasks.  I will ayout my issues, please feel to help with any or all of them.

1. Can add multiple records at a time.  If so how?  What I envision, is the the grid loads, you click add new record, fill out the in-line form, click Add New record, and a new row is appended in edit mode still, tehn at teh end a sdingle postback sends all rows to the database.

2. How can I set a GridDateTimeColumn editor to "Today's Date"

3. How can I set a GridDropDownColumn editor to not wrap the options in the drop down list

4.How can I "pre-populate"  a field with the current UserID when the grid is set in "edit" or "Add new record" mode.  I envision something like this:

Dim UserID As String  
If RadGrid1.CurrentMode = RadGridMode.Insert Then  
UserID = Membership.GetUser.UserName.ToString()  
CType(Me.RadGrid1.FindControl("UserIDTextbox"), Text).Text = UserID 
End If 

5. How do I make the value of a field be the default for subsequent added records.  For example, one column contains population.  So after the first row as been added I would like the column to default to the initial value entered in the population field during the same session.

Any help would be great thanks,
Brett
Veli
Telerik team
 answered on 09 Jul 2008
5 answers
230 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
208 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
192 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
125 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
136 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
187 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
761 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
175 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
252 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?