RadScriptManager1
.RegisterPostBackControl(linkBtn) on radgrid_ItemCreated, it doens't help at all.
DataDescriptionField
of RadSchduler (TEXTAREA). However, I want to create line breaks between the field values.
SELECT 'Field 1: ' + field1 + ' \r\n ' + 'Field 2: ' + field2 AS ConcatString
FROM Table1
I want the appointment description (textarea) to display...
Field 1: Field1 Value
Field 2: Field2 Value
What do I use to create this? The "\r\n" didn't work. It displays as (literal) string.
I am trying to populate the Description textarea on an appointment using Telerik's RadScheduler.
<telerik:RadScheduler runat="server" ID="RadScheduler1" Width="1000px" Height="750px" SelectedDate="2011-08-01"
DayStartTime="00:00:00" DayEndTime="23:59:59" TimeZoneOffset="00:00:00" DataSourceID="SurgeryDataSource2"
DataKeyField="surID" DataDescriptionField="ConcatString" DataSubjectField="specialtyType" DataStartField="start_date" DataEndField="end_date">
Thanks.
Edward
<SharePoint:SPDataSource ID="SPDataSource1" runat="server"
DataSourceMode="List"
UseInternalName="true"
SelectCommand="<View></View>">
<SelectParameters>
<asp:Parameter Name="WebUrl" DefaultValue="/subsite/" />
<asp:Parameter Name="ListName" DefaultValue="Contacts" />
</SelectParameters>
</SharePoint:SPDataSource>
| <telerik:GridTemplateColumn HeaderText="Time" UniqueName="time" > |
| <EditItemTemplate> |
| <telerik:RadTimePicker ID="rtpTime" runat="server" > |
| </telerik:RadTimePicker> |
| </EditItemTemplate> |
| <ItemTemplate> |
| <asp:Label ID="lbltime" runat="server" Text='<%# Eval "Time","{0:t}") %>' ></asp:Label> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |

length,n=b.length;g<n;g++,m++)d[m]=b[g]}else if(typeof b==="object"&&Object.getType(b)===Object){d=f.apply(a);Sys$Component$_setProperties(d,b)}}}if(h)a.endUpdate()}function Sys$Component$_setReferences(c,b){for(var a in b){var e=c["set_"+a],d=$find(b[a]);e.apply(c,[d])}}var $create=Sys.Component.create=function(h,f,d,c,g){var a=g?new h(g):new h,b=Sys.Application,i=b.get_isCreatingComponents();a.beginUpdate();if(f)Sys$Component$_setProperties(a,f);if(d)for(var e in d)a["add_"+e](d[e]);if(a.get_id())b.addComponent(a);if(i){b._createdComponents[b._createdComponents.length]=a;if(c)b._addComponentToSecondPass(a,c);else a.endUpdate()}else{if(c)Sys$Component$_setReferences(a,c);a.endUpdate()}return a};Sys.UI.MouseButton=function(){throw Error.notImplemented()};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented()};Sys.UI.Key.prototype=
When I debug the following line is highlighted (shown in bold below):
{backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(a,b){this.x=a;this.y=b};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(c,d,b,a){this.x=c;this.y=d;this.height=a;this.width=b};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(e){var a=e,b=this.type=a.type.toLowerCase();th
Imports Telerik.Web.UIPartial Class SNR_Config Inherits System.Web.UI.UserControl Private dbContext As New SNRDentonDBLayerDataContext Protected Sub rgConfiguration_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles rgConfiguration.NeedDataSource BindGrid() End Sub Protected Sub BindGrid() Dim IConfig = From Config In dbContext.SNR_Configurations Order By Config.ID Descending Select Config rgConfiguration.DataSource = IConfig.ToList End Sub Protected Sub rgConfiguration_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles rgConfiguration.ItemCommand If e.CommandName = RadGrid.PerformInsertCommandName Then Insert(e) ElseIf e.CommandName = RadGrid.UpdateCommandName Then Update(e) ElseIf e.CommandName = "Delete" Then Delete(e) End If End Sub Protected Sub Insert(ByVal e As Telerik.Web.UI.GridCommandEventArgs) If TypeOf e.Item Is GridEditFormInsertItem AndAlso e.Item.IsInEditMode Then If e.Item.OwnerTableView.IsItemInserted Then Dim txtKey As TextBox = e.Item.FindControl("txtKey") Dim txtValue As TextBox = e.Item.FindControl("txtValue") Dim chkIsAdmin As CheckBox = e.Item.FindControl("chkIsAdmin") Dim con As New SNR_Configuration con.ConfigKey = txtKey.Text.Trim con.ConfigValue = txtValue.Text.Trim con.CreatedOn = DateTime.Now con.CreatedBY = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo.UserID con.IsDeleted = False con.IsAdmin = IIf(chkIsAdmin.Checked, True, False) dbContext.SNR_Configurations.InsertOnSubmit(con) dbContext.SubmitChanges() End If End If End Sub Protected Sub rgConfiguration_ItemDataBound(ByVal source As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgConfiguration.ItemDataBound If TypeOf e.Item Is GridEditableItem And e.Item.IsInEditMode Then If TypeOf e.Item Is GridEditableItem And TypeOf e.Item Is GridEditFormInsertItem Then Dim btnInsert As Button = e.Item.FindControl("btnInsert") btnInsert.Visible = True Else Dim btnUpdate As Button = e.Item.FindControl("btnUpdate") btnUpdate.Visible = True End If End If End Sub End Class| public class CustomRadGrid : RadGrid |
| { |
| public CustomRadGrid(){ |
| ClientSettings.Selecting.EnableDragToSelectRows = false; |
| ClientSettings.Resizing.AllowColumnResize = true; |
| MasterTableView.AllowFilteringByColumn = false; |
| EnableEmbeddedSkins = false; |
| AllowMultiRowSelection = true; |
| ClientSettings.Selecting.AllowRowSelect = true; |
| } |
| } |
The above snippet is just a portion of my class
Does anyone have any idea why SelectedRows would be undefined?
I originally had this posted in the older (non ajax) forum, so you may see a duplicate of this message there.
Thanks!
Nicole