or
Protected Sub grdMaintReceived_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdMaintReceived.ItemDataBound If TypeOf e.Item Is GridDataItem Then Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) Dim deactivated As Boolean = DirectCast(item("deactivated").FindControl("checkDeactivated"), CheckBox).Checked Dim contractBtn As LinkButton = DirectCast(item("service_provider_name").Controls(0), LinkButton) If deactivated Then contractBtn.Enabled = False End If End IfEnd SubHello All
When you select a column in RadGrid as "read only" it will be hidden in Edit and Insert mode, I have a requirement to show it, but I don’t know how to do this with Ajax RadGrid? If I put the EditMode="InPlace"
It appear as label which is good but I wanted to use the EditMode="EditForms"
It I Use this it disappears, Can someone please update me how to resolve this issue. I don’t not want to use template column that will increase huge work on my end
Thanks in advance
Syed Qazafi
<telerik:RadScheduler ID="rsAppointments" runat="server" DataEndField="AppointmentEndDate" DataKeyField="ID" DataStartField="AppointmentStartDate" DataSubjectField="AppointmentTypeID" DataDescriptionField="AppointmentTypeID" Height="600px" onnavigationcomplete="rsAppointments_NavigationComplete" OnClientAppointmentInserting="OnInsertAppointment" OnClientAppointmentEditing="OnEditAppointment" OnClientAppointmentContextMenuItemClicked="OnAppointmentMenuClicked" OnClientAppointmentContextMenu="OnAppointmentMenu" OnClientTimeSlotContextMenuItemClicked="OnTimeslotMenuClicked" GroupingDirection="Vertical" SelectedView="TimelineView" DayEndTime="20:00:00" DayStartTime="07:00:00" WorkDayEndTime="20:00:00" WorkDayStartTime="07:00:00" onappointmentcreated="rsAppointments_AppointmentCreated" onappointmentupdate="rsAppointments_AppointmentUpdate" onappointmentdelete="rsAppointments_AppointmentDelete"> <WeekView UserSelectable="False" /> <DayView UserSelectable="False" /> <MonthView UserSelectable="False" /> <TimelineView GroupBy="Resources" GroupingDirection="Vertical" UserSelectable="false" NumberOfSlots="39" StartTime="07:00:00" ShowResourceHeaders="true" EnableExactTimeRendering="true" ColumnHeaderDateFormat="HH:mm" SlotDuration="00:20:00" ShowInsertArea="false" /> <ResourceTypes> <telerik:ResourceType Name="Resources" KeyField="AppointmentResourceID" TextField="AppointmentResource" ForeignKeyField="AppointmentResourceID" /> </ResourceTypes> <AppointmentTemplate> <table border="0" cellpadding="3" cellspacing="0" width="100%"> <tr> <td style="border: none;"><asp:Literal ID="litContent" runat="server"></asp:Literal></td> </tr> </table> </AppointmentTemplate> <AppointmentContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="cmAppointment"> <Items> <telerik:RadMenuItem Text="Open" Value="CommandEdit" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Delete" Value="CommandDelete" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Attended" Value="Attended" /> <telerik:RadMenuItem Text="Cancel" Value="Cancel" /> <telerik:RadMenuItem IsSeparator="True" /> <telerik:RadMenuItem Text="Go to Record Summary" Value="PatientRecord"></telerik:RadMenuItem> <telerik:RadMenuItem Text="Go to Demographics" Value="Patient"></telerik:RadMenuItem> </Items> </telerik:RadSchedulerContextMenu> </AppointmentContextMenus> <TimelineView HeaderDateFormat="dddd, dd MMMM yyyy" /> <TimeSlotContextMenus> <telerik:RadSchedulerContextMenu runat="server" ID="cmTimeSlot"> <Items> <telerik:RadMenuItem Text="New Appointment" Value="CommandAddAppointment"></telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true" /> <telerik:RadMenuItem Text="Go to today" Value="CommandGoToToday" /> </Items> </telerik:RadSchedulerContextMenu> </TimeSlotContextMenus> <TimeSlotContextMenuSettings /> </telerik:RadScheduler>