girish_327
Posts: 108
|
| Posted: 08/15/2007, 9:36 AM |
|
Hello All,
I am facing problem creating grid with search facility. I have grid and search component on the page and having over 100 records.
I like to Hide the grid on initial page display and when user click on search (listbox) component it will display the filtered records.Search Component Contents show all records listitem which will show all the records same time but I don't know how to do this in CCS. Search Compoenet Listbox has following type records (A1,A2,A3,B1,B2.B3)
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com |
 |
 |
DonP
|
| Posted: 08/15/2007, 10:43 AM |
|
In a grid Before Show event, you can set a visibility here so that if no
search parameters are received, the grid is hidden.
if (!CCGetParam("SearchParam","")) {
$gridname->Visible = 0;
}
OR
if (!CCGetParam("SearchParam","")) {
$gridname->Visible = False;
}
CCS recommends such an event on a Page event but I've never gotten it to
work that way so I put it directly on the item I want to hide.
Don
"girish_327" <girish_327@forum.codecharge> wrote in message
news:546c32ba5639bc@news.codecharge.com...
> Hello All,
> I am facing problem creating grid with search facility. I have grid and
> search
> component on the page and having over 100 records.
>
> I like to Hide the grid on initial page display and when user click on
> search
> (listbox) component it will display the filtered records.Search Component
> Contents show all records listitem which will show all the records same
> time but
> I don't know how to do this in CCS. Search Compoenet Listbox has following
> type
> records (A1,A2,A3,B1,B2.B3)
> _________________
> Girish Baraskar
> Web Designer/Developer
> http://www.agnisdesigners.com
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
girish_327
Posts: 108
|
| Posted: 08/15/2007, 10:49 AM |
|
I just checked your suggested code its hide the Grid but Now how can I show All the records in on search string.
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com |
 |
 |
datadoit.com
|
| Posted: 08/15/2007, 6:02 PM |
|
girish_327 wrote:
> I just checked your suggested code its hide the Grid but Now how can I show All
> the records in on search string.
> ---------------------------------------
Try creating a button or a link that sends a parameter such as
's_ShowAll'. Then, in the grid's BeforeBuildSelect Event, look for this
parameter. If set, then adjust your WHERE parameters. Look in the help
file for Dynamically Modifying the Where Parameter.
|
|
|
 |
girish_327
Posts: 108
|
| Posted: 08/16/2007, 6:48 AM |
|
Thanks DATADOIT.COM
I have created the extra link and sends a parameter
's_ShowAll' and added following code before show Grid
if (!CCGetParam("s_admin_heading_id","")&& !CCGetFromGet("s_ShowALL",""))
{
$admin_heading->Visible = 0;
}
_________________
Girish Baraskar
Web Designer/Developer
http://www.agnisdesigners.com
http://www.eindianpaintings.com
http://www.realestatekolhapur.com |
 |
 |
|