Hi,
In an existing (MCMS) project, we use the Telerik.WebControls.RadEditorPlaceHolder control to hold and update content.
Now we want to upgrade to RadControls for ASP .Net AJAX and I am wondering if there is an equivalent control.
All help appreciated.
Thank you.
| Dim file As UploadedFile = RadUploadContext.Current.UploadedFiles(fileBild.UniqueID) |
| Dim file As UploadedFile = UploadedFile.FromHttpPostedFile(Request.Files(fileBild.UniqueID)) |

I am having a problem with the rendering of the rad editor control when it is placed in a div of a fixed height with the overflow:auto style applied. The controls are being rendered outside of the fixed height div in the position they would be if the div was not restricted in its height. Even if i just set the control to just design mode IE still thinks the control has a bigger height than applied to the div and applies its scroll bars. You can take a look at the problem here. Below is the code you can use to reproduce the problem.
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <div> |
| <div style="height: 170px; overflow:auto; border: solid black 1px;"> |
| <asp:UpdatePanel ID="UpdatePanelRadEditorPost" runat="server"> |
| <ContentTemplate> |
| <telerik:RadEditor ID="RadEditor1" runat="server" |
| AutoResizeHeight="false" |
| Height="500px"> |
| <SpellCheckSettings DictionaryLanguage="en-GB" /> |
| </telerik:RadEditor> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |
| </div> |
| </form> |
| </body> |
| </html> |
Thanks for your help,
Jef
foreach
(ChartAxisItem item in RadChart1.PlotArea.XAxis.Items)
{
item.Visible = false;
}
thanks,
yossi.
Hai,
I am trying to Bind the Data to RadGrid which is Under RadPanelBar.
Here I am sending the Peace of Code which I used exactly..
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Skin="WebBlue" Height="300px">
<Items>
<telerik:RadPanelItem Expanded="True" Text="ASP.NET controls">
<Items>
<telerik:RadPanelItem Text="RadMenu">
<ItemTemplate>
<telerik:RadGrid PageSize="3" AllowPaging="true" ID="RadGrid1" runat="server" GridLines="Horizontal" AllowFilteringByColumn="true" Skin="WebBlue" AllowAutomaticDeletes="True" OnNeedDataSource="RadGrid1_NeedDataSource" >
<PagerStyle Mode="Slider" />
<MasterTableView AutoGenerateColumns="false" DataKeyNames="TerritoryID" EditMode="EditForms" CommandItemDisplay="TopAndBottom"> <Columns> <telerik:GridEditCommandColumn> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn ReadOnly="true" HeaderText="TerritoryID" DataField="TerritoryID" UniqueName="TerritoryID" /> <telerik:GridBoundColumn ReadOnly="false" HeaderText="TerritoryDescription" DataField="TerritoryDescription" UniqueName="TerritoryDescription" /> <telerik:GridBoundColumn ReadOnly="false" HeaderText="RegionID" DataField="RegionID" UniqueName="RegionID" /> <telerik:GridButtonColumn CommandName="Delete" Text="Delete"> </telerik:GridButtonColumn> </Columns> <EditFormSettings EditFormType="Template"> <EditColumn UniqueName="EditCommandColumn1"> </EditColumn> <FormTemplate> <table id="Table2" cellspacing="2" cellpadding="1" width="250" border="1" rules="none" style="border-collapse: collapse"> <tr> <td> <table id="Table3" cellspacing="1" cellpadding="1" width="250" border="0"> <tr><td> </td> </tr> <tr> <td> TerritoryID: </td> <td> <asp:TextBox ID="txtTerritoryID" MaxLength="5" Visible='<% # (Container as GridItem).OwnerTableView.IsItemInserted %>' runat="server"> </asp:TextBox> </td></tr>
<tr> <td>
TerritoryDescription: </td> <td> <asp:TextBox ID="txtTerritoryDescription" runat="server" Text='<%# Eval( "TerritoryDescription" ) %>'> </asp:TextBox></td> </tr> <tr> <td> RegionID: </td> <td> <asp:TextBox ID="txtRegionID" runat="server" Text='<%# Eval( "RegionID") %>' TabIndex="1"> </asp:TextBox> </td> </tr> </table> </td> </tr> <tr> <td colspan="2"> <b>Territory Info:</b> </td> </tr> <tr> <td align="right" colspan="2"> <asp:Button ID="btnUpdate" Text='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "Insert" : "Update" %>' runat="server" CommandName='<%# (Container as GridItem).OwnerTableView.IsItemInserted ? "PerformInsert" : "Update" %>'> </asp:Button> <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
</td> </tr> </table> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid></ItemTemplate> </telerik:RadPanelItem> </Items> </telerik:RadPanelItem>
<telerik:RadPanelItem Expanded="True" Text="Place lable"> <ItemTemplate>
<asp:Button ID="Button1" OnClick="nextButton_Click" runat="server" Text="Next" />
</ItemTemplate>
</telerik:RadPanelItem>
<telerik:RadPanelItem Expanded="True" Text="Place XYZ">
<ItemTemplate><telerik:RadGrid ID="RadGrid1" runat="server">
</telerik:RadGrid></ItemTemplate> </telerik:RadPanelItem></Items></telerik:RadPanelBar>
C#Code:-
public static DataTable dtTable;
//Declare a global SqlConnection SqlConnection
//public SqlConnection SqlConnection = new SqlConnection("Data Source=local;Initial Catalog=Northwind;User ID=**");
public static SqlConnection SqlConnection = new SqlConnection("server=.;database=Northwind;uid=sa;pwd=password");
//Declare a global SqlDataAdapter SqlDataAdapter
public SqlDataAdapter SqlDataAdapter = new SqlDataAdapter();
//Declare a global SqlCommand SqlCommand
public SqlCommand SqlCommand = new SqlCommand();
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
//Response.Write("Hai");
SqlDataAdapter dap = new SqlDataAdapter("select * from Territories", SqlConnection);
DataSet ds = new DataSet();
dap.Fill(ds, "Territories");
RadGrid1.DataSource = ds.Tables[0];
}
But I am getting following Error
Error:-
Error 2 The name 'RadGrid1' does not exist in the current context
Please any one can guide me in this regards.