Private
Sub RenderMethodForHeader(ByVal writer As HtmlTextWriter, ByVal ctl As Control)
Try
'startIndex = dgd_EmpData.Columns.Count - 1background-color:inherit
Dim ds As DataSet
ds = objPE.MonthlyAssignmentGetMonths(Request.QueryString(
"proposalVersionID"))
Dim strLine As String = "<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center""> </TD>"
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">Name</TD>"
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">Clin</TD>"
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">POP Name</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">Schedule/YR</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">Catg</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">Site</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(0)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(1)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(2)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(3)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(4)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(5)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(6)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(7)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(8)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(9)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(10)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""center"">" & ds.Tables(0).Rows(11)("MonthName") & "</TD> "
strLine = strLine &
"<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">" & "Total" & "</TD> "
'strLine = strLine & Microsoft.VisualBasic.Chr(10) & ""
'strLine = strLine & "<TD style=""" & "background-color: #99cccc""" & " colspan=""" & 1 & """ align=""left"">" & "Copy" & "</TD> "
writer.Write(strLine)
'writer.Write("<TD colspan=""4"" align=""center"">All</TD>" & Microsoft.VisualBasic.Chr(10) & "")
writer.Write(
"</TR>" & Microsoft.VisualBasic.Chr(10) & "")
RadGrid1.HeaderStyle.AddAttributesToRender(writer)
writer.RenderBeginTag(
"TR")
'Dim cell As TableCell = CType(ctl.Controls(0), TableCell)
'Dim totalCells As Integer = ctl.Controls.Count
'For i As Integer = 0 To totalCells - 1
' cell = CType(ctl.Controls(i), TableCell)
' cell.Attributes.Add("align", "center")
' cell.Attributes.Add("valign", "bottom")
' cell.RenderControl(writer)
'Next
writer.RenderEndTag()
Catch ex As Exception
Me.lblErrorMsg.Text = ex.Message
log.Error(
"Proposal Employee Assignment: RenderMethodForHeader", ex)
End Try
End Sub
<
telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" PageSize="20"
AllowSorting="True" AllowMultiRowSelection="True" AllowPaging="True" ShowGroupPanel="False"
AutoGenerateColumns="False" GridLines="None" Skin="WebBlue">
<PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
<MasterTableView Width="100%" DataSourceID="ObjectDataSource1" ShowGroupFooter="True">
<GroupByExpressions>
<telerik:GridGroupByExpression>
<SelectFields>
<telerik:GridGroupByField FieldAlias="POPName" FieldName="POPName" FormatString="{0:D}"
HeaderValueSeparator=" : " HeaderText=""></telerik:GridGroupByField>
</SelectFields>
<GroupByFields>
<telerik:GridGroupByField FieldName="POPName" FieldAlias="Received" FormatString=""
HeaderText=""></telerik:GridGroupByField>
</GroupByFields>
</telerik:GridGroupByExpression>
</GroupByExpressions>
<Columns>
<telerik:GridBoundColumn CurrentFilterFunction="Contains" ShowFilterIcon="False"
AutoPostBackOnFilter="True" ReadOnly="True" DataField="EmployeeName" HeaderText="Name"
SortExpression="EmployeeName" UniqueName="EmployeeName">
<ItemStyle BackColor="#FFFFCC" />
<HeaderStyle Width="100px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn CurrentFilterFunction="Contains" ShowFilterIcon="False"
AutoPostBackOnFilter="True" ReadOnly="True" DataField="ClinNo" HeaderText="ClinNo"
SortExpression="ClinNo" UniqueName="ClinNo">
<ItemStyle BackColor="#FFFFCC" />
<HeaderStyle Width="100px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="false" CurrentFilterFunction="Contains" ShowFilterIcon="False"
AutoPostBackOnFilter="True" FilterControlWidth="100px" ReadOnly="True" DataField="POPName"
HeaderText="POPName" SortExpression="POPName" UniqueName="POPName">
<ItemStyle Width="120px" BackColor="#FFFFCC" />
<HeaderStyle Width="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="true" CurrentFilterFunction="Contains" ShowFilterIcon="False"
AutoPostBackOnFilter="True" FilterControlWidth="100px" ReadOnly="True" DataField="POPName1"
HeaderText="POPName1" SortExpression="POPName1" UniqueName="POPName1">
<ItemStyle Width="120px" BackColor="#FFFFCC" />
<HeaderStyle Width="150px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AllowFiltering="False" ReadOnly="True" DataField="ScheduleYear"
HeaderText="Schedule/YR" SortExpression="ScheduleYear" UniqueName="ScheduleYear">
<HeaderStyle Width="75px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AllowFiltering="False" ReadOnly="True" DataField="LaborCategoryCode"
HeaderText="Category" SortExpression="LaborCategoryCode" UniqueName="LaborCategoryCode">
<HeaderStyle Width="75px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn AllowFiltering="False" ReadOnly="True" DataField="Site"
HeaderText="Site" SortExpression="Site" UniqueName="Site">
<HeaderStyle Width="50px" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="Hours1" DataField="Hours1"
DataType="System.Decimal" HeaderText="Hours1" UniqueName="Hours1">
<ItemTemplate>
<asp:TextBox ID="TextBoxHours1" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Hours1")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="Hours2" DataField="Hours2"
HeaderText="Hours2" UniqueName="Hours2">
<ItemTemplate>
<asp:TextBox ID="TextBoxHours2" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Hours2")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="Hours3" DataField="Hours3"
HeaderText="Hours3" UniqueName="Hours3">
<ItemTemplate>
<asp:TextBox ID="TextBoxHours3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Hours3")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours4" DataField="hours4"
HeaderText="hours4" UniqueName="hours4">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours4" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours4")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours5" DataField="hours5"
HeaderText="hours5" UniqueName="hours5">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours5")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours6" DataField="hours6"
HeaderText="hours6" UniqueName="hours6">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours6" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours6")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours7" DataField="hours7"
HeaderText="hours7" UniqueName="hours7">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours7" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours7")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours8" DataField="hours8"
HeaderText="hours8" UniqueName="hours8">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours8" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours8")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours9" DataField="hours9"
HeaderText="hours9" UniqueName="hours9">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours9" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours9")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours10" DataField="hours10"
HeaderText="hours10" UniqueName="hours10">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours10" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours10")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours11" DataField="hours11"
HeaderText="hours11" UniqueName="hours11">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours11" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours11")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn AllowFiltering="False" SortExpression="hours12" DataField="hours12"
HeaderText="hours12" UniqueName="hours12">
<ItemTemplate>
<asp:TextBox ID="TextBoxhours12" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "hours12")%>'></asp:TextBox>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn AllowFiltering="False" ReadOnly="True" DataField="Total"
HeaderText="Total" SortExpression="Total" UniqueName="Total">
<HeaderStyle Width="75px" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn AllowFiltering="False" HeaderText=" " UniqueName="TemplateColumn">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text=" "></asp:Label>
</ItemTemplate>
<HeaderStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID1"
UniqueName="ProposalEmployeeMonthlyAssignmentID1">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID1" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID1")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID2"
UniqueName="ProposalEmployeeMonthlyAssignmentID2">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID2" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID2")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID3"
UniqueName="ProposalEmployeeMonthlyAssignmentID3">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID3" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID3")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID4"
UniqueName="ProposalEmployeeMonthlyAssignmentID4">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID4" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID4")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID5"
UniqueName="ProposalEmployeeMonthlyAssignmentID5">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID5" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID5")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID6"
UniqueName="ProposalEmployeeMonthlyAssignmentID6">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID6" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID6")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID7"
UniqueName="ProposalEmployeeMonthlyAssignmentID7">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID7" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID7")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID8"
UniqueName="ProposalEmployeeMonthlyAssignmentID8">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID8" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID8")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID9"
UniqueName="ProposalEmployeeMonthlyAssignmentID9">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID9" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID9")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID10"
UniqueName="ProposalEmployeeMonthlyAssignmentID10">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID10" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID10")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID11"
UniqueName="ProposalEmployeeMonthlyAssignmentID11">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID11" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID11")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID12"
UniqueName="ProposalEmployeeMonthlyAssignmentID12">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID12" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID12")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID13"
UniqueName="ProposalEmployeeMonthlyAssignmentID13">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID13" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID13")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID14"
UniqueName="ProposalEmployeeMonthlyAssignmentID14">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID14" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID14")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID15"
UniqueName="ProposalEmployeeMonthlyAssignmentID15">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID15" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID15")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID16"
UniqueName="ProposalEmployeeMonthlyAssignmentID16">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID16" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID16")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID17"
UniqueName="ProposalEmployeeMonthlyAssignmentID17">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID17" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID17")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID18"
UniqueName="ProposalEmployeeMonthlyAssignmentID18">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID18" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID18")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID19"
UniqueName="ProposalEmployeeMonthlyAssignmentID19">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID19" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID19")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID20"
UniqueName="ProposalEmployeeMonthlyAssignmentID20">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID20" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID20")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID21"
UniqueName="ProposalEmployeeMonthlyAssignmentID21">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID21" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID21")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID22"
UniqueName="ProposalEmployeeMonthlyAssignmentID22">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID22" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID22")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID23"
UniqueName="ProposalEmployeeMonthlyAssignmentID23">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID23" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID23")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Visible="False" AllowFiltering="False" DataField="LabelProposalEmployeeMonthlyAssignmentID24"
UniqueName="ProposalEmployeeMonthlyAssignmentID24">
<ItemTemplate>
<asp:Label ID="LabelProposalEmployeeMonthlyAssignmentID24" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ProposalEmployeeMonthlyAssignmentID24")%>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<RowIndicatorColumn Visible="True">
</RowIndicatorColumn>
</MasterTableView>
<ClientSettings AllowExpandCollapse="false" AllowGroupExpandCollapse="false" AllowDragToGroup="False"
AllowColumnsReorder="False">
<Selecting AllowRowSelect="True"></Selecting>
<Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True">
</Resizing>
</ClientSettings>
<GroupingSettings ShowUnGroupButton="False" />
</telerik:RadGrid>
Web Service methods normally return only a list with the current appointments (i.e. public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo)
What if current appointments are for a specific user Id?
Can I pass a user Id into expected the web methods?
i.e (i.e. public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) ?
Or is the Web Service approach not correct if I will require to pass more parameters along?
thanks
EDIT:
yeah this is probably irrelevant. I think I spoke too soon since I can get the user info I need in my custom schedule provider using the HTTP Context.
Cheers all.
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title></title>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
<script type="text/javascript">
function pageLoad() {
$find(
'<%= RadNumericTextBox1.ClientID %>').set_visible(false);
}
</script>
</telerik:RadCodeBlock>
</
head>
<
body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</telerik:RadScriptManager>
<div>
Test
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server"
Culture="English (Canada)" Width="125px">
</telerik:RadNumericTextBox>
</div>
</form>
</
body>
</
html>

| var ReopenRate = from myRow in dtTSEdata.AsEnumerable() |
| orderby myRow.Field<int>("tm_join") descending |
| select new { name = myRow.Field<string>("ln_fi"), value = myRow.Field<System.Nullable<double>>("reopen_rate") }; |
| RadChart1.DataSource = ReopenRate; |
| RadChart1.DataBind(); |
| RadChart1.Series[0].DefaultLabelValue = "#Y{P1}"; |
| RadChart1.Series[0].PlotArea.YAxis.Appearance.CustomFormat = "P0"; |
| // attempting to add line series to chart ChartSeries csud = new ChartSeries(); |
| csud.Type = ChartSeriesType.Line; |
| csud.AddItem(80, "Target", System.Drawing.Color.Red); |