Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
132 views

Hi,

from Chrome version 78, when you group a column in the RadGrid, the grouping item displays the "X" button on a second row, making the item too high. Is there any fix for this? Attaching a screenshot below.

 

 

Peter Milchev
Telerik team
 answered on 28 Oct 2019
21 answers
1.2K+ views
Hi,

Recently I've ran into common "100% RadGrid height issue".
After reading many posts about this problem I tried to apply your solutions in my project, but no luck.

All solutions to problem with making RadGrid occupy 100% container height (I use RadSplitter Prometheus) with AllowScroll="true" and UseStaticHeaders="true" don't take into account usage of CommandItem...

With CommandItem turned off, grid occupies 100% height of a container - it's ok.
But width CommandItem turned on the bottom part of a grid gets clipped (approx. the height of a CommandItem). It's happening in all sample projects I've seen attached to other posts in this topic...

My situation is as follows:
1. I use RadGrid inside RadSplitter pane (both Prometheus). RadSplitter is set to occupy 100% of the browser window height and width (so it resizes with browser window).
2. RadGrid has AllowScroll = true, UseStaticHeaders = true, Paging turned on and CommandItem showing on top of the grid
3. I want the grid to occupy 100% of the pane it's in and resize with browser window (so that Pager is always on the bottom of the pane and scrolling content stretches accordingly). It's quite easy to achieve width CommandItem turned off, but as I said before, when turned on - the bottom part (Pager or the least row when content fit on one page) of the grid gets clipped...

How can I acheive this?
It's currently a showstopper for my project... The usage of CommandItem/Paging/Scrolling is crucial so I cannot turn off any of them.

Regards,
Piotr

PS. I tried to set HeightOffset for RadSplitter, but it seems that it doesnt help at all (no difference, neither with empty value nor with any other).
Dimo
Telerik team
 answered on 28 Oct 2019
1 answer
179 views
Hello,

Im experiencing an issue where I have an RadAutoCompleteBox on a RadDock and it functions properly when the RadDock remains in the default position, 

However, when I move the raddock out of the raddockzone it is in, the RadAutoCompleteBox acts as if there are no results, despite having results when I step through the code that fills its datasource. 

below is the snippet of code that fills the AutoCompleteBox Datasource

        protected void ddlDeviceType_ItemSelected(object sender, Telerik.Web.UI.DropDownListEventArgs e)
        {
            type = ddlDeviceType.SelectedText;

            cboDeviceAssign.Entries.Clear();
            cboDeviceAssign.DataSource = Devices;
            cboDeviceAssign.DataTextField = "Device";
            cboDeviceAssign.DataValueField = "Device";
            cboDeviceAssign.DataBind();
        }
Peter Milchev
Telerik team
 answered on 28 Oct 2019
41 answers
1.3K+ views
Does anyone know how to display a list of appointments (recurring specifically) in an SQL Reporting Services report?

Thanks!
RTA DEV
Top achievements
Rank 1
 answered on 28 Oct 2019
3 answers
394 views

Hi

I'm having trouble adding bold version of Calibri font to client export manager pdf setting. Here's what I'm using :

 

RadClientExportManager1.PdfSettings.Fonts.Add("Calibri", "Styles/Fonts/Calibri.ttf");
RadClientExportManager1.PdfSettings.Fonts.Add("Calibri Bold", "Styles/Fonts/CalibriBold.ttf");

 

When I export my element to pdf, parts of text that are not bold look fine, but bold parts fonts is changed to something else. What can I do to add Calibri Bold to pdf setting?

Thanks

Vessy
Telerik team
 answered on 25 Oct 2019
1 answer
238 views

Greetings,

I have the following situation which I hope you can help me with.

I have created a RadListBox control that shows icons only - no text. The purpose of this is to act like a menu. I am loading it manually by navigating through a dataset and creating RadListBoxItems, and then adding them to the RadListBox control (e.g.lstMenu.Items.Add(lbItem) ).  This works just fine.

 

I now want to add a RadToolTip to each RadListBoxItem, but cannot seem to get it to work.

