﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 06:05:46 GMT</lastBuildDate><ttl>20</ttl><item><title>Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11437.aspx</link><description>I'm having difficulties trying to display data in a Telerik RadGrid that is bound via a WebBusinessBindingSource.&amp;nbsp; First I&amp;nbsp;fill the bound BO with 3&amp;nbsp;records.&amp;nbsp;&amp;nbsp;The RadGrid ends up displaying 3 items (or how ever many I've filled the BO with) but each line displays the data from the first record.&amp;nbsp; All the fields are displaying correctly, including the custom ones, except that it's the same data 3 times.&lt;/P&gt;&lt;P&gt;I've created a duplicate RadGrid that I connect directly to the BO, bypassing the WBBS and I get my 3&amp;nbsp;records and each line is displaying the correct data.&amp;nbsp; Except that here my custom fields are not displaying correctly.&lt;/P&gt;&lt;P&gt;Finally,&amp;nbsp;just to take all the wind out of my sales&amp;nbsp;when I use&amp;nbsp;the&amp;nbsp;default GridView bound via the WBBS it displays normally, different data on each line and the custom fields are displaying correctly...&lt;/P&gt;&lt;P&gt;How do I fix this?&amp;nbsp;&amp;nbsp;</description><pubDate>Mon, 15 Oct 2007 11:08:15 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11994.aspx</link><description>I created a test solution that demonstrates the issue.&lt;br&gt;
&lt;br&gt;
You can see the WBBS version repeats the same row value.&lt;br&gt;
&lt;br&gt;
I really appreciate your help on this.&lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 15 Oct 2007 11:08:15 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11724.aspx</link><description>I forgot to mention but in case anyone cares my above hack doesn't work if the grid is using&amp;nbsp;paging.&lt;/P&gt;&lt;P&gt;Could probably wire it up to keep track of what&amp;nbsp;row it should be displaying but I havn't had the time.&lt;/P&gt;&lt;P&gt;A real fix for the WBBS would be great.</description><pubDate>Thu, 27 Sep 2007 10:37:38 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11625.aspx</link><description>&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#111111&gt;Ben,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111&gt;For lack of a better solution I am forced to use this hack for the time being.&amp;nbsp; I'm binding to the BO rather than the WBBS.&amp;nbsp;&amp;nbsp;Do you have any idea why the WBBS is not advancing the CurrentRecord?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;RadGrid1.ItemDataBound += &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; Telerik.WebControls.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;GridItemEventHandler&lt;/FONT&gt;&lt;FONT size=2&gt;(RadGrid1_ItemDataBound);&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; RadGrid1_ItemDataBound(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, Telerik.WebControls.&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;GridItemEventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;BR&gt;{&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;&amp;nbsp;&amp;nbsp; GridItemType&lt;/FONT&gt;&lt;FONT size=2&gt; item = e.Item.ItemType;&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp; switch&lt;/FONT&gt;&lt;FONT size=2&gt; (item)&lt;BR&gt;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;GridItemType&lt;/FONT&gt;&lt;FONT size=2&gt;.AlternatingItem:&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#008080 size=2&gt;GridItemType&lt;/FONT&gt;&lt;FONT size=2&gt;.Item:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MyBO.MoveNext();&lt;BR&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break&lt;/FONT&gt;&lt;FONT size=2&gt;; &lt;BR&gt;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 20 Sep 2007 12:34:49 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11552.aspx</link><description>Ben,&lt;/P&gt;&lt;P&gt;So have you had a chance to try to reproduce this?&amp;nbsp; I'm still trying to figure it out with no luch so far.</description><pubDate>Tue, 18 Sep 2007 14:56:07 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11474.aspx</link><description>OK, so the rad grid is displaying the correct number of records on pagination, just not the correct data for the records.&amp;nbsp; That makes sense.&amp;nbsp; I was thinking that it always displayed 5 records (with the same data) and didn't split it off into pages of 3 records.&amp;nbsp; &lt;/P&gt;&lt;P&gt;OK, that gives me some more info.&amp;nbsp; Thanks.</description><pubDate>Fri, 14 Sep 2007 09:57:38 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11461.aspx</link><description>&lt;FONT&gt;Sorry I wasnt more clear.&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;To simplify things and isolate the issue I created a new solution from scratch. I only added the one BO and the &lt;SPAN class=hm id=misp_compose_2&gt;RadGrid&lt;/SPAN&gt; to the page. I added a &lt;SPAN class=hm id=misp_compose_3&gt;RadGrid&lt;/SPAN&gt; and a &lt;SPAN class=hm id=misp_compose_4&gt;GridView&lt;/SPAN&gt;. I set both to allow paging and to have a &lt;SPAN class=hm id=misp_compose_5&gt;pageSize&lt;/SPAN&gt; of 3. Both are bound to my &lt;SPAN class=hm id=misp_compose_6&gt;WBBS&lt;/SPAN&gt;, which is wrapping my BO. I Fill my BO with the following 5 records.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;1 - foo&lt;BR&gt;&lt;/FONT&gt;&lt;FONT&gt;2 - bar&lt;BR&gt;&lt;/FONT&gt;&lt;FONT&gt;3 - zip&lt;BR&gt;&lt;/FONT&gt;&lt;FONT&gt;4 - zap&lt;BR&gt;&lt;/FONT&gt;&lt;FONT&gt;5 - &lt;SPAN class=hm id=misp_compose_7&gt;ack&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The &lt;SPAN class=hm id=misp_compose_8&gt;GridView&lt;/SPAN&gt; displays the 3 records as expected, including the custom fields. and paginates normally to the 4th and 5th records.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;The &lt;SPAN class=hm id=misp_compose_9&gt;RadGrid&lt;/SPAN&gt; on the other hand is displaying 3 records, but all three are displaying 'zip' and even stranger when I paginate forward the 2 records that are displayed both show as 'foo'. This happens regardless of the &lt;SPAN class=hm id=misp_compose_10&gt;pagesize&lt;/SPAN&gt; I set, it always displays the expected last record in place of all the displayed records. The only time this is not true is if I disable pagination and remove the &lt;SPAN class=hm id=misp_compose_11&gt;pagesize&lt;/SPAN&gt;, in that case it displays the first record ('foo') for all five entries.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I hope I'm making sense, thanks for your help!</description><pubDate>Thu, 13 Sep 2007 16:44:25 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11457.aspx</link><description>When you are working with the pagination, are you binding to the RadGrid, or just to the basic DataGridView?</description><pubDate>Thu, 13 Sep 2007 13:17:09 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11456.aspx</link><description>Thanks Ben!&lt;/P&gt;&lt;P&gt;Something else that isn't working when I bind&amp;nbsp;via the WBBS is&amp;nbsp;pagination.&amp;nbsp; When I enable pagination, set pagesize to 3 and&amp;nbsp;fill my BO&amp;nbsp;with 5 records,&amp;nbsp; I get the footer but I have 5 records displayed rather than the 3 I would expect.&amp;nbsp; If I bind the same RadGrid directly to the BO (rather than to the WBBS) I can paginate normally, but I&amp;nbsp;get 'System.Data.DataRowView' where I should be seeing my custom fields.&lt;/P&gt;&lt;P&gt;I really appreciate your help on this!</description><pubDate>Thu, 13 Sep 2007 10:16:27 GMT</pubDate><dc:creator>Rob Toyias</dc:creator></item><item><title>RE: Problem properly displaying data in 3rd party control using WebBusinessBindingSource</title><link>http://forum.strataframe.net/FindPost11454.aspx</link><description>It might be the way that Telerik is enumerating over the business object when using the WBBS.&amp;nbsp; Since the default web grid is working properly, we'll need to get a copy of the Telerik controls and test is to see what is causing the issue.</description><pubDate>Thu, 13 Sep 2007 09:56:02 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>