or
for (int intAy = 1; intAy < 13; intAy++)
{
Label17.Text = GridView1.Items[i].Controls[intAy].Controls.Count.ToString();
string strTemp = GridView1.Items[i].Controls[intAy].Controls[1].ID;
}
at this code , Label17.Text return 0 so , i couldnt get strTemp !
Hi There,
I have a simple grid with a datasource. All ok, except that I dont want the user be able to set
the page size. But setting the AllowCustomPaging to false doesnt do much.... It still shows the page-size
drop down and user is able to use it too. Any tips somebody?
Cheers Peter.
<
div
class
=
'Kamer_03'
>03
<
telerik:RadGrid
ID
=
"RadGrid1"
runat
=
"server"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"Vertical"
AutoGenerateColumns
=
"False"
BackColor
=
"#FF3399"
PageSize
=
"5"
AllowPaging
=
"True"
AllowCustomPaging
=
"false"
>
<
MasterTableView
datasourceid
=
"SqlDataSource1"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"30px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"TRIA"
HeaderText
=
"TRIA"
SortExpression
=
"TRIA"
UniqueName
=
"TRIA"
ReadOnly
=
"True"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"PATIENT"
HeaderText
=
"PATIENT"
UniqueName
=
"PATIENT"
ReadOnly
=
"True"
SortExpression
=
"PATIENT"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"SPEC"
HeaderText
=
"SPEC"
UniqueName
=
"SPEC"
ReadOnly
=
"True"
SortExpression
=
"SPEC"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"NURSE"
HeaderText
=
"NURSE"
UniqueName
=
"NURSE"
ReadOnly
=
"True"
SortExpression
=
"NURSE"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"HB"
HeaderText
=
"HB"
ReadOnly
=
"True"
SortExpression
=
"HB"
UniqueName
=
"HB"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"WAIT"
HeaderText
=
"WAIT"
UniqueName
=
"WAIT"
ReadOnly
=
"True"
SortExpression
=
"WAIT"
>
</
telerik:GridBoundColumn
>
</
Columns
>
</
MasterTableView
>
<
PagerStyle
PageSizeLabelText
=
""
ShowPagerText
=
"False"
/>
</
telerik:RadGrid
>
<
asp:SqlDataSource
ID
=
"SqlDataSource1"
runat
=
"server"
ConnectionString="<%$ ConnectionStrings:SEH-acceptatieConnectionString %>"
SelectCommand="usp_ShowPatients" SelectCommandType="StoredProcedure">
<
SelectParameters
>
<
asp:Parameter
DefaultValue
=
"O3"
Name
=
"Ruimte"
Type
=
"String"
/>
</
SelectParameters
>
</
asp:SqlDataSource
>
</
div
>
Private
Sub
_Default_Init(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Init
Dim
PH
As
PlaceHolder = PlaceHolder1
Dim
RTS
As
New
RadTabStrip
Dim
RMP
As
New
RadMultiPage
For
i
As
Integer
= 1
To
4
Dim
RT
As
RadTab =
New
RadTab
RT.Text =
"Tab "
& i
RT.PageViewID =
"Tab_"
& i
RTS.Tabs.Add(RT)
Dim
RPV
As
New
RadPageView
RPV.ID =
"Tab "
& i
RMP.PageViews.Add(RPV)
Dim
Pnl
As
Panel =
New
Panel
Pnl.Controls.Add(
New
LiteralControl(
"tabbie "
& i))
RPV.Controls.Add(Pnl)
Next
i
RTS.SelectedIndex = 0
PH.Controls.Add(RMP)
PH.Controls.Add(RTS)
End
Sub