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

Hi,

 

Is there a way to hide the add new sheet button in asp.net ajax spreadsheet control?

 

In WPF, there is a way to hide the new sheet button using the RadSpreadsheetSheetSelector class, however I am not able to find any thing in the asp.net ajax?

Vessy
Telerik team
 answered on 24 Oct 2017
7 answers
576 views

I want that once user mouse over the legend item, the related series item will highlighted and show the same tooltips as they are hovered. I'm using the version 2016 Q1, but there is no OnLegendItemHover event, how?

And how to make the databind template for Legend?

Thanks
Slava
Top achievements
Rank 1
 answered on 24 Oct 2017
1 answer
81 views
We are using telerik filter enabled radgrid that has 8 (say) columns and we have to export the filtered records  to excel when required and the excel report should have additional columns 25(say) with relevant data. Is there a possibility to achieve this? The frequency of exporting to excel is comparatively very low and hence loading all 25 rows and making the columns invisible will have considerable performance hit. 
Eyup
Telerik team
 answered on 24 Oct 2017
9 answers
262 views
In http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx
1. Click to add a new record
2. The "Delete" link will appear in the new row - it would be nice to have the same X icon
3. Click "Delete" link - it fires validation and the new row could not be deleted until you enter all required fields - bug.
Upender
Top achievements
Rank 1
 answered on 23 Oct 2017
4 answers
318 views

When using the pasting functionality via ctrl-v or right-click then clicking paste menu, on a RadEditor content area that has enough content to require it to scroll down in the actual edit, after the paste is done, the RadEditor is automatically scrolled up to the top of the content area of the RadEditor.  I am using the Telerik.Web.UI version 2013.1.220.40, Telerik RadControls for ASP.NET Ajax in Chrome, version Version 61.0.3163.100 (Official Build) (64-bit), as all our users are required to do so.  This was not always occurrring but seemed to start a couple of months ago, or less.  This issue, however, does not occur in IE or Firefox.

Below is a video showing a replication of the issue.  In the code it seems that none of the copied text is going into the radePasteHelper and then the following code in Telerik.Web.UI.WebResource.axd is ending putting the focus in the wrong area:

m.innerHTML = " ";
                            e = this.getSelection();
                            l = this.get_document().createRange();
                            l.setStart(m.firstChild, 0);
                            l.setEnd(m.firstChild, 1);
                            e.selectRange(l);

I understand this is a legacy version of the Telerik control, but need to get this fixed ASAP while we work on the possibility of implementing a newer version.

https://youtu.be/yBsHoJ6zxA0

 

Bradley
Top achievements
Rank 1
 answered on 23 Oct 2017
3 answers
169 views
Hi, the ExportToPdf function works fine in my local dev environment. However the moment i move it to any uat or prod server it fails with the error:

System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it <IP ADDRESS>:80     at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)     at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)     at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception)

Everything else works find, the Radscheduler is bound to a sql data source and all works flawlessy. However i have been unable to determine why the above occurs on any webserver but not my local dev env. Is this a permissions thing? I am not sure what is occuring inside of ExportToPdf for this occur? I am assuming it just uses the same datasource as specified in DatasourceID that works fine elsewhere?  Any help would be greatly appreciated as the export to pdf is a big need for this project.
Thanks

 

Grace
Top achievements
Rank 1
 answered on 23 Oct 2017
0 answers
103 views

I see examples of setting the high and the low in the range series through hard code

 

            <SeriesItems>
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                    <telerik:RangeSeriesItem From="56" To="76" />
                </SeriesItems>

 

How do I bind them to a data source?

 

thanks

Jeff
Top achievements
Rank 1
 asked on 23 Oct 2017
2 answers
902 views

We are using Bootstrap with Telerik ASP.Net Ajax controls and we're having trouble changing button styles.

<link href="Content/bootstrap.css" rel="Stylesheet" type="text/css" />

 

For example, this should be changing the style of our RadGridButton:

<telerik:RadButton ID="btnCopySlctdSteps" CssClass="btn-success" runat="server" OnClick="btnCopySlctdStep_Click" Text="Copy Selected Steps" />

 

But it doesn't seem to be working since the buttons are still simply gray.

 

Thanks

 

JazzBox
Top achievements
Rank 1
 answered on 23 Oct 2017
1 answer
229 views

I have a grid that has a gridtemplatecolumn for a checkbox. In the header I have a checkbox to select/unselect all.The grid allows pagination and filtering. I run an OnCheckedChanged function on the checkbox in the header. I disable paging, rebind, loop through the records to update my record(s) in the database, enable paging and rebind again. The saving and selecting of each row on the pages works. The problem is that when I enable paging and rebind the grid, the checkbox in the header goes to unselected. The grid/check box no longer knows that the user checked the check box and that all visible rows in the grid are selected so the checkbox should be selected still. This would give the user the option to unselected the header checkbox to unselect all the rows.

