Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pepys on Apr 07, 2009 01:01
open dhtmlx forum
::pepysDHTMLx:: custom content in header

Hi,

 
#1

   $strXML .= "<call command='attachHeader'>";
        $strXML .= "<param>,#combo_filter,,,#combo_filter,#combo_filter,&lt;input type='button' onClick='xRefreshFilters()' value='Reset filters' &gt;</param>";
    $strXML .= "</call>";


#2

   $strXML .= "<call command='attachHeader'>";
        $strXML .= "<param>,#combo_filter,,,#combo_filter,#combo_filter,<![CDATA[ <input type='button' onClick='xRefreshFilters()' value='Reset filters'> ]]></param>";
    $strXML .= "</call>";


I want to use one of this possibilities to create a button in my filters header row, but is not working.. What is wrong..?


Answer posted by dhxSupport on Apr 07, 2009 02:06

Both methods are correct. But you should contain <call command="attachHeader"> into the<afterInit> tag:

$strXML.="<afterInit>";
  $strXML .= "<call command='attachHeader'>";
  $strXML .= "<param>,#combo_filter,,,#combo_filter,#combo_filter,&lt;input type='button' onClick='xRefreshFilters()' value='Reset filters' &gt;</param>";
  $strXML .= "</call>";
 $strXML.="</afterInit>";


Answer posted by pepys on Apr 08, 2009 04:50
I've used already the syntax what you sugested my, but only the first method  #1 is working, not #2 also. I want to use the second method, why it this not working?
Answer posted by Support on Apr 08, 2009 05:01
To use second kind of syntax, adjust it as
  $strXML .= "<param><![CDATA[,#combo_filter,,,#combo_filter,#combo_filter, <input type='button' onClick='xRefreshFilters()' value='Reset filters'> ]]></param>";
so , whole content of param tag included in CDATA