function OnClientBeforeShow(sender, args) {
setTimeout(function () {
var active = Telerik.Web.UI.RadToolTip.getCurrent();
var browserWidth = $telerik.$(window).width();
var browserHeight = $telerik.$(window).height();
var width = (Math.ceil(browserWidth * 50 / 100));
active.set_width(width);
active.get_popupElement().style.width = width + "px";
}, 0);
}
I have used this above mentioned script for RadToolTipManager control in "OnClientBeforeShow" event, it working fine for 1366x768 resolution but if i change the resolution, it is breaking. I need to have dynamic tooltip which will resize according to data it is populated. And please suggest how to adjust font size of text in a tooltip.
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"> <script type="text/javascript"> function itemOpened(s, e) { if ($telerik.isIE8) { // Fix an IE 8 bug that causes the list bullets to disappear (standards mode only) $telerik.$("li", e.get_item().get_element()) .each(function () { this.style.cssText = this.style.cssText; }); } } </script> <script id="telerikClientEvents2" type="text/javascript"> function RadMenu_MouseOut(sender, args) { if (args.get_item().get_parent() == sender) { sender.set_clicked(false); } } function OnClientItemClicking(sender, args) { if (args.get_item().get_isOpen() == true) { args.set_cancel(true); args.get_item().close(); } } function AutoResubmit() { document.forms["form1"].submit(); } function openMenu() { var men = $find("<%=RadMenu1.ClientID%>"); var item = men.findItemByValue("t1"); item.open(); } function openMenu_new(itemText) { $find("RadMenu1").findItemByValue(itemText).open(); } </script> </telerik:RadScriptBlock> <telerik:RadMenu ID="RadMenu1" runat="server" Style="top: 0px; left: -2px; height: 35px; z-index: 1000" Skin="MenuFilter" Flow="Vertical" ClickToOpen="true" OnClientItemOpened="itemOpened" OnClientItemClicking="OnClientItemClicking" OnClientMouseOut="RadMenu_MouseOut" EnableShadows="true" EnableEmbeddedSkins="false"> <Items> <telerik:RadMenuItem runat="server" PostBack="true" Text="RadMenuItem1" Value="t1" CssClass="btn btn-primary btn-menu-filter-size"> <ContentTemplate> <div id="Div1" class="Wrapper"> <asp:Label ID="Label1" runat="server" Text="AAAAAAAAAAAAA" Font-Size="Large"></asp:Label> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="500px" Width="500px"></telerik:RadAjaxPanel> </div> </ContentTemplate> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true" Value="Separator"></telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="RadMenuItem2" Value="t2" CssClass="btn btn-primary btn-menu-filter-size"> <ContentTemplate> <div id="Div2" class="Wrapper"> <asp:Label ID="Label2" runat="server" Text="BBBBBBBBBBBBBB" Font-Size="Large"></asp:Label> <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server" Height="500px" Width="500px"></telerik:RadAjaxPanel> </div> </ContentTemplate> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="true" Value="Separator"></telerik:RadMenuItem> <telerik:RadMenuItem runat="server" Text="RadMenuItem3" Value="t3" CssClass="btn btn-primary btn-menu-filter-size"> <ContentTemplate> <div id="Div3" class="Wrapper"> <asp:Label ID="Label3" runat="server" Text="CCCCCCCCCCCCCCC" Font-Size="Large"></asp:Label> <telerik:RadAjaxPanel ID="RadAjaxPanel3" runat="server" Height="500px" Width="500px"> <telerik:RadGrid ID="RadGrid1" runat="server" ShowGroupPanel="true"> <ClientSettings AllowDragToGroup ="true"></ClientSettings> </telerik:RadGrid> </telerik:RadAjaxPanel> </div> </ContentTemplate> </telerik:RadMenuItem> </Items> </telerik:RadMenu>Is there a way to control how much space is between lines with checkboxes on them? I have a form with several checkboxes, and I'd like to reduce how much whitespace is between the lines. Each line is terminated with a <br />.
<asp:Panel ID="Panel_Checkboxes" runat="server" Visible="false" CssClass="insetPanel"> <telerik:RadCheckBox ID="RadCheckBox_Details" runat="server" AutoPostBack="true" Text="Details"></telerik:RadCheckBox><br /> <telerik:RadCheckBox ID="RadCheckBox_Buttons" runat="server" AutoPostBack="true" Text="Buttons"></telerik:RadCheckBox><br /> <telerik:RadCheckBox ID="RadCheckBox_Zippers" runat="server" AutoPostBack="true" Text="Zippers"></telerik:RadCheckBox></asp:Panel>When I generate pdf from , it generates SECURED pdf by default. So when I check the security of the pdf, it says Security Method = Password .
Below are my export settings:
<telerik:RadEditor ID="dummyradEditorExport" ContentFilters="DefaultFilters,PdfExportFilter" ExportSettings-Pdf-UserPassword=""
Height="500" Skin="Default" Width="685" runat="server" ImageManager-EnableImageEditor="true" NewLineMode="Div">
<ExportSettings FileName="ExporttoPDF" OpenInNewWindow="true" Pdf-PageBottomMargin="1.0 cm"
Pdf-PageLeftMargin="1.5 cm" Pdf-PageRightMargin="1.5 cm" Pdf-PageTopMargin="1.0 cm"
Pdf-AllowCopy="true" Pdf-AllowPrinting="true" Pdf-AllowModify="true" >
</ExportSettings>
Please suggest why its doing this because my users are not able to open this pdf on iOS and Edge.
Hello, i have RadCombobox with ItemTemplate (Icon + Text):
<telerik:RadComboBox ID="rcCombo" runat="server" Width="500" > <ItemTemplate> <table> <tr> <td> <span class='<%# DataBinder.Eval(Container.DataItem, "ICON") %>'> </span> </td> <td> <%# DataBinder.Eval(Container.DataItem, "TEXT") %> </td> </tr> </table> </ItemTemplate></telerik:RadComboBox>
and i made reorderig at first posision in Client via javascript
var combo = $find("<%= rcCombo.ClientID %>");var items = combo.get_items();combo.trackChanges();var comboItem = combo.findItemByValue('value');items.insert(0, comboItem);comboItem.highlight();combo.updateClientState();combo.commitChanges();
and after repositioning of comboitem ItemTemplate is not showing - no ICON only simple Text.
Do i need to create ClientItemTemplate for repositioned items or any recomendation?
thanks
Hello,
I have a radgrid which is bound with records from one tables. I want to bind radGantt chart in expanded grid row. Is it possible to display Gantt chart inside grid?
I have two tables, e.g. A & B
I am bindding A to grid, and I want to show it's relevant tasks with statuses in ganttchart when expand grid row. I don't want any updates on ganttchart. It is just a view purpose. Also I am not caring for predessor and successors.
Please let me know if such requirement is possible or not. If not then suggest how can I implement this functionality using any other controls.
Hello,
The bug can best be described as the following:
When setting a radgrid datasource with an IEnumerable, filterexpressions behave not as expected.
Reproduce:
Create a radgrid with EnableLinqexpressions set to true, and set its datasource to an IEnumerable. Set a filter on a column. Check the filterexpression that is being generated. Notice the filterexpressions is NOT a valid linqexpression, but has the following format: "([CustomerID] LIKE '%ALFKI%')";
Now set the datasource to a list instead of an IEnumerable. Notice that suddenly the filterexpressions that is generated is different.
See also your Filterexpression documentation
Issue:
I have a requirement where i have to set an initial filter in a grid when opening the page. But we also have export buttons on that page that use the grids filterexpression to filter a dataset for the export. This no longer worked because the filterexpression was no longer a valid linq expression. In my opinion this behavior is not very intuitive, and i could not find any documentation about it.
Regards,
Johan