Telerik Forums
UI for ASP.NET AJAX Forum
19 answers
1.3K+ views
Latest Internal Build fixes the problem ASP.NET_AJAX_2008_3_1319

CORRECTION:  It isn't all of my Radgrids in the project but just some of them (I'm still working on figuring out why some work and other don't)  ADDITION:  It is on any column that is a number.  It doesn't matter if it is gridboundcolumn or a gridnumericcolumn. TEMPORARY FIX I added DataType="System.String"  to the column definition and filtering then works.  It seem like a problem with the filter menu for numeric values.


I upgraded my sites to and now all of my filtering has stopped working on all of my RadGrids.  They were all working before I upgraded.  I get the error :
System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
at System.String.Format(IFormatProvider provider, String format, Object[] args)
at Telerik.Web.UI.GridFilterFunction.GetFunctionString(String fieldName, String value, Type valueDataType, GridTableView tableView)
at Telerik.Web.UI.GridColumn.EvaluateFilterExpression(GridFilteringItem filteringItem)
at Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source)
at Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs ar gs)
at Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e)
at Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument)
at Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Thanks in advance,
Jeff


Eyup
Telerik team
 answered on 01 Mar 2017
4 answers
308 views

Hello,

I'm using Telerik UI for ASP.NET AJAX build 2017.1.118.40 with the Metro theme.

My application has many RadGrid instances, and for some reason none of them are showing column checkbox selections correctly in their header context menus.

I've attached a screenshot to demonstrate. You'll see that the columns that should be checked (they are currently visible in the grid) are shown using a light blue color - but they aren't actually checked. If I explicitly toggle the checkbox (by clicking it), then it appears as expected, but only until the next postback.

I thought I might have some styles conflicting with this theme, but I've removed all my application's CSS (as a test), and nothing changed.

Has anyone else encountered this? Any thoughts or feedback would be greatly appreciated.

- Mark R.

Eyup
Telerik team
 answered on 01 Mar 2017
0 answers
125 views

Hi,

My RadComboBox in aspx:

               <telerik:RadAutoCompleteBox runat="server" id="RadAutoCompleteBox" onclientrequesting="requesting"> </telerik:RadAutoCompleteBox>

I have array (50 items) in Javascript. Details item:

         - Id- this element set to value selected item;
         - Text ( Account Number + Description) - this element set to selection list in RadAutoCompleteBox;
         - Account Number - this element set to input;

I would like update RadAutoCompleteBox in function requesting in Javasctipt.

          function requesting(sender, eventArgs) {            
                        var value = sender.get_text();            
                        for (var j = 0; j < myArray.length; j++) {               
                               if (myArray[j][1].indexOf(value) > -1) {                    
                                 ????????????;                    
                               }}};

please help
Grzegorz
Top achievements
Rank 1
 asked on 28 Feb 2017
0 answers
111 views

Hello everyone, 

I want to change my date input format in client side using Javascript.
I saw there is a get_dateInput but I don't know how to use it to set the RadMonthYearPicker format to "MMMM".
Do anyone have a simple example? 

Thank you in advance. 

Romaric
Top achievements
Rank 1
 asked on 28 Feb 2017
0 answers
104 views

Hello everyone, 

I want to change my date input format in client side using Javascript.

I saw there is a get_dateInput but I don't know how to use it to set the RadMonthYearPicker format to "MMMM".

Do anyone have a simple example? 

Thank you in advance. 

Romaric
Top achievements
Rank 1
 asked on 28 Feb 2017
4 answers
653 views
I'm trying to use the radalert instead of the browser confirm alert. Normally I would put this in the OnClientClick: return confirm('Are you sure you want to delete this file?');. But this does not work with radalert. I tried the below but nothing worked, mostly they just show the confirm window and it disappears after a second then the page continues to post without me even answering the confirm question. How do I achieve this?

OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn);"
OnClientClick="radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"
OnClientClick="return radconfirm('Are you sure you want to delete this file?', confirmCallBackFn); return false;"

<script>
function confirmCallBackFn(arg)
{
    return arg;
}
</script>
Alice
Top achievements
Rank 1
 answered on 28 Feb 2017
6 answers
274 views

Hi there,

