| ScriptManager.RegisterStartupScript(this.Page, typeof (string),"start", |
| string.Format( |
| "mainTree = $find('{0}');window.ChangeDataContents(mainTree.get_selectedNode());", |
| this.RadTreeView1.ClientID), true); |
| <script type="text/javascript"> |
| //<![CDATA[ |
| mainTree = $find('ctl00_cph2_RadTreeView1');window.ChangeDataContents(mainTree.get_selectedNode());//]]> |
| </script> |
| <script type="text/javascript"> |
| //<![CDATA[ |
| Telerik.Web.UI.RadTreeView._preInitialize("ctl00_cph2_RadTreeView1","0"); |
| theFormtheForm.oldSubmit = theForm.submit; |
| theForm.submit = WebForm_SaveScrollPositionSubmit; |
| <telerik:RadGrid ID="Foo" runat="server" |
| Width="275px" Height="400px" |
| AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" |
| AllowMultiRowSelection="true" |
| AutoGenerateColumns="false" ShowHeader="true" ShowFooter="false" |
| OnPreRender="Foo_PreRender" > |
| <MasterTableView DataKeyNames="Key" ShowHeadersWhenNoRecords="true" TableLayout="fixed"> |
| <Columns> |
| <telerik:GridClientSelectColumn> |
| <ItemStyle Width="30px" /> |
| <HeaderStyle Width="30px" /> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridBoundColumn DataField="Description" HeaderText="Display Choice" UniqueName="Description"> |
| <ItemStyle Width="220px" /> |
| <HeaderStyle Width="220px" /> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings ApplyStylesOnClient="true" > |
| <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| foreach ( MyCustomDisplayItem displayItem in this.CurrentSelections ) |
| { |
| foreach ( GridItem item in this.Foo.MasterTableView.Items ) |
| { |
| GridDataItem dataItem = item as GridDataItem; |
| if ( dataItem == null ) |
| continue; |
| string key = dataItem.OwnerTableView.DataKeyValues[dataItem.ItemIndex]["Key"].ToString(); |
| if ( string.CompareOrdinal( key, displayItem.Key ) != 0 ) |
| continue; |
| dataItem.Selected = true; |
| break; |
| } |
| } |
| <telerik:GridDropDownColumn DropDownControlType="DropDownList" CurrentFilterFunction="NoFilter" DataField="RoleId" DataSourceID="RoleDataSource1" EnableEmptyListItem="True" FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Role" ListTextField="Name" ListValueField="Id" SortExpression="Name" UniqueName="column1"> |
| </telerik:GridDropDownColumn> |
I don't want to use the contenturl since it treats it like an iframe. I'm trying to add an object to the rightpane - but it causes the splitters to not move and resize.
RadPane RightPane = new RadPane();
RightPane.Controls.Add(ParseControl(
"<object id=\"iobject\" data=\"http://www.google.com\" width=\"100%\" height=\"385\" type=\"text/html\" />"));
Splitter2.Items.Add(RightPane);
Hi,
I'm creating a custom sharepoint control (ascx) which contains RadEditor control, in all the 3 modes.
This page also has some other control with submit button, apart from the page submit button.
If I enter content in Design or HTML mode and submit, the text gets saved correctly in Internet Explorer.
However, if I add any content in HTML mode and submit, the content disappears in FireFox, but works fine in design mode.
So how can I fix this?
Thanx in Advance.