Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
108 views
Hi,

This is my first posting in this forum.

I am currently having an issue where by a DataTable returned from the Database Query 'may' contains exponents and when I attempted to Bind the table [Basic Binding]:

RadGrid.DataSource = DataTable;
RadGrid.DataBind(); // Error Generated at this code location

Please refer to attached for a simple snapshot as to data for binding that is generating the error.

I have tried to identify the exact RadGrid Events where this exception is generated but I was unable to determine the event.

Is there a way for the Radgrid to handle these values (via settings) or do I have to handle it manually in the correct Radgrid event?

Thanks.

The Exception is:

System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.FormatException: Input string was not in a correct format.

   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

   at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)

   at Telerik.Web.UI.GridDataSetHelper.Add(Object a, Object b)

   at Telerik.Web.UI.GridDataSetHelper.CalculateAggregates(DataRow SourceRow, DataRow DestRow, Int32 rowCountInGroup, GridTableView view)

   at Telerik.Web.UI.GridDataSetHelper.InsertGroupByInto(GridTableView gridTableView, DataTable DestTable, DataTable SourceTable, String RowFilter, Int32 FirstIndexInPage, Int32 LastIndexInPage, Boolean ApplyPaging, Boolean IsCustomPaging)

   at Telerik.Web.UI.GridDataSetHelper.CalcGroupByTables(GridTableView gridTableView, DataTable SourceTable, String RowFilter, Int32 FirstIndex, Int32 LastIndex, Boolean applyPaging, Boolean isCustomPaging)

   at Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation()

   at Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable()

   at Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray)

   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)

   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)

   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)

   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()

   at Telerik.Web.UI.GridTableView.PerformSelect()

   at Telerik.Web.UI.GridTableView.DataBind()

   at Telerik.Web.UI.RadGrid.DataBind()

   at Pages_Forecasts_StockForecastDrillDown.LoadSecurityFactors(String tDate, DataTable dt) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Pages\Forecasts\StockForecastDrillDown.aspx.cs:line 986

   at Pages_Forecasts_StockForecastDrillDown.ucSecuritySelect_SelectedIndexChanged(Object sender, SecuritySearchEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Pages\Forecasts\StockForecastDrillDown.aspx.cs:line 842

   at Controls_SecurityDropDownList.OnSecurityChanged(SecuritySearchEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Controls\SecurityDropDownList.ascx.cs:line 40

   at Controls_SecurityDropDownList.cboSecurity_SelectedIndexChanged(Object o, RadComboBoxSelectedIndexChangedEventArgs e) in c:\Perforce\Acadian\Portal\MAIN\Research\web\Controls\SecurityDropDownList.ascx.cs:line 224

   at Telerik.Web.UI.RadComboBox.OnSelectedIndexChanged()

   at System.Web.UI.Page.RaiseChangedEvents()

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   --- End of inner exception stack trace ---

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback callback, Object state)

   at System.Web.UI.Page.AsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData)

   at ASP.pages_forecasts_stockforecastdrilldown_aspx.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object data) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\8609db0b\e58b7a69\App_Web_stockforecastdrilldown.aspx.4393a603.ujchnqwd.0.cs:line 0

   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


Daniel
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
358 views
I have an issue with IIS 7.5. Any web page with Telerik controls pops up a windows authentication login box and it fails to authenticate and results in error '401 - Unauthorized.  Access is denied due to invalid credentials'. All other pages without Telerik controls works fine. It looks like using Host Name for the website in IIS  is creating the problem.

Environment:
Telerik        :  RadControls for ASP.Net JAAX Q2 2011 SP1
OS Version : Windows 2008  R2 
OS Version :  64bit
IIS Version  ; IIS 7.5
.Net Framework : 4.0
Authentication : Windows Integrated
App pool(mode) : Integrated
HostName : xxxxx-stg.xxx.com


Below is the web.config section
<system.web>
     <httpHandlers>
           <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      </httpHandlers>
</system.web>
  
<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>     
      <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" 
              type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
    </handlers
</system.webServer>



Thanks in advance.
Genady Sergeev
Telerik team
 answered on 28 Nov 2011
7 answers
1.1K+ views
Hi,
I want my grid to be "load on demand" so don't want it populating on PageLoad. How can I tell it to not populate until I explicitly call Rebind() ?

Cheers
Mahesh
Top achievements
Rank 1
 answered on 28 Nov 2011
8 answers
115 views
I have a scheduler where each appointment has an export option, as well as the scheduler as a whole.

If I export all the appointments on the scheduler, everything works.

If I export a recurrence master, that works too.

If I try and export a single recurrence instance though, all I get is this ...
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Telerik Inc.//NONSGML RadScheduler//EN
METHOD:PUBLISH
END:VCALENDAR
and if I try and import it in to Outlook it complains, unsurprisingly.

What am I missing?

--
Stuart

Nikolay Tsenkov
Telerik team
 answered on 28 Nov 2011
