Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
220 views
When I'm placing a button in a Ajax Panel, on the button click its showing the error


Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[FormatException: Input string was not in a correct format.]
   System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2725283
   System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +102
   System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +134
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +11
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +673
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2967


Its only in Fire Fox 3.0, rset all its working fine.
Plz Help
Pavel
Telerik team
 answered on 15 Dec 2008
2 answers
187 views
I need to open a tooltip on pageload with some values from a database table or class (.cs).
I just want show it like a notification which would be right at the bottom of the page but always visible (whether the page scrolls but it will remain at the bottom of the browser).
And when a user clicks it it will redirect the page towards the some pre-defined url.
I need help in this please!
Svetlina Anati
Telerik team
 answered on 15 Dec 2008
5 answers
90 views
Hi

I have an intermittent problem with the radgrid export, soemtimes the code works and exports, sometimes it just flashes the save prompt and goes back to the grid page without doing anything. here is my code.

        protected void cmdExportToExcel_Click(object sender, ImageClickEventArgs e)
        {
            RadGrid1.ExportSettings.ExportOnlyData = true;
            RadGrid1.ExportSettings.IgnorePaging = true;
            RadGrid1.ExportSettings.OpenInNewWindow = true;
            RadGrid1.ExportSettings.FileName = "test";
            RadGrid1.MasterTableView.ExportToExcel();
        }
Daniel
Telerik team
 answered on 15 Dec 2008
4 answers
128 views
We've got a radgrid bound to a dataset and a search text box on our web page. When the user inputs a code to the text box, we want the radgrid to find the row within the dataset and scroll down to it in the grid.
 
This was possible to do in standard VB.NET but we're having issues using telerik.

So far we have this logic:

 

   Protected Sub form1_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles form1.Load  
        cn = New SqlConnection(ConStr)  
        ds = New DataSet  
        dv = New DataView  
 
        Dim ad As New SqlDataAdapter("select * from mytable", cn)  
 
        ad.Fill(ds, "codeid")  
 
        dv.Table = ds.Tables("codeid")  
 
        RadGrid.DataSource = dv  
 
    End Sub 
 
    Protected Sub btnSearch_Click(ByVal sender As ObjectByVal e As System.EventArgs) Handles btnSearch.Click  
        Dim lpos As Integer 
 
        dv.Sort = "codeid" 
        lpos = dv.Find(btnSearch.Text)  
 
        'here we want to set current row to lpos  
 
        RadGrid.Rebind()  
 
    End Sub 

 

 

But when it comes to setting the data set's index we found the property was read only.

RadGrid2.SelectedItems.Item(0).DataSetIndex = 4

Property 'DataSetIndex' is 'ReadOnly'.

Is there another property we have to use instead to achieve the same effect of getting the grid to scroll down to the right place in the dataset position the user searched for?


 

Megan
Top achievements
Rank 1
 answered on 15 Dec 2008
2 answers
294 views
Dear All,
Problem Statement - I have a popup window, in which I will search and select one item(internally I have two values). On click of a button I need this text to go to parent page and get inserted into a RADCombobox. If that Item is present, the Item will get selected else a new RADCombobox item needs to be created.
Solution - Once I select one item and click button, I am calling a Javascript function in the parent page as below.

self.opener.AddSelectedOilGrade(selValue,selText);

In the parent page I am trying to find the item existing or not and then selecting this item. Below is the code.

var

combo = $find("<%= cboOilinUse.ClientID %>");

 

 

var item = combo.findItemByText(strText);

 

 

if(item)

 

{item.select();}

 

else

 

{

var comboItem = new Telerik.Web.UI.RadComboBoxItem();

 

comboItem.set_text(strText);

comboItem.set_value(strValue);

comboItem.select();}

I have refered to the example given in the below URL.
http://www.telerik.com/help/aspnet-ajax/combo_clientsidebasics.html 

But this is returning NULL(var comboItem = new Telerik.Web.UI.RadComboBoxItem();).

Please let me know if anything is going wrong.



Ramachandran Panduranga
Top achievements
Rank 1
 answered on 15 Dec 2008
4 answers
194 views
Hi..
I have combo will is now behaving differently in the the new version.
I'm using matchfirst

In the old version if I tab to the combo and the existing values is 'Select' and start typing 'ABC' if will find ABC.
In the new version if I tabl to the combo and start typing 'ABC' the control displays 'ABCSelect' and no match is found.
I checked the properties and they are identical.. any ideas?
thanks
Simon
Telerik team
 answered on 15 Dec 2008
2 answers
154 views

I am using rad grid in hierarchical mode in my project.
Some of the rows in parent do not have child records, so i am removing the 'plus' sign for those rows. However the rows
are getting misalligned and looking dirty, typically  a white border is coming to the left and bottom the cell of the 'plus' sign.

I am not able to provide scrrenshot, otherwise i would have done so.
I have posted a lot of queries before and obtained solution very quickly from your side. So thanks in advance.
Pls advice.
Nilanjan
Top achievements
Rank 1
 answered on 15 Dec 2008
1 answer
70 views

