or
function SetGridWidth(GridClientId, WidthClientId) {
var radGrid = $find(GridClientId);
var grdWidth = document.getElementById(WidthClientId);
if (grdWidth.value > 2000) {
grdWidth.value = 2000;
} if (radGrid) {
radGrid.get_element().style.width = grdWidth.value + "px";
radGrid.repaint();
}
}
Thank You
Tracy
<Windows><telerik:RadWindow ID="rw_confirm_client" Modal="true" Behaviors="None" VisibleStatusbar="false" runat="server" CssClass="RwConfirmacion" VisibleTitlebar="false" Height="10" Width="10"><ContentTemplate><div class="BoxConfirmationContent"><img src="../App_Themes/Opa.Tema/Imagenes/Pregunta.png" id="Img3" class="ImgNotifcacion" runat="server" /><table class="TbMensajeConfirmacion"> <tr><td class="botoncerrarmensajero"><asp:LinkButton href="#" runat="server" ID="LinkButton2" CssClass="linkcerrar" OnClientClick='closeCustomConfirmClient();'>X</asp:LinkButton></td></tr><tr><td class="textomensaje"><asp:Label ID="Label1" runat="server">Aca va el texto del mensaje</asp:Label></td></tr><tr><td class="botoncerrarmensajero"><telerik:RadButton runat="server" ID="RadButtonConfirmClient" CssClass="BtConfirmacion" CausesValidation="false" Text="OK"><Image ImageUrl="../App_Themes/Opa.Tema/Imagenes/NegroTotal.png" IsBackgroundImage="true" /></telerik:RadButton><telerik:RadButton runat="server" ID="RadButtonCancelClient" CssClass="BtConfirmacion" CausesValidation="false" Text="Cancelar" OnClientClick="closeCustomConfirmClient();"><Image ImageUrl="../App_Themes/Opa.Tema/Imagenes/NegroTotal.png" IsBackgroundImage="true" /></telerik:RadButton></td></tr></table></div></ContentTemplate></telerik:RadWindow></Windows>var fireConfirm = true; function OnClientClicked(button, args) { var callBackFunction = Function.createDelegate(button, function (argument) { if (fireConfirm && argument) { this.set_autoPostBack(true); fireConfirm = false; this.click(); } }); if (fireConfirm) { button.set_autoPostBack(false); var text = "¿Has revisado ya?, si es asi ¿Estas seguro de llevar a cabo esta acción?"; var oWnd = radopen(null, 'rw_confirm_client'); var X = document.body.clientWidth - 400; var Y = 150; oWnd.MoveTo(X, Y); var button = document.getElementById("<%=RadButtonConfirmClient.ClientID %>").onclick = callBackFunction; var text = document.getElementById("<%=Label1.ClientID %>").innerText = text; } }<tr id="trCloseDate" runat="server" visible='<%# Bind(!"j") %>'><telerik:RadListBox ID="StatusListBoxSource" runat="server" AllowTransfer="True" DataSourceID="StatusDataSource" DataTextField="Description" DataValueField="StatusId" TransferToID="StatusListBoxTarget" Height="240px" Width="150px">
</telerik:RadListBox>
<telerik:RadListBox ID="StatusListBoxTarget" runat="server" Height="240px" Width="150px"></telerik:RadListBox><telerik:RadButton ID="DiagnoticStatusButton" runat="server" Text="Apply" AutoPostBack="True"
OnClick="DiagnoticStatusButton_Click">
</telerik:RadButton><asp:Label ID="DiagnosticStatusLabel" runat="server" Text=""></asp:Label><telerik:AjaxSetting AjaxControlID="DiagnoticStatusButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="DiagnosticStatusLabel" /> </UpdatedControls> </telerik:AjaxSetting> protected void DiagnoticStatusButton_Click ( object sender, EventArgs e ) { ED.GenericResponse GR = new ED.GenericResponse (); List<String> IssueList = new List<String> (); List<Byte> StatusIdList = new List<Byte> (); var q = ( from si in this.StatusListBoxTarget.Items select si.Value ).Distinct (); foreach ( String item in q ) { StatusIdList.Add ( Byte.Parse ( item ) ); } try { using ( EDG.GroupsDataContext ctx = new EDG.GroupsDataContext () ) { Int32 EffectedRows = ctx.AddDevicesByCriteria ( this.GroupId, DateTime.Now.AddDays ( -1 ).Date, StatusIdList, IssueList ); this.DiagnosticStatusLabel.Text = String.Format ( "{0} devices added", EffectedRows ); } } catch ( Exception Ex ) { Logger.ErrorException ( Ex.Message, Ex ); this.DiagnosticStatusLabel.Text = "There was an error adding from diagnostic status"; } }<GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="Title" FormatString = "" HeaderText=""/> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="Title" SortOrder="Ascending"> </telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions>
.RadScheduler .rsTimelineView .rsWrap, .RadScheduler .rsTimelineView .rsApt, .RadScheduler .rsTimelineView .rsAptOut, .RadScheduler .rsTimelineView .rsAptIn, .RadScheduler .rsTimelineView .rsAptMid, .RadScheduler .rsTimelineView .rsAptContent { position: static !important; height: auto !important; } .RadScheduler .rsTimelineView .rsWrap { float:left; overflow: inherit; font-size: 0; line-height: 0; }<telerik:RadComboBox ID="SpecialRadComboBox" runat="server" Skin="Office2007" AllowCustomText="False" MarkFirstMatch="True" ShowWhileLoading="True" AppendDataBoundItems="True" Width="450px" DropDownWidth="450px" TabIndex="7" SelectAllTextEvent="None" onclientselectedindexchanged="ProcessInstructions">
CSS:.rcbInputCell INPUT.rcbInput { cursor: default; }
div.RadComboBoxDropDown li { white-space:nowrap; width:450px !important; }
We tried this in firefox and it shows scroll bars and ignores the width set to the combobox. It resizes the RadComboBox
to the length of the rcbInput.
IE8/10 - displays the combobox but truncates the text.
Please advice.
Thanks
<telerik:RadGrid ID="_grdExisting" runat="server"AutoGenerateColumns="False" CellSpacing="0" GridLines="None"><HeaderStyle ForeColor="White" BackColor="Black" HorizontalAlign="Center" /><MultiHeaderItemStyle BackColor="Green" ForeColor="Yellow" /><MasterTableView DataKeyNames="BoardReportID"><GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="ASI_ESI" FormatString="{0}"></telerik:GridGroupByField> </SelectFields> <SelectFields> <telerik:GridGroupByField FieldName="BoardReportDate" FormatString="{0:D}"></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ASI_ESI" SortOrder="Ascending"></telerik:GridGroupByField> </GroupByFields> <GroupByFields> <telerik:GridGroupByField FieldName="BoardReportDate" SortOrder="Descending" FormatString="{0:D}"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression></GroupByExpressions> <GroupHeaderTemplate> <asp:Label runat="server" ID="Label2" Text='<%# DirectCast(Container, GridGroupHeaderItem).AggregatesValues("ASI_ESI") & "SI" %>' Visible='<%# ((DirectCast(Container, GridGroupHeaderItem).AggregatesValues("ASI_ESI")) IsNot Nothing)%>'> </asp:Label> <asp:Label runat="server" ID="Label1" Text='<%# DirectCast(Container, GridGroupHeaderItem).AggregatesValues("BoardReportDate") %>' Visible='<%# ((DirectCast(Container, GridGroupHeaderItem).AggregatesValues("BoardReportDate")) IsNot Nothing)%>'> </asp:Label></GroupHeaderTemplate><Columns> <telerik:GridHyperLinkColumn DataTextField="BoardReportDesc" ItemStyle-HorizontalAlign="Left" UniqueName="NonComplianceCount" HeaderStyle-Font-Bold="false" HeaderStyle-Wrap="false" DataNavigateUrlFields="ReportLocation" DataNavigateUrlFormatString="Reports/{0}" HeaderStyle-Width="150px" HeaderText="Policyholder Board Reporting" > <ItemStyle Wrap="True" Font-Underline="true"/> </telerik:GridHyperLinkColumn> <telerik:GridButtonColumn ConfirmText="Delete this product?" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn1"> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle> </telerik:GridButtonColumn></Columns></MasterTableView></telerik:RadGrid>