<div id="divList" runat="server" style="width: 100%; height: 505px;"> <telerik:RadGrid ID = "dgList" runat="server" AllowMultiRowSelection="True" Skin = "XXX" CellSpacing="0" CellPadding="0" BorderStyle="Solid" BorderWidth="0px" Width="100%" Height="510px" AutoGenerateColumns="False" GridLines="None" AllowSorting = "True" ImagesPath="~/Skins/XXX/Grid" OnItemDataBound="dgList_ItemDataBound" OnSortCommand = "dgList_SortCommand" HeaderStyle-Height = "30px" EnableEmbeddedSkins="False"> <ClientSettings> <Scrolling AllowScroll = "true" UseStaticHeaders = "true" /> <Selecting AllowRowSelect = "true"/> <ClientEvents OnRowSelected="RowSelected" OnRowDeselected="RowDeSelected" /> </ClientSettings> <HeaderStyle Font-Underline="False" Height="30px" /> <ItemStyle Wrap = "true" /> <MasterTableView TableLayout="Fixed" AllowNaturalSort = "true" AllowCustomSorting="true" ShowHeadersWhenNoRecords="true" NoMasterRecordsText="No details found."> <Columns> <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" > <HeaderStyle Width="3%"/> <ItemStyle HorizontalAlign="Center" /> </telerik:GridClientSelectColumn> <telerik:GridBoundColumn UniqueName = "ID" DataField = "ID" HeaderText = "ID" Display = "false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "Details" DataField = "Details" HeaderText = "Description" HeaderStyle-Width = "13%" SortExpression = "Details"> <HeaderStyle HorizontalAlign = "Center"/> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "VersionID" DataField = "VersionID" HeaderText = "Version" HeaderStyle-Width = "7%" SortExpression = "VersionID"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "ContentID" DataField = "ContentID" HeaderText = "ContentType" HeaderStyle-Width = "12%" SortExpression = "ContentID"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "PublishedDate" DataField = "PublishedDate" HeaderText = "Published" SortExpression = "PublishedDate" HeaderStyle-Width = "7%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "PlatformID" DataField = "PlatformID" HeaderText = "Platform" SortExpression = "PlatformID" HeaderStyle-Width = "10%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridButtonColumn UniqueName = "btnDetails" ButtonType="ImageButton" ImageUrl="~/Images/info.png" HeaderText = "Details" Text = "Details" HeaderStyle-Width = "5%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle HorizontalAlign = "Center" Height = "100%" CssClass = "RadGridRow"/> </telerik:GridButtonColumn> <telerik:GridBoundColumn UniqueName = "Ob" DataField = "Ob" HeaderText = "Obsolete" SortExpression = "Ob" HeaderStyle-Width = "7%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Center" CssClass = "RadGridRow" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "Size" DataField = "size" HeaderText = "Size[KB]" SortExpression = "size" HeaderStyle-Width = "6%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "Name" DataField = "Name" HeaderText = "FileName" SortExpression = "Name" ItemStyle-Wrap = "true" HeaderStyle-Width = "16%"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "false" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName = "Collection" DataField = "Collection" HeaderText = "CollectionName" SortExpression = "Collection" ItemStyle-Wrap = "true" HeaderStyle-Width = "0%" Display = "false"> <HeaderStyle HorizontalAlign = "Center" /> <ItemStyle Wrap = "true" Height = "100%" HorizontalAlign = "Left" CssClass = "RadGridRow"/> </telerik:GridBoundColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div>Hi,
I have needs to make RadGrid scroll Horizontally, here is my code:
RadGrid1.Width = Unit.Percentage(100); RadGrid1.MasterTableView.Width = Unit.Pixel(2100); RadGrid1.ClientSettings.Scrolling.AllowScroll = true; 
SELECT CAST( ( CAST(10549 AS FLOAT) / CAST(93020 AS FLOAT) * 100 ) AS DECIMAL (10,2))AS BobsPerAliceBobsPerAlice11.34<telerik:GridCalculatedColumn DataType="System.Double" HeaderText="Bobs" UniqueName="Bobs" DataFields="Bobs, Alice" Expression="{0} / {1} * 100" FooterText="Bobs / Alice: " Aggregate="Sum"></telerik:GridCalculatedColumn>Bobs000
... Bobs / Alice: 0
<
head runat="server">
<title></title>
<link href="CustomSkins/FormDecorator.Forest.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="radskinMgr" runat="server" ShowChooser="true"></telerik:RadSkinManager>
<telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="All" EnableEmbeddedSkins="false" />
<br /><br />
<h2>This is a test page for new styles and preferences - COMING SOON IN 2011!!</h2>
<hr />
<h1>ODE STYLES</h1>
<h1 class="announcement">TEXT Test for H1 - ODE Class ANNOUNCEMENT</h1>
<h2 class="sidebar">TEXT Test for H2 - ODE Class SIDEBAR</h2>
<h3 class="odehilite">TEXT Test for H3 - ODE Class ODEHILITE</h3>
<b class="small">TEXT Test for ODE Class SMALL</b><br />
<b class="larger">TEXT Test for ODE Class LARGER</b><br />
<b class="largest">TEXT Test for ODE Class LARGEST</b>
<h4>Text for H4</h4>
</div>
</form>
</body>
I seem to be unable to get the OnImageChanged server-side event to fire ... tried with an empty project with default.aspx content:
<div> <telerik:RadImageEditor ID="RadImageEditor1" runat="server" OnImageChanged="RadImageEditor1_ImageChanged" ImageUrl="~/images/160004.jpg"> </telerik:RadImageEditor> <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><telerik:RadButton ID="RadButton1" runat="server" Text="PostBack" AutoPostBack="true"> </telerik:RadButton> </div>
protected void RadImageEditor1_ImageChanged(object sender, Telerik.Web.UI.ImageEditorEventArgs args) { Label1.Text = System.DateTime.Now.ToString(); }It seems the Label's text never gets updated ...
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings><telerik:AjaxSetting AjaxControlID="LnkGrabar"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="GrdDetalle" /> <telerik:AjaxUpdatedControl ControlID="TxtFecha" /> <telerik:AjaxUpdatedControl ControlID="TxtProducto" /> <telerik:AjaxUpdatedControl ControlID="TxtOperacion" /> <telerik:AjaxUpdatedControl ControlID="TxtCanastas" /> <telerik:AjaxUpdatedControl ControlID="TxtBines" /> <telerik:AjaxUpdatedControl ControlID="TxtLbsNetas" /> <telerik:AjaxUpdatedControl ControlID="CboProducto" /> <telerik:AjaxUpdatedControl ControlID="CboOperacion" /> <telerik:AjaxUpdatedControl ControlID="TxtObservacion" /> <telerik:AjaxUpdatedControl ControlID="TxtBoleta" /> <telerik:AjaxUpdatedControl ControlID="LblMensaje" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager>
and I open a popup windowd with this:
Dim sb As New StringBuilder
sb.Append("<script>")
sb.Append("window.open('http://msdn.microsoft.com', '', '');")
sb.Append("</scri")
sb.Append("pt>")
ClientScript.RegisterStartupScript(Me.GetType, "test", sb.ToString())
but the page dont open
only when i remove the telerik:RadAjaxManager it's open
please help me!!
thanks in advance