or
=
"True"
)<
tr
>
<
td
colspan
=
"2"
> <
b
> Supervisor Name </
b
></
td
>
<
td
colspan
=
"3"
>
<
asp:HiddenField
ID
=
"CRAFT_CODE_Textbox"
runat
=
"server"
value
=
"H"
/>
<
asp:HiddenField
ID
=
"SUPV_ID_TextBox"
runat
=
"server"
/>
<
br
/>
<
telerik:RadComboBox
ID
=
"wcOfficerName"
Runat
=
"server"
DataSourceID
=
"sdsOfficer"
DataTextField
=
"FULL_NAME"
DataValueField
=
"SUPV_ID"
EnableAutomaticLoadOnDemand
=
"False"
EnableItemCaching
=
"True"
EnableLoadOnDemand
=
"False"
EnableVirtualScrolling
=
"False"
Filter
=
"StartsWith"
ItemsPerRequest
=
"-1"
MarkFirstMatch
=
"False"
Width
=
"279px"
ShowMoreResultsBox
=
"False"
Skin
=
"Office2007"
LoadingMessage
=
"Loading Please Wait..."
EmptyMessage
=
"Please Select Supervisor"
>
</
telerik:RadComboBox
>
</
td
>
</
tr
>
<
tr
>
<
td
colspan
=
"2"
> <
b
> Employee Name</
b
></
td
>
<
td
colspan
=
"3"
>
<
asp:HiddenField
ID
=
"EMPL_ID_TextBox"
runat
=
"server"
/>
<
br
/>
<
telerik:RadComboBox
ID
=
"wcEmployeeName"
Runat
=
"server"
DataSourceID
=
"sdsEmployees"
DataTextField
=
"FULL_NAME"
DataValueField
=
"PERSON_ID"
EnableAutomaticLoadOnDemand
=
"True"
EnableItemCaching
=
"True"
EnableLoadOnDemand
=
"False"
EnableVirtualScrolling
=
"False"
Filter
=
"StartsWith"
ItemsPerRequest
=
"-1"
MarkFirstMatch
=
"False"
Width
=
"279px"
ShowMoreResultsBox
=
"False"
Skin
=
"Office2007"
LoadingMessage
=
"Loading Please Wait..."
EmptyMessage
=
"Please Select Employee"
>
</
telerik:RadComboBox
>
<
br
/>
</
td
>
</
tr
>
=
"False"
then it errors out when I click the "submit" button.Me.wcEmployeeName.SelectedValue = dataset.Tables(0).Rows(0)(4)
Me.wcOfficerName.SelectedValue = dataset.Tables(0).Rows(0)(3)
I currently am using a Repeater (below) and I want to replace it with a RadGrid control. Can I create multi-row headers with a RadGrid control? I have other more complex header that span rows etc., are they supported? <asp:Repeater ID="Repeater1" runat="server" EnableViewState="False"> |
<HeaderTemplate> |
<p> |
<table width="95%" border="1" cellpadding="3" cellspacing="0"> |
<thead> |
<tr class="colTitle"> |
<th colspan="5" align="center"> |
<br/> |
<%# title%> |
<br/> |
<br/> |
For: <%# reportMonthHeader%> |
<br/> |
<br/> |
Process Date: <%# processDateHeader %> |
<br/> |
<br/> |
</th> |
</tr> |
<tr class="colTitle"> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
Contract ID |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
Contract Name |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
Total Number of Transactions Sent |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
Total Number of Transactions Received on Time |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
Percent of Transactions Received on Time |
</th> |
</tr> |
<tr class="colTitle"> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
A |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
B |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
C |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
D |
</th> |
<th style="font-size: xx-small;" align="center" valign="bottom"> |
E |
</th> |
</tr> |
</thead> |
<tbody> |
</HeaderTemplate> |
<ItemTemplate> |
<tr class="<%# Container.ItemIndex % 2 == 0 ? "tblalt" : "" %>"> |
<td width="15%" style="font-size: xx-small;" align="center" valign="middle"> |
<%# DataBinder.Eval(Container.DataItem, "ContractId")%> |
</td> |
<td width="40%" style="font-size: xx-small;" align="center" valign="middle"> |
<%# DataBinder.Eval(Container.DataItem, "ContractName")%> |
</td> |
<td width="15%" style="font-size: xx-small;" align="center" valign="middle"> |
<%# DataBinder.Eval(Container.DataItem, "TotEnrollSent")%> |
</td> |
<td width="15%" style="font-size: xx-small;" align="center" valign="middle"> |
<%# DataBinder.Eval(Container.DataItem, "TotRcvdOnTime")%> |
</td> |
<td width="15%" align="center" valign="middle" style='<%# (bool)(DataBinder.Eval(Container.DataItem, "HighlightPctRcvdOnTime"))?"font-size:xx-small;font-weight:bold;color:red;text-decoration:underline;":"font-size: xx-small;"%>'> |
<%# DataBinder.Eval(Container.DataItem, "PctRcvdOnTime")%> |
</td> |
</tr> |
</ItemTemplate> |
<FooterTemplate> |
</tbody> |
</table> |
</p> |
</FooterTemplate> |
</asp:Repeater> |
function
gridPsize() {
var
h1 = $find(
"<%= RadSplitter5.ClientID %>"
).get_height();
$find(
"<%= RadAjaxManager1.ClientID %>"
).ajaxRequest(
"Grid1PageSize"
+ h1);
}
Protected
Sub
RadAjaxManager1_AjaxRequest(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Web.UI.AjaxRequestEventArgs)
Handles
RadAjaxManager1.AjaxRequest
If
Left(e.Argument, 13) =
"Grid1PageSize"
Then
'Set Radgrid1 page size
Dim
pHeight
As
Integer
=
CInt
(Right(e.Argument, Len(e.Argument) - 13))
Dim
rows
As
Double
= (pHeight - 110) / 30
If
rows >= 1
Then
RadGrid1.PageSize =
CInt
(rows)
RadGrid1.Rebind()
End
If
End
If
End
Sub