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

[Solved] Search using empty parameters?

1 Answer 29 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Megan
Top achievements
Rank 1
Megan asked on 17 Oct 2008, 01:01 PM
I have a grid, some textboxes underneath for input and a search button.

When the search button is pressed a stored procedure is activated to use parameters from the input boxes to search the grid for the matching value.

However it only seems to work when all the fields are not null oterwise the grid collapses.

It works fine when testing the query from 'Configure data source' so the issue is with how I've coded the radgrid.

Can I somehow tell it to accept some null parameters?

1 Answer, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 20 Oct 2008, 12:47 PM
Hi Megan,

Can you please provide a little bit more details on the approach? Are you using a filter expression to handle this case, or perhaps re-setting the datasource for the control?

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Megan
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or