2 answers
201 views
I have placed a link button into commandItemTemplate of Grid so that i can add rows to end of grid on server side. But I am observing that whenever there is a postback after clicking link button, the same link button displyed next to the existing Link button.
Clicking the newly created link button does not fired the server side event.
The thing that i have done with grid is that all the rows of grid are in ediable form.


Thanks and Regards
Sarang
Sarang
Top achievements
Rank 1
 answered on 28 Nov 2011
5 answers
117 views
With HTML5 gaining so much popularity, are there any plans to incorporate HTML5 with RAD asp.net ajax controls in the up comming versions. So that the asp.net ajax controls would start utilizing the capabilities of html5, like html5 forms, hardware capabilities(SVG) and render tags all which would be supported by the executing browser. Waiting for your reply as a lot more depends on that.
mirang
Top achievements
Rank 1
 answered on 28 Nov 2011
1 answer
48 views
We've seen our radGrid where page numbers 1 and 2 are highlighted and not clickable,
almost as if we were on both page 1 and 2.
Screen shot attached

Its happened a couple times but were not able to recreate it. We dont have much to go on but do have a screenshot to prove it.

Has anybody else ever seen this behaviour?
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2011
4 answers
135 views
Hello,

I am setting localization.recurrence field to "Create recurring series of task" but it is wrapping and not displaying in a single line.
The dfault width of this recurrence label is set to 75px.Please reply as soon as possible.


Thank in advance,
Madhu.
Saimadhukar
Top achievements
Rank 1
 answered on 28 Nov 2011
7 answers
273 views
Hi,

I've a RadToolBar in RadListView's itemTemplate.
My problem is that; When I give CommandName to RadToolBarButtons. listview's ItemCommand function doesn't catch it.

protected void lv_ItemCommand(object source, RadListViewCommandEventArgs e)
{
...
}

..
<
telerik:RadToolBar ID="tb" runat="server">
<Items>
<telerik:RadToolBarButton runat="server"  text="test" CommandName="Edit"></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>
..


only if I give a buttonClick command to RadToolBar, tb_ButtonClick function can do it..
<telerik:RadToolBar ID="tb" runat="server" OnButtonClick="tb_ButtonClick">
<Items>
<telerik:RadToolBarButton runat="server"  text="test" CommandName="Edit"></telerik:RadToolBarButton>
</Items>
</telerik:RadToolBar>


My Question is that; Is there any way to catch ListView_ItemCommand function by not using RadToolBar ButtonClick ?


Thanks
Sincerely,
Caglar DUMAN
Shinu
Top achievements
Rank 2
 answered on 28 Nov 2011
1 answer
76 views
Dear Telerik Team,

I am using Rad Grid and have following columns in my Grid.

<Columns>
            <telerik:GridClientSelectColumn UniqueName="CheckboxSelectColumn" ItemStyle-HorizontalAlign="Left">
                <HeaderStyle Width="25px" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridClientSelectColumn>
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                <HeaderStyle Width="30px" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridEditCommandColumn>
            <telerik:GridCheckBoxColumn DataField="ysnPrimaryAddress" ConvertEmptyStringToNull="true"
                DefaultInsertValue="false" HeaderText="Primary" SortExpression="ysnPrimaryAddress"
                UniqueName="ysnPrimaryAddress" HeaderTooltip="Primary" Visible="false">
                <HeaderStyle Width="50px" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="strPrimaryAddress" HeaderText="Primary" SortExpression="strPrimaryAddress"
                UniqueName="strPrimaryAddress" HeaderTooltip="Primary" CurrentFilterFunction="Contains">
                <HeaderStyle Width="90px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="strAddressType" HeaderText="Address Type" SortExpression="strAddressType"
                UniqueName="strAddressType" HeaderTooltip="Address Type" CurrentFilterFunction="Contains">
                <HeaderStyle Width="90px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="strAddress1" HeaderText="Address 1" SortExpression="strAddress1"
                UniqueName="strAddress1" HeaderTooltip="Address 1" CurrentFilterFunction="Contains">
                <HeaderStyle Width="125px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="strAddress2" HeaderText="Address 2" SortExpression="strAddress2"
                UniqueName="strAddress2" HeaderTooltip="Address 2" CurrentFilterFunction="Contains">
                <HeaderStyle Width="125px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="strStreet" HeaderText="Street" SortExpression="strStreet"
                UniqueName="strStreet" HeaderTooltip="Street" CurrentFilterFunction="Contains">
                <HeaderStyle Width="125px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="strCity" HeaderText="City" SortExpression="strCity"
                UniqueName="strCity" HeaderTooltip="City" CurrentFilterFunction="Contains">
                <HeaderStyle Width="90px" />
            </telerik:GridBoundColumn>
        </Columns>

I really don't understand why Filter Menu doesn't show all items. Specially items like Contains, Starts With ,Ends With, Is Empty doesn't appear. Please advise. Thank you in advance for any assistance.

Regards

Pathan L.
Princy
Top achievements
Rank 2
 answered on 28 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?