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

I have an Asp.net website , and telerik controls on it.  On page load I get ConvertFontToSpanfilter error as an alert. On clicking few times 'OK' on alert i am able to proceed normally.

I am not able to figure it out why it's happening . As i know we can disable the filter but is there any specific reason it's happening?

becasue it's random - right now i don't see on my pages

 

 

Devender
Top achievements
Rank 1
 updated question on 14 May 2021
1 answer
369 views

When a button in a RadListView is clicked, I want to change the text of the button on the client side.  I can find the listview and the index of the row, but can't set the button text of the clicked button.  The code below always changes the text of the button in the first record.

Also, is there an easier way to find the button without adding an attribute in radlistview1_ItemDataBound?

function updateBtn(sender, args) {
   var listview = $find('<%=radlistview1.ClientID%>');
   var myindex = sender._element.getAttribute("rowindex");
   var btn = $telerik.findControl(document.documentElement, "radbutton1");
   //How to select the button that was clicked?
   btn.set_text("Clicked"); //works for first row only
   }

<telerik:RadListView runat="server" ID="radlistview1" DataSourceID="SqlDataSource1" DataKeyNames="myRecordid">
   <ItemTemplate>
   
   <telerik:RadButton runat="server" ID="radbutton1" Text='button'
       ButtonType="StandardButton" RenderMode="Auto"
       OnClientClicked = "updateBtn"
       AutoPostBack="false" UseSubmitBehavior="false">
   </telerik:RadButton>

   </ItemTemplate>
</telerik:RadListView>

Private Sub radlistview1_ItemDataBound(sender As Object, e As RadListViewItemEventArgs) Handles radlistview1.ItemDataBound
   ' Add an attribute to the button that can be passed to JS 
   If TypeOf e.Item Is RadListViewDataItem Then
      Dim item As RadListViewDataItem = TryCast(e.Item, RadListViewDataItem)
      Dim btn As RadButton = TryCast(item.FindControl("radbutton1"), RadButton)
      btn.Attributes.Add("rowindex", item.DataItemIndex.ToString())
   End If
End Sub


Attila Antal
Telerik team
 updated answer on 14 May 2021
1 answer
268 views
I just updated to 2021.2.511.45 and the MetroTouch theme in my RadMenu is no longer showing. The menu has no formatting at all now. What's happened?
Peter Milchev
Telerik team
 answered on 14 May 2021
1 answer
355 views

Hi,

I have  a Gridhyprlink column with a DataNavigateUrlFormatString and 2    DataNavigateUrlFields

however I want one of those fileds to be conditional on another Column;

eg

DataNavigateUrlFormatString="https://main.aspx?etn={0}&pagetype=entityrecord&id={1}"

 DataNavigateUrlFields= ((if (entityid ==2) {a} else {b}) ,mainid )

Attila Antal
Telerik team
 answered on 14 May 2021
6 answers
1.0K+ views
Hi,guys,

In one of my page,I use "RadAjaxManager.GetCurrent(Page).ResponseScripts.Add" to add some script.
What makes me amazing,the script can not work at all.

the client script:
function moveToTargetAnchor(anchorName) {
            var anchor = $('a[name="' + anchorName + '"]');
            if (anchor.length > 0) {
                anchor[0].scrollIntoView(true);
            }
            var editor = $find("<%=editConent.ClientID%>");
            if (editor != null) {
                var anchorElement = editor.get_document().getElementsByName(anchorName);
                if (anchor != null) {
                    anchorElement[0].scrollIntoView(true);
                }
            }
//alert('123');
        }
the server:
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("moveToTargetAnchor(""" & item.Title & """);")

The code complete a function of going to spesific anchor.
I have a test:
when i add a "alert('123')" to the end of script,the page could go to right anchor at first;
but after displaying '123',the page looks like being refreshed.

How could this happen,anyone can help me?

Best regards,
Jack.




Sachita
Top achievements
Rank 1
Iron
Iron
Iron
 updated answer on 13 May 2021
1 answer
138 views

Hi,

How do I specify what I want to be the tootip for an unbound RadHTMLChart in code (VB)?
the code works but shows the Y value (tDays) in the tootip, I need it to show the Name field (Dept)

 

see code below:

                    Dim DeptSum = (From d In EmpData Group d By Dept = d.Department Into Group
                                   Select Dept, tDays = Group.Sum(Function(d) d.Days)).ToList

                    Dim PieChartDays As New PieSeries
                    Dim PieSlice As PieSeriesItem

                        For Each DP In DeptSum
                            PieSlice = New PieSeriesItem
                            PieSlice.Name = DP.Dept
                            PieSlice.Y = DP.Tdays
                            PieChartDays.SeriesItems.Add(PieSlice)
                        Next

Vessy
Telerik team
 answered on 12 May 2021
1 answer
146 views

Hello Developers!

I am using Telerik Radgrid with Excel-like filters for creating my data grids. One issue I face is I cannot filter with symbol '?' or any word starting with '?' like '?check'. It immediately redirects to 500 internal error. If the symbol comes after any other character, the filter works fine, like 'o?c'.

I use RadGrid with DB source and autopopulate columns according to datasource. My filters are Excel-like filters.

I can replicate the same issue in your demo webpage for Excel-like filters too.

Placed screenshots for reference.

URL used: Telerik Web UI Grid Excel-like Filtering Demo | Telerik UI for ASP.NET AJAX

Could you let me know what can be done for this? It is absolutely important for me to be able to filter with '?'

Thanks and Regards

Vessy
Telerik team
 answered on 12 May 2021
0 answers
137 views

Hi Telerik Community,

I have a question which is a little difficult to explain, that is why I attached an image to make it more clear.
I have multiple data points, and each data point has a Pitch attribute associated with it, this Pitch measurement unit is Degrees.

Using the Telerik Chart framework, is it possible to plot each data point at its associated degree angle value and then plot the next data point in relation to the previous. Essentially what we need to do is visually show a profile that is mathematically accurate. I have been able to successfully and accurately achieve this on paper using a protractor but want to digitally achieve this using the Telerik Chart.

Each data point also has a depth value which needs to be shown visually in relation to its associated pitch data point, this will give us the ground elevation relative to the pitch data point.

Would appreciate some guidance on this.

Kind Regards.

 

n/a
Top achievements
Rank 1
 updated question on 12 May 2021
1 answer
217 views

DateTimeOffset and RadGrid.  Column does not show when this datatype is in resultset.

 

I have a dataTable with this datatype (DateTimeOffset) and this is the only column not showing.

 

I autogenerate the columns in the grid.

 

A workaround for now is to cast that column to datetime, or some other type in my SQL statement that generates the results.  Just curious if this is something that is being worked on or known about?

 

 

Vessy
Telerik team
 answered on 11 May 2021
1 answer
172 views

I have a radgrid set to a datatable.  Columns of type DateTimeOffset are hidden.

Why is this?

 

Roger

Vessy
Telerik team
 answered on 11 May 2021
Narrow your results
Selected tags
Tags
+? 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?