I have tried the following:

            Dim item As New RadListBoxItem
            item.Value = dt.Rows(r).Item("MainMenuID")
            item.ImageUrl = String.Format("~/Images/{0}.png", iconName)
            item.Height = New Unit(32, UnitType.Pixel)
            item.Attributes.Add("tt", name)
            lstMenu.Items.Add(item)

            Dim tt As New RadToolTip
            tt.Text = name
            tt.TargetControlID = item.ClientID
            tt.IsClientID = True
            tt.Position = ToolTipPosition.MiddleRight
            tt.Animation = ToolTipAnimation.Fade
            tt.RelativeTo = ToolTipRelativeDisplay.Element
            tt.RenderInPageRoot = True
            tt.ShowEvent = ToolTipShowEvent.OnMouseOver
            tt.HideEvent = ToolTipHideEvent.LeaveTargetAndToolTip
            tt.AutoCloseDelay = 0
            tt.VisibleOnPageLoad = False

... but no tool tips appear over the list item.

I also tried the following using a RadToolTipManager control:

.aspx page:

<telerik:RadToolTipManager runat="server" ID="ttMgr" Position="MiddleRight" Animation="Fade" RelativeTo="Element"              RenderInPageRoot="true" ShowEvent="OnMouseOver" HideEvent="LeaveTargetAndToolTip" AutoCloseDelay="0"              ShowCallout="true" VisibleOnPageLoad="false" />

code behind

            Dim item As New RadListBoxItem
            item.Value = dt.Rows(r).Item("MainMenuID")
            item.ImageUrl = String.Format("~/Images/{0}.png", iconName)
            item.Height = New Unit(32, UnitType.Pixel)
            item.Attributes.Add("tt", name)
            lstMenu.Items.Add(item)

 

Private Sub lstMenu_ItemCreated(sender As Object, e As RadListBoxItemEventArgs) Handles lstMenu.ItemCreated

    ttMgr.TargetControls.Add(e.Item.ClientID, e.Item.Attributes.Item("tt"), True)

End Sub

 

... but again no tooltip.

Can anyone please help me as to where I'm going wrong?

 

 

Adam
Top achievements
Rank 1
 answered on 25 Oct 2019
3 answers
181 views

We have a page in our application that allows user to upload CSV data to our database.  The actual import portion (not the upload) can be quite lengthy depending on the number of records so I am trying to use a RadProgressArea to show progress.  However, when I added the RadProgressArea and RadProgressManager to my page, the FileUpload codebehind no longer runs.  The dialog box opens for the user to select a file, but then the Upload() method in the code behind no longer runs:

 

<button type="button" class="btn btn-alt3" id="btnOpen" visible="true" onclick="javascript:OpenFileDialog();" > <i class="icon s7-upload"></i> Upload</button>
 
    <button type="button" runat="server" class="btn btn-alt3" id="btnUpload" onclick="javascript:ShowLoadingPanel();" onserverclick="Upload" style="visibility:hidden" ></button>
 
         <asp:FileUpload id="FileUpload1" runat="server" style="visibility:hidden" />
 
    <asp:HiddenField runat="server" ID="importType" ClientIDMode="Static" />
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
     <telerik:RadProgressArea RenderMode="Lightweight" ID="RadProgressArea1" runat="server" Width="500px" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="PageScripts_Footer" runat="server">
    <script>
        $(document).ready(function () {
            var grid = $find("<%= grdImportData.ClientID %>");
            var columns = grid.get_masterTableView().get_columns();
 
            for (var i = 0; i < columns.length; i++) {
                columns[i].resizeToFit();
            }
 
        });
        function OpenFileDialog(fileUpload) {
            document.getElementById('<%=FileUpload1.ClientID%>').click();
        }
        function UploadFile(fileUpload) {
            if (fileUpload.value != '') {
                document.getElementById("<%=btnUpload.ClientID %>").click();
            }
        }

 

It its the btnUpload.Client click call, but it never runs the code behind.  If I remove the RadProgressArea and the RadProgressManager, the Upload code runs as expected.

Eyup
Telerik team
 answered on 25 Oct 2019
7 answers
1.4K+ views

Hey guys,

 

I'm currently trying to achieve to have a specific year selected on initialize in the code behind. I try to select the current year by default and fill some years into the box. As soon as I switch the year and reload the page the radgrid takes the correct value but it gets displayed the old value (for example 2015) . Anyone has an Idea how to fix that? I already tried to clear all items before setting the datasource.

 

Thanks in advance,

Daniel

Attila Antal
Telerik team
 answered on 25 Oct 2019
