// This the code snippet which is used to create dynamic controls
protected override void OnInit(EventArgs e) { base.OnInit(e); myControl = GetPostBackControl(this.Page); if ((myControl != null)) { if ((myControl.ClientID.ToString() == btnAddDestination.ClientID.ToString()))// "AddDestinations_btnAddDestination")) { stDestinationCnt = stDestinationCnt + 1; } } if ((myControl != null)) { if ((myControl.ClientID.ToString() == btnAddDestination.ClientID.ToString())) { for (int i = 0; i < stDestinationCnt; i++) { // Litrals first line of table LiteralControl literalHeader = new LiteralControl(@"<table border=""0"" width=""100%""><tr>"); newChild.Controls.Add(literalHeader);Label lbldest = new Label(); lbldest.ID = "lbldestination" + stDestinationCnt.ToString(); lbldest.Text = "Destination:"; newChild.Controls.Add(lbldest); //Textbox for destination ID LiteralControl literalDestinationIDTxt = new LiteralControl(@"</td><td width=""100px"">"); newChild.Controls.Add(literalDestinationIDTxt); TextBox txtdestination = new TextBox(); txtdestination.Text = "Destination"; txtdestination.ID = "txtDestination" + stDestinationCnt.ToString(); newChild.Controls.Add(txtdestination); LiteralControl literalRemove = new LiteralControl(@"</td><td rowspan=""4"">"); Button btn = new Button(); btn.ID = "Remove" + stDestinationCnt.ToString(); btn.Text = "Remove"; newChild.Controls.Add(btn);newChild.Visible = true; //Add Controls to Panel Bar RadPanDestination.Items.Add(newChild);
}
//ascx design
<tr><td>
<telerik:RadPanelBar runat="server" ID="RadPanDestination" Text="Test" ExpandMode="SingleExpandedItem"
Width="100%" >
<Items>
<telerik:RadPanelItem Text="Destinations" Width="100%">
<ItemTemplate>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</td></tr> Dim insertQuantity As StringDim insertEquipment As StringDim intNumber As Integer = 1 Dim newControl As New Control For intNumber = 1 To 1 insertQuantity = "txtQuantity" + CStr(intNumber) insertEquipment = "txtEquipment" + CStr(intNumber) newControl = DirectCast(Me.FindControl(insertQuantity), TextBox) If (Not newControl Is Nothing) Then Response.Write("Cant find control ") Else Response.Write("Found the control") newControl = DirectCast(Me.FindControl(insertQuantity), TextBox) End IfNext intNumber
Please help. When i access newControl.Text it is giving me a null reference to an instance of an object. Thank you.

<telerik:RadDock ID="RadDock3" Runat="server" DockMode="Docked" Skin="Web20" Width="33.3%"> <ContentTemplate> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <uc1:PowerUsage ID="PowerUsage1" runat="server" /> </ContentTemplate> </asp:UpdatePanel> <ContentTemplate> </telerik:RadDock><telerik:GridCalculatedColumn HeaderText="Cnv. Price" UniqueName="ConvertedSoldPrice" DataType="System.Double" DataFields="SoldPrice, ConversionRate" Expression="{0}*{1}" />Hi, I have a problem with IE8: it's impossible to switch to HTML view.
The error is on ScriptResource.axd.
Following some details about the error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 26 Jan 2010 16:10:11 UTC
Message: Permission denied
Line: 5251
Char: 1
Code: 0
URI: http://172.30.148.239:81/ScriptResource.axd?d=7PXMeRUGD7WemvP40sRV83MWqfXBxjt-3xudKuVCvaa6JShH8VvYbuuHJPsJQD5Yt9q0mIE6vxYOCHUOSNSRsg2&t=633961254920000000
Telerik version: 2009 Q2
Browser version: IE 8.0.6001.18702
Could you help me?
Thanks

How do you turn off the default tooltip on the button. It is redundant to have the text="Save" and then when you hover over the button you automatically get a tooltip saying the same thing. I have tried to set the Tooltip="" and that doesn't work. If I set the tooltip text to "Save Record", this shows up when the mouse hovers over the button. Suggestions.
<telerik:RadButton ID="btnSave" runat="server" Text="Save" Width="100px"> </telerik:RadButton>