Hide grouped column headers? - jqgrid

How can grouped column headers be hidden?
What I mean is turning this:
... into this:
Documentation didn't help unfortunately.
Grouping demo

You can use destroyGroupHeader method.

Related

CS-Cart feature values on the list pages

In CS-Cart how can I get separate feature values in the list views?
In the detail view you can get any feature that is available by doing something like this:
{$product.header_features.1.value}
But in the list views it seems the only way to get features is like this:
{assign var="product_features" value="product_features_`$obj_id`"}
{$smarty.capture.$product_features nofilter}
Which results in a comma separated list wrapped in a div. If the feature is a number it means you end up with a meaningless list of numbers without labels.
Is there any way to have each feature available to the template, so I can add icons before each?
With much investigation I finally found that the line:
{assign var="product_features" value="product_features_`$obj_id`"}
is getting it's information from the file templates/common/product_data.tpl
Looking at that file clearly shows it get features from the file views/products/components/product_features_short_list.tpl
Then to identify each feature all I needed to do was add a wrap in the foreach like this:
<span class="grid-feature feature_{$feature.description|lower|replace:' ':'-' nofilter}"></span>
and CSS can do the rest.

How to hide tablix using two conditions

when I try to hide table with below expression it's not working.
=iif(Parameters!parametername.Value="ABC" and Countrows("datasetName")=0 ,false,true)
Thanks,
Praveen.
Use
Count("datasetName")=0
instead of
Countrows("datasetName")=0

Jqgrid table id - how to refer to it in jquery

I am having a bit of difficulty refering to a table element of the Jqgrid directly as it appears to be lacking a id element. Is there any way to do so?
When I look at the source code, I see a non-standard aria-labelledby element which I am assuming is Jqgrid's own but doesn't help me.
Any ideas?
I have refered to the grid table as follows:
$('#gbox_mytableID table')
I am assuming one could also do
$('[aria-describedby=mytableID]')
But I haven't verified it.
My html looks like this:
<table id="mytableId"></table>

First two items in Kendo Panel

I need to find first two tags within Kendo PanelBar to add a css class. Can anyone suggest how to achieve this?
What do you mean by tags? Headers? If this the case, you can use something like this code :
$(".k-panelbar li > .k-header:lt(2)").addClass("my-class");

How to use setColumns() in JQGrid?

Hi I wish to set the Column values for my grid using setColumns(). Now I don't know how to use the said function.
Can someone help me with this?
Thanks
-Jason
I already know how to use columnChooser. But what I want to happen is to set the grid depends on per users preference. I mean, per customer has its own default columns to be displayed that is saved in the database.
So now, once the page load per customer, the columns for that customer will be the one to be shown on the screen. So I need something that can do this when the page loads. And so far the only option is setColumn (even setcolumn is not the best option).
Do you have anything to offer?
Please help.
Thanks
The setColumn method is old and is not more supported started with jqGrid 4.0.0. You can include grid.setcolumns.js from the plugins directory to use setColumn, but I don't recommend you to use it.
You should use more powerful columnChooser method instead. I recommend you to look at the following answer which describes how to use columnChooser.

Resources