WebBusinessBindingSource binding to RadGrid


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You should not be the only person using a WBBS on a Telerik grid. So this is something that we will have to add to the "things to look at" list and download Telerik onto a Virtual Machine. So this may be a slightly longer turn-around, but I do want to take a look and see what is happening. Thanks.
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Thanks Trent,



We would appreciate any help you could provide with this. It's really a problem for us.



Govinda
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Hi Trent,



is there an update on this? Did you get a chance to setup that test machine with the Telerik trial?



Thanks,

Govinda
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Sorry, about the delayed response.



We have not been able to reproduce the error. Could you please post a sample as I may be doing something different than you. If you could use the StrataFrameSample database that would be good also. But any sample that is easy to load and reproduce the error would be helpful. Thanks.
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Trent,



here is a project that reproduces the error I'm getting and uses the StrataFrameSample database. There are 2 pages, Default.aspx and WithRadGrid.aspx. Default uses the WBBS with a .net GridView and WithRadGrid uses WBBS with RadGrid. Click the "Fill Data" LinkButton to load the bound Businessobject with data from the dbo.Orders table.



Thanks in advance for your attention to this.



Govinda
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Hi Trent,



Any status on this? Is the project that I uploaded usable? I'm pulling my hair trying to find workarounds for this.



Thanks,

Govinda
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Working on this morning and I will let you know what I find. We finally got a full license from Telerik which will make it easier to support you when these types of things come up. I just wanted to apologize for the delay on this post. You have been a saint waiting for an answer and I will get you one quickly. Thanks.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Govinda,

One thing that I have learned over the years when dealing with web applications is that at times, the web.config is the root of many issues.  Combine that with weak typing and a typo here or there and it becomes hard to tell where the problem actually resides.

First, there was a configuration declaration causing an issue within the web.config file.  The declarations where actually correct in the sense that there were no typos.  However, certain AJAX components, such as the RadScriptManager, will update the config at times and through the use of some designer links (the little arrow at the top right when the control is selected).

At any rate, there were some version conflicts.  Note that I got the exact error that you were receiving right off of the bat, but I had to change the references as you are running an older version of Telerik AJAX than I am. 

Correcting the error:

  1. Open the web.config file.
  2. Comment out the <configSections>


  3. If you run now, you will receive a different error indicating that the field "id" doesn't belong to the data source.  This is due to a type somewhere.  I didn't go to the extent of determining the column where the typo existed.  I just cleared the data source and re-bound it to include all columns.
  4. After making this correction (the typo in the grid columns), if you run you will now see the data within the RadGrid as you have intended.

I have attached the corrected solution.  However, the references have been changed to 2009.2.826.20 to match my current version of Telerik.

So the good news is that there is no bug and your current version of SF will work just fine.  Hope this helps! Smile

Attachments
Corrected_TelerikGridSample.zip (199 views, 112.00 KB)
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Hi Trent,



Thanks for looking into this. I tried your recommendation and I'm still getting that error. I loaded the test project you sent; I changed the references to Telerik.Web.UI from 2009.2.826.20 to 2008.2.826.35 and the database connection string and ran it. Default.aspx ran fine but WithRadGrid.aspx gave the same error.



The last 2 digits of the version number represent the .net version it was compiled under (i believe). I'm wondering if you would get the same error if you tested with 2009.2.826.35? You should be able to find this assembly in the Bin35 directory under [C:\Program Files\Telerik\RadControls for ASPNET AJAX Q2 2008]. Can you please test this?



[InvalidOperationException: This is a single-use enumerator and cannot be reset.]

MicroFour.StrataFrame.Business.Enumerator.MoveNext() +130

MicroFour.StrataFrame.UI.Web.Enumerator.MoveNext() +95

Telerik.Web.UI.AdvancedEnumerator.MoveNext() +40

Telerik.Web.UI.GetEnumerator>d__0.MoveNext() +95

Telerik.Web.UI.GridDataTableFromEnumerable.FillDataTableFromEnumerable(IQueryable enumerable) +176

Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +3864

Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +626

Telerik.Web.UI.GridResolveEnumerable.Initialize() +32

Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +20

Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +151

Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +129

Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +383

Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +141





Thank You,

Govinda
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Hi,



just following up on my last post. Does it make sense for you to do that test?



Thanks,

Govinda
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search