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!
RadImageButton is showing this error on IE 11 if the zoom level is not 100%.
[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
>
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;
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
>
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
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.
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?
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)