I am facing the problem with Syncfusion GridGroupingControl

Posts   
 
    
tamma
User
Posts: 3
Joined: 02-Jan-2007
# Posted on: 02-Jan-2007 14:37:31   

Hi,

I generated the code for my web application with SelfServecing type and if i bind my grid (Syncfusion Grid) with Collection data, the query is executing in-definately and OutOfMemeoryException is raising. Here is the sample code. LoadDetailsCollection (_loadDetails) is my collection object to bind to the grid. GridGroupingControl1.DataSource = _loadDetails; GridGroupingControl1.DataMember = "Load_Details"; GridGroupingControl1.DataBind();

The same data if i bind to the asp.net grid it's working fine. What colud be the problem? Can anyone help on this? simple_smile

simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 02-Jan-2007 14:50:39   

tamma wrote:

Hi,

I generated the code for my web application with SelfServecing type and if i bind my grid (Syncfusion Grid) with Collection data, the query is executing in-definately and OutOfMemeoryException is raising. Here is the sample code. LoadDetailsCollection (_loadDetails) is my collection object to bind to the grid. GridGroupingControl1.DataSource = _loadDetails; GridGroupingControl1.DataMember = "Load_Details"; GridGroupingControl1.DataBind();

The same data if i bind to the asp.net grid it's working fine. What colud be the problem? Can anyone help on this? simple_smile

Does your grid have an option to stop it looking for child collections? What may be happening is that the lazy-loading is being invoked by the grid as it looks for child collections to display - you may end up loading the whole DB!

Cheers Simon

simmotech
User
Posts: 1024
Joined: 01-Feb-2006
# Posted on: 02-Jan-2007 15:00:10   

tamma wrote:

Hi,

I generated the code for my web application with SelfServecing type and if i bind my grid (Syncfusion Grid) with Collection data, the query is executing in-definately and OutOfMemeoryException is raising. Here is the sample code. LoadDetailsCollection (_loadDetails) is my collection object to bind to the grid. GridGroupingControl1.DataSource = _loadDetails; GridGroupingControl1.DataMember = "Load_Details"; GridGroupingControl1.DataBind();

The same data if i bind to the asp.net grid it's working fine. What colud be the problem? Can anyone help on this? simple_smile

Another thing - what is the "Load_Details" DataMember for? That would normally look for a child property/relationship to bind to of that name but I suspect you just need to bind to the DataSource itself - try not setting it at all or setting it to "".

Cheers Simon

tamma
User
Posts: 3
Joined: 02-Jan-2007
# Posted on: 02-Jan-2007 15:46:37   

I tried of removing DataMember value. There is no property to access the child tables properties to stop the Db calls.

jbb avatar
jbb
User
Posts: 267
Joined: 29-Nov-2005
# Posted on: 02-Jan-2007 15:52:11   

Hello,

do you have a property to define the hierchical level of your grid? How do you fetch your collection, do you have any prefetch path?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 03-Jan-2007 09:51:01   

I indeed think it's caused by the fact that Syncfusion's grid doesn't use any standard interface but simply reads the data from the properties, which triggers lazy loading.

The only way to stop this, is either by contacting syncfusion and demand a fix, or perhaps through a property of their grid which defines a max-band depth like the infragistics grids have

Frans Bouma | Lead developer LLBLGen Pro
tamma
User
Posts: 3
Joined: 02-Jan-2007
# Posted on: 03-Jan-2007 11:08:19   

I resolved of this issue, it is happening due to relations. It is working for (1:n, m:1), but if i add m:n relation to my loading table then it's going to call query indefinitely.