I am unable to Render page from the wesite designed using Telerik ASP.Net Ajax contol.
We are using Vs2008
Deplyed in Separate server which is under fire wall protection.

Firewall restricts the page stating  Microsoft Security Bulletin MS07-027
For testing I will send you my sample test code

 

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridTest.aspx.cs" Inherits="Test.WebUI.GridTest" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

 

<!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>Test Page</title>

 

</

head>

 

<

body>

 

 

<form id="form1" runat="server">

 

 

<asp:ScriptManager ID="ScriptManager1" runat="server">

 

 

</asp:ScriptManager>

 

 

<div>

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" GridLines="None">

 

 

<HeaderContextMenu EnableTheming="True">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</HeaderContextMenu>

 

 

<MasterTableView>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

<Columns>

 

 

<telerik:GridBoundColumn UniqueName="column" DataField="Name" HeaderText="Name">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="column1" DataField="Age" HeaderText="Age">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="column2" DataField="Place" HeaderText="Place">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<FilterMenu EnableTheming="True">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

</FilterMenu>

 

 

</telerik:RadGrid>

 

 

</div>

 

 

</form>

 

</

body>

 

</

html>

 

Code behind file

using System;

 

 

using System.Collections.Generic;

 

 

using System.Collections;

 

 

using System.Configuration;

 

 

using System.Data;

 

 

using System.Linq;

 

 

using System.Web;

 

 

using System.Web.Security;

 

 

using System.Web.UI;

 

 

using System.Web.UI.HtmlControls;

 

 

using System.Web.UI.WebControls;

 

 

using System.Xml.Linq;

 

 


namespace
 Test.WebUI

 

{

 

public partial class GridTest : System.Web.UI.Page

 

 

{

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

List<TestData> ltdata = new List<TestData>();

 

ltdata.Add(

new TestData { Name = "Test1", Age = "34", Place = "London" });

 

ltdata.Add(

new TestData { Name = "Test2", Age = "34", Place = "London" });

 

ltdata.Add(

new TestData { Name = "Test3", Age = "34", Place = "London" });

 

ltdata.Add(

new TestData { Name = "Test4", Age = "34", Place = "London" });

 

RadGrid1.DataSource =

from r in ltdata

 

 

select r;

 

RadGrid1.DataBind();

}

}

 

public class TestData

 

 

{

 

 

public string Name { get; set; }

 

 

public string Age { get; set; }

 

 

public string Place { get; set; }

 

}

}


Designer genetated file

 

//------------------------------------------------------------------------------

// <auto-generated>

// This code was generated by a tool.

// Runtime Version:2.0.50727.3053

//

// Changes to this file may cause incorrect behavior and will be lost if

// the code is regenerated.

// </auto-generated>

//------------------------------------------------------------------------------

 

 

 

namespace

Test.WebUI {

 

 

 

 

public partial class GridTest {

 

 

 

/// <summary>

 

 

/// form1 control.

 

 

/// </summary>

 

 

/// <remarks>

 

 

/// Auto-generated field.

 

 

/// To modify move field declaration from designer file to code-behind file.

 

 

/// </remarks>

 

 

protected global::System.Web.UI.HtmlControls.HtmlForm form1;

 

 

 

/// <summary>

 

 

/// ScriptManager1 control.

 

 

/// </summary>

 

 

/// <remarks>

 

 

/// Auto-generated field.

 

 

/// To modify move field declaration from designer file to code-behind file.

 

 

/// </remarks>

 

 

protected global::System.Web.UI.ScriptManager ScriptManager1;

 

 

 

/// <summary>

 

 

/// RadGrid1 control.

 

 

/// </summary>

 

 

/// <remarks>

 

 

/// Auto-generated field.

 

 

/// To modify move field declaration from designer file to code-behind file.

 

 

/// </remarks>

 

 

 

 

 

protected global::Telerik.Web.UI.RadGrid RadGrid1;

 

}

}


Note :We are be render/view the page in intranet.

Pavel
Telerik team
 answered on 15 Dec 2008
1 answer
143 views
Hi,

How to Show Loading RadToolTip while loading Content of RadWindow.

Thanks in addition
Svetlina Anati
Telerik team
 answered on 15 Dec 2008
1 answer
80 views
I have the following scenario:

 I have a radsplitter with 3 panes. - a vertical pane which has a grid with one column called packages. To the right of this pane, I have an embedded splitter with 2 horizontal panes. On the top pane, I have a  4 grids using a tabstrip  of all possible items that can be added to a package. The content for the top pane is an aspx page that is also in my project.
In the bottom pane, I want a grid which will be where the user can build the package that they select in the left pane.

When the user clicks a checkbox in the top grid(pane) I want that row to be added to the grid in the bottom pane. I also want to give the user the option to use drag and drop from the top pane grid to the bottom.

Since the top grid (pane) is in a separate aspx page, is there a way for that page on checkbox clicked or on rowDragStarted to communicate back to the parent page what has been done and the data that needs to be communicated back?

Thanks,
Laura
Svetlina Anati
Telerik team
 answered on 15 Dec 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?