or
if
(inputs[0].value.length == 0) {
oWindow.BrowserWindow.radalert(
'Please select a dashboard to upload.'
, 200, 100,
'Error Uploading'
);
return
;
}
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2010.1.519.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> |
public void radcombo_mns_incidents_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
radcombo_mns_incidents.DataTextField = "INCIDENT_ID";
radcombo_mns_incidents.DataValueField = "INCIDENT_ID";
radcombo_mns_incidents.DataSource = from c in quarkdb.MNs
join t in quarkdb.STATUS_TYPEs on c.STATUS equals t.RECORD_ID
where t.STATUS != "Closed"
select new
{
c.INCIDENT_ID,
c.TITLE
};
radcombo_mns_incidents.DataBind();
<
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