3 answers
391 views

     I have built dozens of grids with command menus with no issues, but this one does not show?

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False"
    Width="1200px" CommandItemDisplay="Top"
    RenderMode="Auto" AllowPaging="True" AllowSorting="True" PageSize="50" ShowHeader="true">
    <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
    <ExportSettings FileName="Agenda">
    </ExportSettings>
    <ClientSettings EnableRowHoverStyle="True">
        <Selecting AllowRowSelect="True" />
    </ClientSettings>
    <MasterTableView DataKeyNames="ID" CommandItemDisplay="Top" PageSize="25">
        <CommandItemSettings ShowAddNewRecordButton="False" ShowPrintButton="true" ShowExportToExcelButton="True" ShowExportToCsvButton="true" ShowRefreshButton="False" />
        <RowIndicatorColumn Visible="False">
        </RowIndicatorColumn>
        <ExpandCollapseColumn Created="True">
        </ExpandCollapseColumn>
        <Columns>
            <telerik:GridTemplateColumn HeaderText="Client" SortExpression="Client" UniqueName="flname">
                <ItemTemplate>
                    <asp:HyperLink ID="editClient" runat="server" NavigateUrl="#" Text='<%# Eval("flname") %>'></asp:HyperLink>
                </ItemTemplate>
                <ItemStyle Width="125px" Font-Size="8" />
            </telerik:GridTemplateColumn>

            <telerik:GridBoundColumn DataField="APTCPTCode" HeaderText="CPT Code" UniqueName="APTCPTCode" Display="True">
                <ItemStyle Width="50px" Font-Size="8" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="Start" DataType="System.DateTime" Display="True" FilterControlAltText="Filter Start column" HeaderText="Date" SortExpression="Start" UniqueName="Start" DataFormatString="{0:g}">
                <ItemStyle Width="125px" HorizontalAlign="Center" Font-Size="8" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="Status" HeaderText="Status" UniqueName="Status" Display="True">
                <ItemStyle Width="50px" Font-Size="8" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="Duration" DataType="System.Int32" HeaderText="Min" ReadOnly="True" SortExpression="Duration" UniqueName="Duration" HeaderStyle-HorizontalAlign="Center" Visible="True">
                <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                <ItemStyle Width="40px" HorizontalAlign="Center" Font-Size="8" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="ClientID" FilterControlAltText="Filter ClientID column" HeaderText="ClientID" SortExpression="ClientID" UniqueName="ClientID" Display="false">
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="Subject" FilterControlAltText="Filter Subject column" HeaderText="Subject" SortExpression="Subject" UniqueName="Subject" Visible="True">
                <ItemStyle Width="80px" Font-Size="8" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="Practitioner" HeaderText="Staff" SortExpression="Practitioner" UniqueName="Practitioner" Display="True">
                <ItemStyle Width="100px" Font-Size="8" />
            </telerik:GridBoundColumn>

            <telerik:GridBoundColumn DataField="RoomName" FilterControlAltText="Filter RoomName column" HeaderText="Room" SortExpression="RoomName" UniqueName="RoomName" Visible="true">
                <ItemStyle Width="80px" Font-Size="8" />
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn DataField="Owner" HeaderText="Owner" DataType="System.Boolean"></telerik:GridCheckBoxColumn>

            <telerik:GridCheckBoxColumn DataField="HasInsurance" HeaderText="Insurance" DataType="System.Boolean"></telerik:GridCheckBoxColumn>

            <telerik:GridBoundColumn DataField="UserID" DataType="System.Int32" Visible="False" FilterControlAltText="Filter UserID column" HeaderText="UserID" SortExpression="UserID" UniqueName="UserID">
            </telerik:GridBoundColumn>
        </Columns>
        <CommandItemTemplate>
        </CommandItemTemplate>
    </MasterTableView>

    <FilterMenu RenderMode="Auto"></FilterMenu>

    <HeaderContextMenu RenderMode="Auto"></HeaderContextMenu>
</telerik:RadGrid>

Vessy
Telerik team
 answered on 25 Oct 2019
1 answer
120 views

Hello,

I have an AdvancedInsertTemplate with and RequiredFieldValidator. When I want to cancel the insert (push button Cancel with commandname cancel), the RequiredFieldValidator is active and I can't cancel the insert( the modal doesn't close).

Could you give me a solution ?

 

Thank you

HYSCAD

Patrick
Top achievements
Rank 1
 answered on 24 Oct 2019
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?