Select to view content in your preferred language

Robert's Enhanced Search Widget - Datagrid button

2747
5
Jump to solution
01-11-2012 05:09 AM
AshleyPeters
Frequent Contributor
How do I remove the Datagrid button from the widget? None of the layers I use require that the results be opened in a grid. I figure this is an easy fix and that I'm just missing where I change the code.

Thanks in advance for the help!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Sorry that was my mistake, that only disables the blue results button. The latest Version 2.5.1.1 available now does have the disablebuttons option for datagrid.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   It doesn't require a code change. All you have to do is disable the button in the SearchWidget.xml

<disablebuttons>grid</disablebuttons><!--possible values one or more not all three search types comma separated text,graphic,spatial,grid -->


This is explained in the Enhanced Search Widget XML Configuration.pdf
0 Kudos
AshleyPeters
Frequent Contributor
I completely missed that. Thanks Robert!
0 Kudos
AshleyPeters
Frequent Contributor
When I tried that, it removed the results button. The green table button is still there. See the attached screenshot with message stating 'datagrid not configured'.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Sorry that was my mistake, that only disables the blue results button. The latest Version 2.5.1.1 available now does have the disablebuttons option for datagrid.

http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
0 Kudos
AshleyPeters
Frequent Contributor
That got it. Thanks Robert!
0 Kudos