or
<telerik:RadScheduler runat="server" ID="RadScheduler1" Skin="Windows7" Height="551px" ShowFooter="true" TimeZoneOffset="03:00:00" DayStartTime="08:00:00" DayEndTime="21:00:00" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" EnableDescriptionField="true" AppointmentStyleMode="Default" OnNavigationComplete="RadScheduler1_NavigationComplete" OnClientFormCreated="schedulerFormCreated" OnAppointmentCreated="RadScheduler1_AppointmentCreated" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentInsert="RadScheduler1_AppointmentInsert" DataKeyField="AppointmentID" CustomAttributeNames="Charge" DataSubjectField="AppSubject" DataEndField="DateTimeDepart" DataStartField="DateTimeArrived" DataDescriptionField="AppDescription" DataSourceID="LinqDataSource1" GroupBy="Resources" StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true"> <AdvancedForm Modal="true" /> <TimelineView UserSelectable="false" /> <MonthView UserSelectable="false" /> <WeekView UserSelectable="false" /> <AdvancedForm Modal="true" /> <Reminders Enabled="false" /> <AppointmentTemplate> <div class="rsAptSubject"> <%# Eval("Subject") %> </div> <%# Eval("Description") %> </AppointmentTemplate> <%--<AdvancedEditTemplate> <scheduler:AdvancedForm runat="server" ID="AdvancedEditForm1" Mode="Edit" Subject='<%# Bind("AppSubject") %>' Description='<%# Bind("AppDescription") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>' AppointmentColor='<%# Bind("AppointmentColor") %>' CustomerID='<%# Bind("CustomerID") %>' ResourceID='<%# Bind("ResourceID") %>' /> </AdvancedEditTemplate> <AdvancedInsertTemplate> <scheduler:AdvancedForm runat="server" ID="AdvancedInsertForm1" Mode="Insert" Subject='<%# Bind("AppSubject") %>' Description='<%# Bind("AppDescription") %>' Start='<%# Bind("Start") %>' End='<%# Bind("End") %>' RecurrenceRuleText='<%# Bind("RecurrenceRule") %>' Reminder='<%# Bind("Reminder") %>' AppointmentColor='<%# Bind("AppointmentColor") %>' CustomerID='<%# Bind("CustomerID") %>' ResourceID='<%# Bind("Room") %>' /> </AdvancedInsertTemplate>--%> <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> <ResourceTypes> <telerik:ResourceType KeyField="ContactID" Name="Contacts" TextField="LastName" ForeignKeyField="ContactID" DataSourceID="LinqDataSource2" /> <telerik:ResourceType KeyField="ResourceID" Name="Resources" TextField="LastName" ForeignKeyField="ResourceID" DataSourceID="LinqDataSource3" /> </ResourceTypes> </telerik:RadScheduler> <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext" TableName="AAA_Apointments" EnableInsert="true" EnableDelete="true" EnableUpdate="true"> </asp:LinqDataSource> <asp:LinqDataSource ID="LinqDataSource2" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext" TableName="AAA_Contacts"> </asp:LinqDataSource> <asp:LinqDataSource ID="LinqDataSource3" runat="server" ContextTypeName="DataLogic.DataModels.KloudDataDataContext" TableName="AAA_Resources"> </asp:LinqDataSource>
Can someone show me how to set values on a tableview and make them show up from javascript?
I have been trying to do this, but it doesn't seem to work:
function ClientSelectedIndexChanged(sender, eventArgs) { var item = eventArgs.get_item(); var item1 = item._attributes._data; tableView._data._columnsData[2].value = item1.username; tableView._data._columnsData[3].value = item1.firstname; tableView._data._columnsData[4].value = item1.lastname; tableView.rebind(); } Regards,
Dan
I have a RadDatePicker, and I'm setting the background color on the server side when it contains an invalid value like so:
dtStartDate.DateInput.Style.Add(HtmlTextWriterStyle.BackgroundColor, "red");function RemoveInvalidStyle(sender, args) { sender.get_styles().EnabledStyle[0] = sender.get_styles().EnabledStyle[0].replace("background-color:red;", ""); sender.get_styles().HoveredStyle[0] = sender.get_styles().HoveredStyle[0].replace("background-color:red;", ""); sender.get_styles().FocusedStyle[0] = sender.get_styles().FocusedStyle[0].replace("background-color:red;", ""); sender.updateCssClass(); }