SelfServicing, LLBLGenProDataSource and searching

Posts   
 
    
KastroNYC
User
Posts: 96
Joined: 23-Jan-2006
# Posted on: 23-Aug-2006 18:12:14   

I've got a Grid hooked up with the LLBLGenProDataSource and i've added some controlparameters through the designer to filter the results of the grid using two listboxes and a textbox. I want the default search results to show all results when no values are selected for any of the search controls. How can I accomplish this? I'm currently using LivePersistence = True.

BTW, I am using this in an Atlas Project and with LivePersistence = True everything works beautifully, except for retreiving the correct default results (all results) and I'd rather not turn it off. For some reason when I turn of LivePersistence and try to apply a filter in the PreformSelect event of the LLBLGenDataSource my grid won't refresh in this Atlas page, it shows just my grid header without any of the results however it works fine in a regular page. Main problem is just the default search results.

Any help is greatly appreciated. Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 24-Aug-2006 08:02:28   

What datagrid are you using? a normal GridView, DataGrid or a third party grid? Please specify

Also please check this thread, it might be relevant to your issue: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6808

KastroNYC
User
Posts: 96
Joined: 23-Jan-2006
# Posted on: 25-Aug-2006 02:25:24   

I'm using a GridView, no third party controls plain old ASP.NET 2.0 GridView control.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 25-Aug-2006 10:57:36   

I don't see why it should make a difference: as the call for data is coming from the grid and then the datasourcecontrol fetches the data: either through raising the event (which triggers your PerformSelect) or by doing the fetch itself. After that it marks itself as changed so it should work: it doesn't make a difference for the grid what the livepersistence setting is: the end result for the grid is the same.

Could you try without atlas tags to see if it then works?

Frans Bouma | Lead developer LLBLGen Pro