This is a migrated thread and some comments may be shown as answers.

ToString() called for object while databinding

2 Answers 12 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jean
Top achievements
Rank 1
Jean asked on 20 Jul 2010, 10:22 PM
It seems that ToString() is called for every object in datasource with no reason. My problem is that the function is overrided and is time consuming (bad writed).

After some research, i see the line in GridBoundColumn.cs in method OnDataBindColumn
            if (item1.DataItem != null && item1.DataItem.ToString() == "Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem")

I do not known why it is necessary, why not item1.GetType().FullName ?

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 21 Jul 2010, 08:09 AM
Hi Fabrice,

You are correct in your observation. We shall be addressing this issue shortly and getting back to you with more information.

Best wishes,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Accepted
Tsvetoslav
Telerik team
answered on 21 Jul 2010, 09:54 AM
Hello Fabrice,

I am glad to inform you that the issue has been addressed and the fix will be available in the next latest internal build of the controls that you can download from your customer's account. The easiest way to upgrade your Sharepoint application is just to replace the Telerik.Web.UI.dll in the GAC with the new ones.

Your telerik points have been updated accordingly for reporting the issue.

Best wishes,
Tsvetoslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Jean
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or