<
asp:TextBox
ID
=
"txtEMail"
MaxLength
=
"100"
runat
=
"server"
Width
=
"250px"
/>
<
asp:TextBox
ID
=
"txtPassword"
MaxLength
=
"50"
runat
=
"server"
Width
=
"250px"
TextMode
=
"Password"
/>
<
asp:Button
ID
=
"cmdLogin"
runat
=
"server"
Text
=
"Login"
/>
<
telerik:RadInputManager
ID
=
"RadScreenValidator"
runat
=
"server"
>
<
telerik:TextBoxSetting
BehaviorID
=
"IsRequired"
Validation-IsRequired
=
"true"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtPassword"
/>
</
TargetControls
>
</
telerik:TextBoxSetting
>
<
telerik:RegExpTextBoxSetting
BehaviorID
=
"ValidateEMail"
Validation-IsRequired
=
"true"
ValidationExpression
=
"^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$"
>
<
TargetControls
>
<
telerik:TargetInput
ControlID
=
"txtEMail"
/>
</
TargetControls
>
</
telerik:RegExpTextBoxSetting
>
</
telerik:RadInputManager
>
I am implementing a Silverlight application with combination of Silverlight controls and ASP.net user controls on same aspx page.
One pane (left pane) is reserved for Silverlight controls and other pane is for ASPX controls (right pane). Right pane will be containing multiple user control based on inputs from Silverlight application.
Initially there won’t be any user controls on my page and only Silverlight controls (left pane) will capture whole area of the page. When request comes from Silverlight application, I do want to create a user control dynamically using RAD controls.
To achieve it, I am creating a RAD Pane (right pane) and this pane will contain a RAD sliding zone, within RAD sliding zone there will be multiple RAD sliding panes. Each sliding pane will contain one user control in it.
This way I want to place user control on different sliding panes based on request from Silverlight application dynamically.
I am having RAD control for ASPX (Ajax) and want to create multiple panes and placing user control on respective pane. I want to show only one user control at a time and other can be in hidden mode until user selects tab option to show one of the hidden controls.
Please help me how to create these sliding zones and sliding panes dynamically in OnInit override method.
Hi all
I use a RadComboBox which contans a RadGrid in itemTemplate,when user type a word in ComboBox, this error raised:
"Script control 'gv_supplier' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors(). Parameter name: scriptControl".
how can I fix it?
<
telerik:RadComboBox
ID
=
"RadComboBox1"
runat
=
"server"
DropDownWidth
=
"300px"
EmptyMessage
=
"select..."
EnableLoadOnDemand
=
"True"
HighlightTemplatedItems
=
"True"
ItemRequestTimeout
=
"10"
>
<
Items
>
<
telerik:radcomboboxitem
selected
=
"true"
/>
</
Items
>
<
ItemTemplate
>
<
telerik:RadGrid
ID
=
"gv_supplier"
runat
=
"server"
GridLines
=
"None"
Skin
=
"Vista"
Width
=
"100%"
AllowSorting
=
"True"
AutoGenerateColumns
=
"False"
ShowFooter
=
"True"
>
<
AlternatingItemStyle
BackColor
=
"#a7bcdb"
/>
<
MasterTableView
AllowSorting
=
"True"
DataKeyNames
=
"supplier_kind_id"
Dir
=
"RTL"
Font-Names
=
"Tahoma"
HeaderStyle-HorizontalAlign
=
"Center"
HorizontalAlign
=
"Center"
ItemStyle-HorizontalAlign
=
"Center"
ClientDataKeyNames
=
"supplier_kind_id,supplier_kind_code"
>
<
CommandItemSettings
ShowAddNewRecordButton
=
"false"
/>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"col_row_number"
HeaderText
=
"row"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"numberLabel"
runat
=
"server"
Width
=
"30px"
/>
</
ItemTemplate
>
<
HeaderStyle
Width
=
"30px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"supplier_kind_id"
UniqueName
=
"supplier_kind_id"
Visible
=
"false"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lbl_supplier_kind_id"
runat
=
"server"
Text='<%# Bind("supplier_kind_id") %>' />
</
ItemTemplate
>
<
HeaderStyle
Width
=
"50px"
/>
<
ItemStyle
Width
=
"50px"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"supplier_kind_code"
EmptyDataText
=
"----"
HeaderText
=
"code"
ReadOnly
=
"True"
Resizable
=
"true"
UniqueName
=
"supplier_kind_code"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"supplier_kind_name"
EmptyDataText
=
"----"
HeaderText
=
"name"
Resizable
=
"true"
UniqueName
=
"supplier_kind_name"
>
</
telerik:GridBoundColumn
>
</
Columns
>
<
NoRecordsTemplate
>
nothing to displaye.
</
NoRecordsTemplate
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
HorizontalAlign
=
"Center"
/>
</
MasterTableView
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
EnablePostBackOnRowClick
=
"true"
>
<
Resizing
AllowColumnResize
=
"True"
ResizeGridOnColumnResize
=
"false"
/>
<
Selecting
AllowRowSelect
=
"True"
/>
<
ClientEvents
OnRowSelected
=
"onRowSelected"
/>
</
ClientSettings
>
</
telerik:RadGrid
>
</
ItemTemplate
>
<
FooterTemplate
>
</
FooterTemplate
>
</
telerik:RadComboBox
>
<
telerik:radcodeblock
id
=
"codeBlock"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function onRowSelected(sender, args)
{
var selectedText = args.getDataKeyValue("supplier_kind_code");
var selectedValue = args.getDataKeyValue("supplier_kind_id");
var combo = $find("RadComboBox1");
setTimeout(
function()
{
combo.set_text(selectedText);
combo.set_value(selectedValue);
}
, 50);
}
</
script
>
</
telerik:radcodeblock
>