We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Essential Grid Search Button

Hi, How to change Grid's Search Button Text ?


1 Reply

VK Vishnu Kumar Syncfusion Team February 14, 2008 09:48 AM UTC

Hi Ramazan,

Thank you for your patience.

Issue: How to change Grid's Search Button Text

I regret to let you know that currently we do not provide direct support to change the search button text in our code library. But You can change the search button text using the below code snippet.


JavaScript:
$script type="text/javascript">
function Searchtext()
{
var tablecell=document.getElementById("GridGroupingControl1~SearchButton");
var button=tablecell.getElementsByTagName("INPUT")[0];
button.value="Search Text";
}

$/script>



You have to call the JavaScript function Searchtext in two places.
1. $body onload="Searchtext()">
2. $sfwg:gridgroupingcontrol AfterCallbackResponseProcessedScript="Searchtext()" id="GridGroupingControl1"

Note : Please note that we are used '$' instead of '<'

Please refer the sample in the below link which illustrates the above:

http://websamples.syncfusion.com/samples/Grid.Web/6.1.0.34/71692/main.htm

Please try running the above sample and let me know if this helps.

Regards,
Vishnu.





Loader.
Live Chat Icon For mobile
Up arrow icon