My question is how to tell the checkbox in the header, that all the rows that are visible in the grid (due to filtering applied, or pagination on) are selected so select the checkbox in the header to allow the user to unselect. At this point, my grid can show 10 records at a time, the user can filter to the rows they want while still having pagination on. They can select the header checkbox to select all of the rows but have no option to use the header to unselect all the rows.

Below are snippets of the aspx gridtemplate column and the aspx.vb OnCheckedChanged function.

<telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" HeaderText="Selected" AllowFiltering="false">
     <ItemStyle Width="45px" Wrap="false" />  
     <HeaderStyle Width="45px" Wrap="false" />
     <ItemTemplate>
                <asp:CheckBox ID="cbSelectedSearchResults" runat="server" Checked='<%# GetBooleanValue(Eval("Selected")) %>'                               OnCheckedChanged="ToggleRowSelectionSearchResults" AutoPostBack="True" />
      </ItemTemplate>
       <HeaderTemplate>
                <asp:CheckBox Text="" ID="headerChkboxSearchResults" runat="server" OnCheckedChanged="ToggleSelectedStateSearchResults" AutoPostBack="True" />
       </HeaderTemplate>

</telerik:GridTemplateColumn>

 

    Protected Sub ToggleSelectedStateSearchResults(ByVal sender As Object, ByVal e As EventArgs)
        Dim headerCheckBox As CheckBox = TryCast(sender, CheckBox)
        selectAll = headerCheckBox.Checked
        Dim strSQL As String = ""
        Dim selected As Integer = 0
        Dim ID As Integer = 0
        rgSelections.MasterTableView.AllowPaging = False
        rgSelections.Rebind()

        For Each dataItem As GridDataItem In rgSelections.MasterTableView.Items
            TryCast(dataItem.FindControl("cbSelectedSearchResults"), CheckBox).Checked = headerCheckBox.Checked
            dataItem.Selected = headerCheckBox.Checked

            ID = dataItem.GetDataKeyValue("ID")

            If headerCheckBox.Checked Then
                selected = 1
            End If

            Try
                strSQL = "update bridge.dbo.Tmp_BridgeJobOptions" & ucHeader1.SessionId & " set selected = " & selected & " where id = " & ID
                mobjBridgeDatabase.subExecuteNonQuery(strSQL)
            Catch ex As SqlException
                Throw New Exception(ex.Message & ", SQL: " & strSQL & ",frmBridgeLineCreation.ToggleSelectedStateSearchResults")
            End Try

        Next
        rgSelections.MasterTableView.AllowPaging = True
        rgSelections.Rebind()


        For Each dataItem As GridDataItem In rgSelections.MasterTableView.Items
            TryCast(dataItem.FindControl("cbSelectedSearchResults"), CheckBox).Checked = headerCheckBox.Checked
            dataItem.Selected = headerCheckBox.Checked
        Next

    End Sub

Attached is a picture of my grid right after I checked the checkbox in the header. You can see all my rows are selected, but the header is back to unselected.

 

 

 

Attila Antal
Telerik team
 answered on 23 Oct 2017
6 answers
2.1K+ views
I just found this nasty error this morning, for what seemed like no reason.  And I found a solution that worked for me, but it might not be readily available to fix for everyone, I'll explain.

I've attached two screenshots, a before and after that displays my Visual Studio 2010 Design Views with the errors and the fixed result.

The part that helped me figure it out was with the RadScheduler.  It displayed a much more helpful message that helped me find the solution.

If you notice in the "error" screen shot the RadTreeView and RadMenu controls do not display anything but the error message.  But when I dragged a RadScheduler on the page, it displayed a much more helpful message. 

Since I had just upgraded my ASP.NET AJAX controls to the latest version yesterday, the local cached version was still the prior version. This is what caused the errors.

So here's what I did:
  1. Close Visual Studio
  2. Navigate to the location of the older Telerik assembly
  3. Delete it
  4. Open Visual Studio - and everything works!

 

If you don't see a message that shows the path of the problem assembly, try dragging a RadScheduler onto the page to see if that shows the details paths.

Edit - 1/23/2012
This problem seemed to persist in later days, and I finally found a good work around.  In your web.config, you need to change this...

<pages>
    <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
    </controls>
</pages>

... to this.

<pages>
    <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI, Version=2011.3.1305.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
    </controls>
</pages>

Remember to change the version number to the version you have installed in your application.

This works, but it does mean that you will have to manually update the version number if you ever upgrade your application in the future, but at least it will not generate all those errors.

If anyone has a better solution, I would love to hear it.

I hope this helps.

Thanks,

King Wilder

Tricewebdevelopment
Top achievements
Rank 1
 answered on 23 Oct 2017
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?