Hello i need to create from 1 to many new RadGrids based on the selection of an item/s from a static RadGrid, ie create a new "on the fly" RadGrid for every row item selected from a static RadGrid. I thought that by giving each new RadGrid a new RadGrid.ID, see below, that it might create a new RadGrid and that a new RadGrid would appear under the previously created RadGrids, ie appending new RadGrids under the previous created "otf" RadGrids. But i think i'm getting the understanding that i would need to create all of the potential new "otf" RadGrids in advance and manage the visibiliy of each one as needed. For example i would have to create a list of RadGrids in advance like RadGrid radgrid1; RadGrid radgrid2; RadGrid radgrid3; ......ect. Or is there a way to actually create a new RadGrid really genuinely from scratch on the fly?
private void DefineGridStructure2()
{
string txt = "TABLE1";
CustomQuery.
GetInfoSchema gis = new CustomQuery.GetInfoSchema();
string cs = "Data Source=DEVSQL.fhfb.gov;Initial Catalog=CustomQuery;Integrated Security=True";
DataTable dt = gis.GetTableInfo(cs, txt);
RadGrid grid = new RadGrid();
string sgridID="grid"+lblMessage.Text;
grid.ID = sgridID;
grid.AutoGenerateColumns =
true;
grid.DataSource = dt;
grid.DataBind();
Master.FindControl(
"mainContain").Controls.Add(grid);
string chktxt = lblMessage.Text;
}
<
telerik:RadGrid runat="server" ID="radViews" AutoGenerateDeleteColumn="True"
AutoGenerateEditColumn="True" GridLines="None" AllowAutomaticUpdates="true"
Skin="Office2007" OnItemCommand="radViews_ItemCommand" >
<
HeaderContextMenu EnableTheming="True">
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</
HeaderContextMenu>
<
MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Top">
<
RowIndicatorColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
RowIndicatorColumn>
<
ExpandCollapseColumn>
<
HeaderStyle Width="20px"></HeaderStyle>
</
ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID"
SortExpression="ID" UniqueName="ID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="Text" HeaderText="Text"
SortExpression="Text" UniqueName="Text">
</telerik:GridBoundColumn>
</Columns>
</
MasterTableView>
<
FilterMenu EnableTheming="True">
<
CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</
FilterMenu>
</telerik:RadGrid>
protected
void radViews_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
if (e.CommandName == RadGrid.InitInsertCommandName) //"Add new" button clicked
{
e.Canceled =
true;
//Prepare an IDictionary with the predefined values
System.Collections.Specialized.
ListDictionary newValues = new System.Collections.Specialized.ListDictionary();
newValues[
"Tag"] = user.UserName;
//Insert the item and rebind
e.Item.OwnerTableView.InsertItem(newValues);
}
// Pass to MVP
if (e.CommandName == RadGrid.DeleteCommandName)
{
this.OnDeleteView(this, e);
}
if (e.CommandName == RadGrid.EditCommandName)
{
"Go Go Gadget editable Grid!!!!"
}
}
| <telerik:RadMenu OnClientMouseOut="Mmouseout" OnClientMouseOver="Mmouseover" OnItemClick="RadMenu1_OnItemClick" |
| OnClientItemClicked="RadMenu1_OnClientItemClicked" ID="RadMenuLine" ExpandAnimation-Type="InOutBack" |
| CollapseAnimation-Type="InQuad" BorderColor="Brown" |
| Skin="WebBlue" runat="server" Font-Size="Small" |
| Width="100%" commandName="MenuCommand" > |
| <Items> |
| <telerik:RadMenuItem GroupSettings-ExpandDirection="Up" runat="server" Text="View" |
| BackColor="Yellow" ForeColor="Brown" Font-Bold="true" Style="font-weight: bold"> |
| <Items> |
| <telerik:RadMenuItem runat="server" Text="Detail" CssClass="MenuItemLeft" BackColor="Yellow" |
| ForeColor="Blue"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Summary" ForeColor="Blue"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Print" NavigateUrl="~/mybodyscience/MBS_Reports/iqReport_Display.aspx" |
| BackColor="Yellow" ForeColor="Blue" Target="_blank"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Add Equipment" commandName="MAddCommand" |
| BackColor="Yellow" ForeColor="Brown" Font-Bold="true" > |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" Text="Refresh" |
| BackColor="Yellow" ForeColor="Brown" Font-Bold="true" > |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem runat="server" id="Mhelp" Text="Help" commandName="MhelpCommand" |
| BackColor="Yellow" ForeColor="Brown" Font-Bold="true" Value="88"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenu> |
| function OnClientNodeDropping(sender, args) | ||||||||||
| { | ||||||||||
| var editor = $find("<%=RadEditor1.ClientID%>"); | ||||||||||
| editor.setFocus(); | ||||||||||
| editor.pasteHtml("test"); | ||||||||||
| } I have tried the the one more code
But it also not work it gives error as '"Incompatible markup pointers for this opertion' |
||||||||||

| C# as codebehind |
| ... |
| Rot.ItemWidth = Unit.Pixel(300); |
| Rot.ItemHeight = Unit.Pixel(200); |
| Rot.ItemTemplate =new RotatorTemplate() ; |
| ... |
| public class RotatorTemplate : ITemplate |
| { |
| #region ITemplate Membres |
| public void InstantiateIn(System.Web.UI.Control container) |
| { |
| LiteralControl lc1 = new LiteralControl("<%# Container.DataItem %>"); |
| container.Controls.Add(lc1); |
| } |
| #endregion |
| } |
| DialogDefinition imageManager4Editor = new DialogDefinition(typeof(ImageManagerDialog), ImageManagerParameters); |
| imageManager4Editor.ClientCallbackFunction = "ImageManagerFunction"; |
| imageManager4Editor.Width = Unit.Pixel(694); |
| imageManager4Editor.Height = Unit.Pixel(440); |
| DialogOpener1.DialogDefinitions.Add("ImageManager4Editor", imageManager4Editor); |
| function ImageManagerFunction(sender, args) |
| { |
| var commandName = args.get_commandName(); |
| var value = args.get_value(); |
| var src = value.src; // works |
| var height = value.height; // works |
| var width = value.width; // works |
| var border = value.? // |
| ... |
| } |

| rgAuthorizations.Columns.FindByDataField("HExports").HeaderStyle.Width = New Unit(20, UnitType.Point) |
| System.SystemException: Unknown length unit 'ptpx' |
| at Telerik.Web.Apoc.ApocDriver.FireApocError(String message) |
| at Telerik.Web.Apoc.DataTypes.FixedLength.Convert(Double dvalue, String unit) |
| at Telerik.Web.Apoc.DataTypes.FixedLength..ctor(Double numUnits, String units) |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parsePrimaryExpr() |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parseUnaryExpr() |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parseMultiplicativeExpr() |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parseAdditiveExpr() |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parseProperty() |
| at Telerik.Web.Apoc.Fo.Expr.PropertyParser.parse(String expr, PropertyInfo propInfo) |
| at Telerik.Web.Apoc.Fo.PropertyMaker.Make(PropertyList propertyList, String value, FObj fo) |
| at Telerik.Web.Apoc.Fo.PropertyListBuilder.MakeList(String ns, String elementName, Attributes attributes, FObj parentFO) |
| at Telerik.Web.Apoc.Fo.FOTreeBuilder.StartElement(String uri, String localName, Attributes attlist) |
| at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader) |