smartgwt - Possible to insert some text String into filter text area -
I have ListGrid
and above each column of data, is a filter box. I can read from there and suppress the filter to filter out. How can I add some text to a text box with any method of code? I want to get a filter box on top of a column, then enter a certain string text in it so that the user can press the filter button instead of typing it
Steps to follow:
-
Use ListGrid.setShowFilterEditor
to show the filter on the grid -
Use
ListGridField.setFilterEditorProperties (textItem)
to show the filter on a specific columnExample To:
TextItem TextItem = New Textime (); // set default value list grid field.Set filterAditor properties (textItem);
-
Use the
ListGrid.addFilterEditorSubmitHandler ()
(if necessary) to submit the filter editor.
Follow
Comments
Post a Comment