Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
96 views

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.

 

 

 

dipak
Top achievements
Rank 1
 asked on 09 Jun 2018
4 answers
318 views
Hello,

I am working on a project with a RadSplitter and a RadMenu.
The RadMenu is located inside a RadPane.

When I open the Drop-Down menu, it is hidden by the RadPane.
How can I get the RadMenu to appear above the RadPane?

I have used the code example from here

My code of the RadMenu: 
         <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>


p.s.
I have attached the following video that shows the problem:
http://youtu.be/nMVddEnjNgI

Thanks,
Daniel.
Michael
Top achievements
Rank 1
 answered on 09 Jun 2018
2 answers
1.0K+ views

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>
bdrennen
Top achievements
Rank 1
 answered on 08 Jun 2018
2 answers
165 views
Hi there,

I wanted to load context menus based on dynamic conditions.
For example
1) In scheduler If there are some appointments in some specific slot, there should be option like "Cancel All Appointments". And If there is no appointment for that slot, then there should be option like "Add New Appointment" as Context Menus.
2) Suppose I set some disabled slot for some slots in scheduler by cssClass and now I wanted to show context menu option "Make Available" only to those slots?

Is there any way I achieve this functionality? any reply in short time will be appreciated.

Thanks in advance,

Mangesh
Pankaj
Top achievements
Rank 1
 answered on 08 Jun 2018
11 answers
430 views

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. 

Aung
Top achievements
Rank 1
 answered on 08 Jun 2018
0 answers
103 views

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

Yano
Top achievements
Rank 1
 asked on 08 Jun 2018
3 answers
264 views
I am getting duplicate paging (page next, page previous etc) when the Grid is setup with Bootstrap them and Lightweight render. (see attached screen capture) Any ideas?
insomnia
Top achievements
Rank 2
Iron
 answered on 08 Jun 2018
2 answers
214 views

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.

Raghu
Top achievements
Rank 1
 answered on 08 Jun 2018
0 answers
72 views

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

 

Johan
Top achievements
Rank 1
 asked on 08 Jun 2018
2 answers
7.3K+ views
Hi,
I have a radgrid with several rows generated from a sql query. I want to update those rows with different statuses (update status column in a database) dependent on the result meaning that rows should be updated with different statuses. Rows in radgrid are selectable (via checkbox) and three buttons triggers three different types of updates (status update). I will try to explain scenario with pseudo code below.

Select rows you will update to status 1
Button1 clicked
{
    Update status = 1 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}
Select rows you will update to status 2
Button2 clicked
{
    Update status = 2 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}
Select rows you will update to status 3
Button3 clicked
{
    Update status = 3 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}

I'm using C# and asp.net so kindly translate above pseudo code to C# code.

Any kind of help/advice is highly appreciated!

Rgds,
Jesper
Sriram
Top achievements
Rank 1
 answered on 07 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?