How to change header template in extjs 4 grid panel - extjs4

I want to change default header template of grid. I do not know what config or property to set. I tried "renderTpl" , "tpl" , "metaRowTpl" but these property related to row in grid, where i want to change header.
Any example or link would be great.
Like above image, I want extra header/row/column-header in between where text will come from database (and basically it is filter information).

You change the header text with the following command
yourGrid.getView().getHeaderAtIndex(columnIndex).setText('Header Text');
http://jsfiddle.net/alexrom7/YNTuN/3/

Related

Disable Vue Bootstrap Table Header Renaming

I am using b-table on vue-bootstrap using this code:
b-table :fields="queryResult.columns" :items="queryResult.rows"
The field is like this: id, column_name, column_hide
But, it automatically generates 'translated' header name, column_name to Column Name.
Is there any way to disable 'auto-renaming' on that table header ?
According the documents, there is a label attribute that can be set on the fields prop
Appears in the columns table header (and footer if foot-clone is set).
Defaults to the field's key (in humanized format) if not provided.
It's possible to use empty labels by assigning an empty string "" but
be sure you also set headerTitle to provide non-sighted users a hint
about the column contents.

Remove filter description in enhanced grid dojo

I would like to remove the filter description in dojo enhanced grid.
Here is the image:
The message is part of FilterBar of the plugin Filter. Try getting the filter bar from Filter like
var filterBar = dijit.byId('grid').pluginMgr.getPlugin('filter').filterBar;
Next, the text is set with attach point name as 'statusBarNode'
Once you the attachpoint, you can change the text by using set() method or innerHTML
Hope this helps.

Dojo tree grid shows ... for null valus

Hi I am using Dojo tree grid for my application,
For null values, Dojo tree grid uses "..." . I need to show it as empty field. Help me how to avoid "..." in tree grid display?
Sorry i couldn't add screenshot. Bcoz i dont have enough reputation
Thanks,
Siva
So I am assuming you are using dojox/grid/TreeGrid. You need a custom formatter function for your cells in the layout object you provide for the grid . Check out the documentation for the cell formatter http://dojotoolkit.org/reference-guide/1.10/dojox/grid/DataGrid.html. In your formatter you need to check if the value is not what you want and return an empty string.

How to specify page size in dynamically in yii view?

How to specify page size in dynamically in yii view?(not a grid view)
In my custom view page there is a search option to find list of users between 2 date
i need 2 know how to specify the page size dynamically? If number of rows less than 10 how to hide pagination ?
please check screen-shoot
I dont want the page navigation after search it confusing users..
my controller code
$criteria=new CDbCriteria();
$count=CustomerPayments::model()->count($criteria);
$pages=new CPagination($count);
// results per page
$pages->pageSize=10;
$pages->applyLimit($criteria);
$paymnt_details=CustomerPayments::model()->findAll($criteria);
$this->render('renewal',array('paymnt_details'=>$paymnt_details,'report'=>$report,'branch'=>$branch,'model'=>$model,'pages' => $pages,));
}
my view
Link
I'm assuming you want the entire list of search result be shown on a single page, no-matter how long it is?
If so, this is quite easy to achive.
As I can see in your code, you are now defining your pageSize to have a size of 10. You can update it to be dynamically be doing this:
$pages->pageSize = $count;
To remove the pagesizes you can change the css of your view file, but for that we would need your view file to see how you defined it.

Change parameter name on selection screen to a real text

I'm trying to replace the parameter name shown on the selection screen.
For example I have:
PARAMETERS pa_age TYPE age_type DEFAULT '18'.
It shows PA_AGE on the screen.
How to change it to How old are you? for instance?
You have to define a text via Goto->text elements->selection text.
If you develop in another language as you execute your code, you need also a translation.
Via menu Goto->Text Elements->Selection Text.