Hello Everyone,
I Have a problem regarding a particular Grid Column.
I have a grid with many column. One Column is called "Description". In this column there is a posibility that the string is too long that it would wrap.
I already look this tutorial: "No wrap for grid cell content" and my column did not wrap.
I also added
<style type="text/css">
.MasterTable_WebBlue td
{
overflow:hidden;
}
.GridHeader_WebBlue
{
overflow: hidden;
}
</style>
My problem now is that i need to display an Ellipsis "..." on that column only.
I need to display ... before the string ends.
public partial class Home : System.Web.UI.MasterPage { protected void Page_Init(object sender, EventArgs e) { RadTreeView m1 = new RadTreeView(); DynamicMenuBLL objDynMainMenu = new DynamicMenuBLL(); m1 = objDynMainMenu.GetMenuTree(); placeHolder.Controls.Add(m1); } protected void Page_Load(object sender, EventArgs e) { } }please give a solution.
Thank You.
<div style="width: 100%; height: 650px; overflow: auto; overflow-y: hidden"> <telerik:RadGrid ID="gvPjtMnt" runat="server" Height="550px" Width="99%" AutoGenerateColumns="false" BorderWidth="2px" BorderStyle="Solid" BackColor="White" AllowPaging="True" PagerStyle-AlwaysVisible="true" PageSize="20" AllowSorting="True" AllowFilteringByColumn="true" OnNeedDataSource="gvPjtMnt_OnNeedDataSource" OnItemCommand="gvPjtMnt_ItemCommand" OnItemCreated="gvPjtMnt_ItemCreated" OnItemDataBound="gvPjtMnt_ItemDataBound"> <HeaderStyle Height="20px" BackColor="#004000" Font-Size="8pt" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" BorderColor="White" BorderWidth="1px" /> <AlternatingItemStyle Font-Size="8pt" BackColor="#F5F5E9" HorizontalAlign="Center" BorderWidth="1px" BorderColor="White" /> <ItemStyle HorizontalAlign="Center" /> <ExportSettings ExportOnlyData="true" IgnorePaging="true" FileName="Project Management"> </ExportSettings> <MasterTableView GridLines="None" CommandItemDisplay="Top" DataKeyNames="ProjectId" HorizontalAlign="Center" AllowFilteringByColumn="true"> <CommandItemTemplate> <table style="width: 100%"> <tr> <td align="right" style="width: 78%"> <asp:LinkButton ID="lnkshwFilter" Text="ShowFilter" Font-Underline="true" ForeColor="MidnightBlue" runat="server" OnClientClick="return showFilterItem()" /> <asp:LinkButton ID="lnkhdFilter" Text="HideFilter" Font-Underline="true" ForeColor="MidnightBlue" runat="server" OnClientClick="return hideFilterItem()" /> </td> <td align="right" style="height: 10px;"> Total Records found: <asp:Label ID="lblTotRecCount" runat="server" Font-Bold="True" Font-Size="10pt" ForeColor="Black" Text="0"></asp:Label> </td> <td align="right"> <asp:LinkButton ID="lnkExportAll" Text="ExportAll" Font-Underline="true" ForeColor="MidnightBlue" runat="server" OnClick="ExportAll_Click" /> </td> <td align="right" style="width: 2%"> <asp:ImageButton ID="ExportToExcelButton" runat="server" ImageUrl="~/images/ExportToExcel.gif" ToolTip="Export to Excel" OnClick="ExportExcel_Click" /> </td> </tr> </table> </CommandItemTemplate> <Columns> ..... few columns here ............ </Columns> <ItemStyle ForeColor="#3C5F22" Font-Size="8pt" BackColor="White" BorderWidth="0px" BorderColor="White" /> <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" /> </MasterTableView> <ClientSettings AllowColumnsReorder="true"> <ClientEvents OnGridCreated="GridCreated" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> <Resizing AllowColumnResize="true" /> </ClientSettings> </telerik:RadGrid></div>function showFilterItem() { $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().showFilterItem(); document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'block'; document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'none'; return false;}function hideFilterItem() { document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkhdFilter').style.display = 'none'; document.getElementById('ctl00_PagePlaceholder_gvPjtMnt_ctl00_ctl02_ctl00_lnkshwFilter').style.display = 'block'; $find('<%=gvPjtMnt.ClientID %>').get_masterTableView().hideFilterItem(); return false;}function GridCreated(sender, args) { sender.get_masterTableView().hideFilterItem();}
Hi
I am using Ajaxmanage manger in my page .Below is the code
<telerik:RadAjaxManager runat="server">
<ajaxsettings>
<telerik:AjaxSetting AjaxControlID="btnContact">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="pnlContact" UpdatePanelHeight="" />
</updatedcontrols>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnDelete">
<updatedcontrols>
<telerik:AjaxUpdatedControl ControlID="btnDelete" UpdatePanelHeight="" />
<telerik:AjaxUpdatedControl ControlID="dgvContactList" UpdatePanelHeight="" />
</updatedcontrols>
</telerik:AjaxSetting>
</ajaxsettings>
</telerik:RadAjaxManager>
btnDelete has an OnClientClik function .it does not firing. btnDelete is inside the pnlContact panel.
<asp:Button ID="btnDelete" runat="server" CausesValidation="False" CssClass="sbttn"
TabIndex="19" Text="Delete" OnClientClick="return JF_ConfirmDelete('dgvContactList','hidContactRowCount');"
OnClick="btnDelete_Click" />
How can i call JF_ConfirmDelete function in OnClientClick. Please provide a solution as soon as possible
Thanks
.
Any help is greatly appreciated.
Aspx code:
<
telerik:RadMenu ID="USSRadMenu" runat="server" DataSourceID="USSsmd" Skin="">
</telerik:RadMenu>
<asp:SiteMapDataSource ID="USSsmd" runat="server" ShowStartingNode="false" SiteMapProvider="USSMenu" />
css that is NOT working:
.RadMenu
.rmGroup .RightArrow,
.RadMenu
.rmGroup .RightArrowDisabled
{
background-image: url(Images/RightArrow.gif) no-repeat rightright !important;
}
Sitemap example expecting to see right arrow to go to Level 2
<
siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<
siteMapNode url="Root#" title="" description="">
<
siteMapNode url="ContractAdmin#" title="ContractAdmin" description="" >
< siteMapNode url="~/ContractAdmin/Branding.aspx" title="Branding" description="" >
<
siteMapNode url="Level2#" title="Level 2" description="" />
</
siteMapNode>
</
siteMapNode>
<
siteMapNode url="" title="LogOut" description="" />
</
siteMapNode>
</
siteMap>