With
RadInputManager you can extend TextBox controls located in
control - for instance a repeater or RadGrid.This demo shows how you can add the grid edit form TextBoxes to different
RadInputManager settings
dynamically.
The following code shows how you could extend all the textboxes nested in a repeater
to behave same way:
<telerik:RadInputManager ID="RadInputManager1" runat="server" Skin="Telerik">
<telerik:TextBoxSetting BehaviorID="TextBoxBehavior1" EmptyMessage="type here" InitializeOnClient="false">
<TargetControls>
<telerik:TargetInput ControlID="Repeater1" />
</TargetControls>
</telerik:TextBoxSetting>
</telerik:RadInputManager>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" />
</ItemTemplate>
</asp:Repeater>
Using this technique you will significantly decrease the input editors loading time
since plain MS TextBoxes will be created (instead of the corresponding RadInput
controls) and the data entered by the end user will be automatically filtered by
RadInputManager, based on the input manager settings. The performance benefit can
be quite significant:
- The same number of input controls will be loaded up to 10 times
faster
- The maximum number of input controls allowed on the page can be 10 times greater
Related Resources