PDA

View Full Version : [CLOSED] LiveSearchGridPanel



odyssey
Jun 05, 2014, 9:23 AM
Is it possible to make LiveSearchGridPanel plugging to make multiple matching .For ex.
lest say I have 2 words "one" and "two" how to highlight both of the with different color.
I tried the following but withgout success


<ext:LiveSearchGridPanel runat="server" ID="plgLiveSearch" MatchCls="x-blue-livesearch-match" >
<Listeners>

</Listeners>
</ext:LiveSearchGridPanel>
<ext:LiveSearchGridPanel runat="server" ID="LiveSearchGridPanel1" MatchCls="x-red-livesearch-match">
<Listeners>
</Listeners>
</ext:LiveSearchGridPanel>

Running in console
Ext.getCmp('grdResultSetData').plugins[1].search("one") and
Ext.getCmp('grdResultSetData').plugins[0].search("two") just replaces the previous match

Daniil
Jun 05, 2014, 12:41 PM
Hi @odyssey,

Unfortunately, there is no such the functionality in the LiveSearchGridPanel plugin and it is not designed to be used twice for the same GridPanel.

You can investigate the LiveSearchGridPanel plugin's sources and give it a shot to override/tweak to meet your requirement.