title: Decimal Format in Yii TBGridview
body: <p>I have code like this : <br/></p>
  
  <pre><code>&lt;?php 
  $this-&gt;widget('bootstrap.widgets.TbGridView',array(
  'id'=&gt;'appliances-grid',
  'dataProvider'=&gt;$model-&gt;search(),
  'filter'=&gt;$model,
  'columns'=&gt;array(
          array(
              'name'=&gt;'price',
              'type'=&gt;'number',
              'htmlOptions'=&gt;array('style' =&gt; 'text-align: right;'),
          ),
          array(
              'class'=&gt;'bootstrap.widgets.TbButtonColumn',
              'template'=&gt;'{update}{delete}'
          ),
      ),
  )); 
  ?&gt;
  </code></pre>
  
  <p>the result is integer number only and search filter is work, how to change it into decimal format but search filter still working ? <br/>
  I tried to change it into :</p>
  
  <pre><code>array(
      'name'=&gt;'price',
      'type'=&gt;'number',
      'htmlOptions'=&gt;array('style' =&gt; 'text-align: right;'),
      'value'=&gt;function($data)
               {
                  return number_format($data-&gt;price,2,',','.');
               },
  ),
  </code></pre>
  
  <p>But it makes search filter not working properly.</p>