I am trying to use radconfirm instead of the asp.net confirm window. Following is my code for the asp.net delete confirmation window:

function Confirm_Delete() {
    if (confirm("Are you sure you want to delete this?") == true)
        return true;
    else
        return false;
}
<asp:Button ID="bt_Delete" runat="server" Text ="Delete" onclick="bt_Delete_Click" OnClientClick="return Confirm_Delete()" />

I have done the following changes in the javascript file, but it just show the delete confirmation window for a second, and then deleted the record without my input of Ok or not, Could anyone please let me know how to fix this issue? Thanks.
 
function confirmCallBackFn(arg) {
    return arg;
}
  
function Confirm_Delete() {
    radconfirm('<h3 style=\'color: #333399;\'>Are you sure you want to delete this?</h3>', confirmCallBackFn, 330, 100, null, 'Delete Confirmation');
}
Alice
Top achievements
Rank 1
 answered on 28 Feb 2017
4 answers
499 views

Hi,

When I load the boostrap skin, the formatting on the editor is not aligned properly (see attached screenshot)

My code is as follows.

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
/* These allow the image editor to have a scroll bar */
/* This is very much a hack. May cause unexpected problems. Remove if necessary */
/* http://www.telerik.com/forums/need-to-learn-rad-image-editor-functioning */
#horizontalScrollHint, #verticalScrollHint {
display: none !important;
}
.RadImageEditor .rieContentArea {
overflow: auto !important;
}
</style>
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
<asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
</Scripts>
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
</telerik:RadAjaxManager>
<div>
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
<telerik:RadImageEditor ID="RadImageEditor1" runat="server" ToolsFile="~/ToolsFile.xml" Skin="Bootstrap" ExternalDialogsPath="../ImageEditorDialogs">
<tools>
<telerik:ImageEditorToolGroup>
<telerik:ImageEditorTool Text="customSave" CommandName="customSave" />
</telerik:ImageEditorToolGroup>
</tools>
</telerik:RadImageEditor>
<telerik:RadComboBox RenderMode="Lightweight" ID="fontFamily" runat="server" AutoPostBack="false" EnableViewState="false"
CausesValidation="false" Width="130px">
<Items>
<telerik:RadComboBoxItem Text="Arial" Value="arial" />
<telerik:RadComboBoxItem Text="Times New Roman" Value="times new roman" />
<telerik:RadComboBoxItem Text="Verdana" Value="verdana" />
<telerik:RadComboBoxItem Text="Tahoma" Value="tahoma" />
<telerik:RadComboBoxItem Text="Courier New" Value="courier new" />
<telerik:RadComboBoxItem Text="Georgia" Value="georgia" />
<telerik:RadComboBoxItem Text="Ms Sans Serif" Value="ms sans serif" />
</Items>
</telerik:RadComboBox>
<script type="text/javascript">
Telerik.Web.UI.ImageEditor.CommandList["customSave"] = function (imageEditor, commandName, args) {
imageEditor.saveImageOnServer("Sunset", true);
}
</script>
</telerik:RadAjaxPanel>
</div>
</form>
</body>
</html>

 

Thanks!

Vessy
Telerik team
 answered on 28 Feb 2017
14 answers
447 views
Hello,

I need to display Grand Total on top of the Htmlchart stacked bars in addition to each stacked bar item value but i do not know how to do that.

I tried to use DefaultLabelValue with "#STSUM"  but it is not avilable or i do not know how to use it.

Can you please help me with this?

I have attached the screen shot for the same.

Thanks,
Dhachina
Олег
Top achievements
Rank 1
 answered on 28 Feb 2017
1 answer
99 views

Good day to forum members!

I have such a question-

what operations can I do with tags like #=dataitem.value# ?

In demos I saw expressions like 

#=dataitem.value + dataitem.value1 + ...# 

So, what else can I do with these ones?

Can I use any math function?

Can I round result?

One yet thing - can I work with #=dataitem.value# like operator in my .cs file? For example, convert it to value type? Something like decimal d=Convert.ToDouble("#=dataitem.value {0}", 1); ?

I'm not successful in any of these things;

Sorly, I'm new in telerik and ASP.

Олег
Top achievements
Rank 1
 answered on 28 Feb 2017
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?