Hi friends,
I success to add controls to the panelbaritem, but cann't find them on button_click.
maybe the problem is with the add of the controls
the add controls event is after I select row on radgrid.
please help me,
thx.
I success to add controls to the panelbaritem, but cann't find them on button_click.
maybe the problem is with the add of the controls
the add controls event is after I select row on radgrid.
please help me,
thx.
<
telerik:RadPane
runat
=
"server"
ID
=
"PnlData"
dir
=
"rtl"
text-align
=
"left"
>
<
telerik:RadPanelBar
ID
=
"radpnlbardata"
runat
=
"server"
ExpandMode
=
"FullExpandedItem"
Width
=
"100%"
dir
=
"ltr"
text-align
=
"left"
Height
=
"100%"
>
</
telerik:RadPanelBar
>
<
div
style
=
"width:100%; text-align:center;"
>
<
telerik:RadButton
ID
=
"btnUpdate"
runat
=
"server"
Skin
=
"Metro"
Text
=
"Update"
Width
=
"70px"
align
=
"center"
visible
=
"false"
/>
<
telerik:RadButton
ID
=
"btnadd"
runat
=
"server"
Skin
=
"Metro"
Text
=
"Add"
Width
=
"50px"
align
=
"center"
visible
=
"false"
/>
</
div
>
</
telerik:RadPane
>
dsFieldsDetails = myService.Get_Fields_Details(Request.Params(
"ObjID"
))
Dim
rdRoot
As
New
Telerik.Web.UI.RadPanelItem
rdRoot.Text =
"rbroot"
rdRoot.Expanded =
True
rdRoot.PreventCollapse =
False
rdRoot.Selected =
True
For
Each
row
As
DataRow
In
dsFieldsDetails.Tables(0).Rows
Select
Case
row(dsFieldsDetails.Tables(0).Columns(
"field_type_name"
))
Case
"Int"
,
"smallint"
,
"bigint"
,
"varchar"
,
"nvarchar"
Dim
label1
As
New
Label
Dim
textbox1
As
New
RadTextBox
label1.ID =
"lbl"
+ row(dsFieldsDetails.Tables(0).Columns(
"table_field_name"
))
label1.Text = row(dsFieldsDetails.Tables(0).Columns(
"table_field_name"
)) +
": "
textbox1.ID =
"txt"
+ row(dsFieldsDetails.Tables(0).Columns(
"table_field_name"
))
textbox1.Text =
""
rdRoot.Controls.Add(label1)
rdRoot.Controls.Add(textbox1)
Case
"bit"
Dim
checkbox1
As
New
CheckBox
checkbox1.ID =
"lbl"
+ row(dsFieldsDetails.Tables(0).Columns(
"table_field_name"
))
checkbox1.Text = row(dsFieldsDetails.Tables(0).Columns(
"table_field_name"
)) +
": "
rdRoot.Controls.Add(checkbox1)
End
Select
Next