Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
74 views
"I use editor but it appears error of control on mobile phone. It prevented me from typing text or the control bobs constantly - when I was tying in this line, it showed the content in the other place. Thanks
Thành
Top achievements
Rank 1
 answered on 27 Mar 2018
1 answer
61 views
Hi Team,
In my sample application, I am using RadEditor with below properties. when I have ran the application and enter long text and I am not seen any horizontal scrollbar (see first_screen) then copied the same properties on "RadEditor"  and using my existing application and entered long text I am receiving Horizontal scrollbar (Second pic) please.
<telerik:RadEditor ID="txt_GAdd" BorderStyle="None" runat="server"
Width="100%" ToolsFile="ToolsFile.xml" Height="200px" Font-Names="Tahoma" Font-Size="11px" Style="margin-bottom: 5px;"
EnableResize="False" EditModes="Design" StripFormattingOnPaste="NoneSupressCleanMessage" OnClientLoad="RadEditorOnLoad">
</telerik:RadEditor>
Regards,
Jani
Dev
Top achievements
Rank 1
 answered on 26 Mar 2018
0 answers
67 views

I have a RadGrid that gets refreshed when I click a radio button.  I have jQuery attached to the onClick event.  The radio buttons are listed as an AjaxSetting and UpdatedControls.

When I click the radio button, the jQuery works great.  Then, the "loading" graphic appears over the grids and radio buttons.  After that, when I click on the radio buttons, my jQuery doesn't work.

Does the code behind/ajax destroy the original element, therefore jQuery cannot find it?  Why does this not work?

 

Thanks!

Mark
Top achievements
Rank 1
 asked on 26 Mar 2018
7 answers
171 views

RadImageButton is showing this error on IE 11 if the zoom level is not 100%.

  1. Change the zoom (not 100%)
  2. Click on the Img button

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10896279
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +145
   Telerik.Web.UI.RadImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +167
   Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +16
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +734
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1960

 

This is the aspx code 

<telerik:RadImageButton ID="ButtonActions1" runat="server" Image-Url="~/Images/menu.png"  ></telerik:RadImageButton>

 

 

Paweł
Top achievements
Rank 1
 answered on 26 Mar 2018
3 answers
142 views

Hi
We are using telerik grid which is build dynamically. When adding GridDropDownColumn to the grid it's working without problem. But one functionality is really not OK. When user click on the item in grid to change it, drop-down opens but drop down values are already filtered to the existing values. Combo box should work in different way, as it works here: https://demos.telerik.com/aspnet-ajax/combobox/examples/overview/defaultcs.aspx. When user clicks on that drop-down and if there is any item selected, he gets all items in dropdown and NOT pre-filtered by selected value.



How should we set up that column to allow out of the box behaviour of the Filter?

               GridDropDownColumn ddCol = new GridDropDownColumn();
               ddCol.DataSourceID = column.Name + "ObjectDataSource";             
               ddCol.ListValueField = "ID";
               ddCol.ListTextField = "Name";
               ddCol.DataField = column.Name;
               ddCol.AllowAutomaticLoadOnDemand = true;
               ddCol.DropDownControlType = GridDropDownColumnControlType.RadComboBox;  

Attila Antal
Telerik team
 answered on 26 Mar 2018
1 answer
444 views

Hi, I have grouping enabled on my grid and I show my grid as collapsed on the first load.

If my column value is null I show a 'n/a' but it shows a blank value in the group footer. Is it possible to show the n/a in the group footer as well? 

<telerik:GridTemplateColumn HeaderText="Jan" UniqueName="Jan" DataField="Jan" Aggregate="Sum" FooterAggregateFormatString="{0:c2}">
<ItemTemplate>
<%#(String.IsNullOrEmpty(Eval("Jan").ToString()) ? "n/a" : Eval("Jan", "{0:c2}"))%>
</ItemTemplate>
 </telerik:GridTemplateColumn>

 

Attila Antal
Telerik team
 answered on 26 Mar 2018
1 answer
98 views

Hey, I've noticed what seems to be a bug in the telerik editor when it comes to changing font styles of text in a list, which can even be re-produced on the track changes demo at https://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx.

The steps to reproduce are as follows:

1. Copy a list from word (Bullet or numbered doesn't matter, but numbered is more problematic)

2. Paste into the telerik editor with track changes turned on

3. Apply Bold, Underline or Italics to the pasted list

Result:

The list seems to break itself into 3 separate lists all spaced further apart than initially. Numbered lists will go from 1,2,3 to having 1,1,1. I notice that creating a list through the telerik controls allow for font styling to be applied without error and yet pasted content is causing issues, is there anything that can be done to fix this?

 

Kind Regards,

Aidan

Rumen
Telerik team
 answered on 26 Mar 2018
0 answers
88 views

Hi

In the NeedDataSource event i am binding a table to the grid. I need to get all values from all rows (one column) after binding. 

Today i use this simple code

grid.DataSource = _searchResult;  //DataTable
List<string> activitiesList = new List<string>();
foreach (DataRow row in _searchResult.Rows)
  activitiesList.Add(row["ActivityNumber"].ToString());

But this only gets me an unsorted list.

I have tried to get values from mastertableview:

grid.DataSource = _searchResult;  //DataTable
List<string> activitiesList = new List<string>();  
foreach (GridDataItem item in grid.MasterTableView.Items)
activitiesList.Add(item.GetDataKeyValue("ActivityNumber").ToString());

 

But since i use paging i only get the first 50.

So how can i get all values from all rows after binding a table to the grid. I need the entries in the way the grid is sorted .

 

Thank you

Lars E.

 

 

Lars
Top achievements
Rank 1
 asked on 26 Mar 2018
1 answer
52 views

Hi,

A root node is added to the treeview with expandmode ServerSideCallback. When clicked then server call is processed and child nodes are retrieved.

When the checked property on the root node is set to true, then no server call is triggered and loading image is shown. Do you need to preload child nodes of checked nodes or can't the checked be used with ServerSideCallback expandmode?

Peter Milchev
Telerik team
 answered on 23 Mar 2018
0 answers
112 views

I am new to Ajax. I want to retrieve the transaction details from the merchant website after payment processing. My ajax call script is not working. Please help.

C# Method:

public class RetrieveCache{[WebMethod]public string RetrieveTransactionData(string ID){

ChannelFactory<ServiceSoap> PayChannelFactory = new ChannelFactory<ServiceSoap>("ServiceSoap12");

ServiceSoap Paychannel = PayChannelFactory.CreateChannel();

XmlNode node = Paychannel.RetrieveCachedData(ID);return node.InnerXml;

}}

 

Ajax call Script in HTML Page to call the above c# method

 

Html Page URL: http://localhost:55014/SuccessPage.html?id=29473740923

 

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript">

</script><script type="text/javascript"> $(document).ready(function () {

var url = window.location.search; debugger;var token = (url.replace("?", "").split("=")[1]).toString(); debugger;var dataval = JSON.stringify({ token: token }); $.ajax({ url: "http://localhost:55014/RetrieveCache.cs/RetrieveTransactionData", type: 'post', data: JSON.stringify({ token: token }), contentType: 'application/json; charset=utf-8', dataType: 'json', success: function(data){ alert(data);}, error: function (err) { alert(err)}});});

</script>

This is the error message in console: localhost:55014/RetrieveCache.cs/RetrieveTransactionData 404 (Not Found)

ABC
Top achievements
Rank 1
 asked on 22 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?