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

I want to call Radgrid Events manually Server side. 

 

SaveButton.ascx

protected void SaveFormButton_Click(object sender, EventArgs e)
{

}

 

GridBatchEdit.ascx

protected void GridListBatchEditCommand(object sender, Telerik.Web.UI.GridBatchEditingEventArgs e)
{

}

 

SaveButton.ascx and GridBatchEdit.ascx are in one page and need to trigger GridListBatchEditCommand when SaveForm button is clicked in Server Side not Client Side.

 

Is there such a way to do this scenario ?

 

Thanks

Attila Antal
Telerik team
 answered on 29 Oct 2019
3 answers
382 views

Hi Team,

I am using a radgrid control in my asp.net web page which is dynamically created and added to the page. Columns added to the grid are also dynamic. Sort expression is being used to prioritize sort for 3 default columns which are also dynamic. I am changing the masterview header text due to the business requirement.

Now, the problem is, if i am changing the mastertableview header text, sorting is getting disabled to all number based columns . It is working only for all other string and date based columns. If i don't change mastertableview header text, sorting is enabled for all columns as expected. I tried placing the code to change mastertableview header text in databound and prerender but still no luck. I tried rebind also but not working.

Any sort of help is appreciated. 

Thanks in advance.

sri harsha
Top achievements
Rank 1
 answered on 29 Oct 2019
1 answer
96 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.0K+ 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
117 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.1K+ 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
291 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
169 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
119 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.2K+ 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
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?