or
<telerik:GridTemplateColumn> <HeaderTemplate> <input onclick="CheckAll(this);" type="checkbox"> </HeaderTemplate> <ItemTemplate> <asp:CheckBox ID="cbApproved" runat="server" /> </ItemTemplate></telerik:GridTemplateColumn>
<telerik:radscheduler id="RadScheduler1" runat="server" datadescriptionfield="Description" dataendfield="End" datakeyfield="AppointmentId" datarecurrencefield="RecurrenceRule" datarecurrenceparentkeyfield="RecurenceParentId" datasourceid="SDSAppointments" datastartfield="Start" datasubjectfield="Subject" enabledescriptionfield="True" customattributenames="FlightHours,GroundHours,Comments,IsInactive,IsDelivered,IsEdited,IsDeleted" enablecustomattributeediting="True" allowdelete="False" onclientformcreated="OnClientFormCreated" onappointmentinsert="RadScheduler1_AppointmentInsert" onappointmentupdate="RadScheduler1_AppointmentUpdate"> <ResourceTypes> <telerik:ResourceType DataSourceID="SDSStudents" ForeignKeyField="CustomerId" KeyField="CustomerID" Name="Students" TextField="StudentName" /> <telerik:ResourceType DataSourceID="SDSLessons" ForeignKeyField="LessonTypeId" KeyField="CategoryID" Name="Lessons" TextField="Name" /> </ResourceTypes> </telerik:radscheduler> | AppointmentId | int |
| Subject | nvarchar(50) |
| Start | datetime |
| [End] | datetime |
| LessonTypeId | int |
| InstructorId | int |
| CustomerId | int |
| RecurrenceRule | nvarchar(1024) |
| RecurenceParentId | int |
| Description | nvarchar(MAX) |
| IsInactive | tinyint |
| IsDelivered | tinyint |
| IsEdited | tinyint |
| IsDeleted | tinyint |
| FlightHours | decimal(18, 0) |
| GroundHours | decimal(18, 0) |
| Comments | nvarchar(MAX) |
Hello, I am migrating a control from GridView to RadGrid. With GridView, I was able to extend the GridViewRow class:
Public Class GridViewSearchRow Inherits GridViewRow ReadOnly Property SearchValueEntry As ISearchValueEntry Get Return FirstChildControl(Of ISearchValueEntry)() End Get End Property Public Sub New(…) MyBase.New(…) End Sub End ClassProtected Overrides Function CreateRow(…)As GridViewRow If rowType = DataControlRowType.DataRow Then Return New GridViewSearchRow(…) Else Return MyBase.CreateRow(…) End If End Function
In Telerik, I am able to extend the GridDataItem class:
Public Class RadSearchRow Inherits GridDataItem ReadOnly Property SearchValueEntry As ISearchValueEntry Get Return FirstChildControl(Of ISearchValueEntry)() End Get End Property Public Sub New(…) MyBase.New(…) End Sub End Class
Is there a similar way to ensure that all objects in the .Items() collection are added as RadSearchRow? I’ve noticed that the RadGrid’s GridDataItems are created within the CreateChildControl() sub, but since CreateChildControl() isn’t a function (like GridView’s CreateRow) I’m not sure how to mimic it.
Thank you very much.
<a href="http://www.yahoo.com">http://www.yahoo.com</a><a href="http://www.someotherwebsite.com">http://www.yahoo.com</a>