How to filter Grouping Grid in Each Group ExtJS 4 - extjs4

I am creating a Grouping Grid. Here am following these steps:
Store has all records
OnLoad of grid am filtering Store, so am getting all filter data for each group & displaying under corresponding group.
Here All Groups are expanded with filter data and the Icon is "-", but I want the icon should show "+" Icon. So that when I will expand or click on the groupName it will show all records of that group.
Let's say there are 5 records under a group and when Grid loaded it displayed 2 filtered record with "+" icon. So when I click on the GroupName / + icon it should display 5 records.
Basically looking for Group filteration and at collapsed condition it should display the filtered data.
Appreciate your answers & thanks in advance !!

Try if you can get the current grouping field and its value. After this you can filter the store accordingly. Hope it helps or post code sample.

Related

VB.Net & RDLC reports: Display dataset records as fixed fields

I'm developing a rdlc report, that uses the data from a dataset, programmatically filled (from VB.Net). I need to display the data of the dataset as in the linked photo, so not in a classic "table" way, but each page of the report will concerne only one record of the dataset. Any cells of first page will be filled with the data of the first row of the dataset, the second with the second and so on.
Is it possible to display the report in this way with rdlc?
Further to my comment, I believe it's possible to do what you want using the table, with a bit of work on the layout.
Start by adding a table in the normal way, and get that basically working ie so that it shows all the data across one row. Then work on re-arranging the cells so that they are in vertical columns. Do this by right-clicking in the shaded area to the left of the rows, and select 'Insert Row'
Finally create a group around the whole thing, and group by Item Number or w/e is appropriate for your data. Then in the 'Row Groups' window at the bottom of the designer, right click your new group and select 'Group Properties > Page Breaks > Between each instance of a Group.
This should get you pretty close to your required layout.

Toggle groups based on a parameter

I have a reporting requirement in which I have 3 groupings
Group_1 parents -> Group_4 lowest child
I have a groupingID param which is an int that I'm using to show the same report either as region/div or emp/supervisor. Group_1 =totals and Group_4 = Employee and NULL for region/division.
Updated requirements want me to not show toggle button at Group_3 = Region level if GroupingID is set to region/division. As region is the lowest level.
While still show toggle "+" button if grooupingID param is emp/supervisor.
I tried this expression for "row visibility but to no luck.
=iif(Parameters!GroupingID.Value=1,True,iif(Fields!Group_4.Value=Nothing,True,False))
This expression shows + for Reg/division report.
Row visibility is more for whether or not you want to show a particular row. When I've had a need to show a summary and detail, I would make 2 tablixes and show/hide the proper one based on my parameters.
I'm not sure if you can conditionally change grouping sets via row level expressions, but if you could, it would probably be a lot more ugly than doing separate tablixes. Down side to this approach is that you have 2+ tablixes that are similar to maintain.
Data Architect proposed a solution which solved it. Add a new column in tablix to the left of all the groupings.
Depending on which group level you wish to toggle (in my case at group_3) just use the text box (to the left) of group_3 text box as 'toggle item by' in the properties for group_4. This solved the issue I was having.

ssrs column visibility inside row groups

i have a report that has multiple groups mostly in rows and one column group but i need to show certain columns based on parameters selected. As show in the image when i right click on speciality column the column visibility is not available. Can somebody help me on this.
thanks
(source: ravidowluri.com)
I solved it myself without using visibility option in columns instead hide and show the header text based on parameter value and border style in properties window
Visibility can be set in the Properties sidebar for that group column.
I resolved by selecting all the cells (one at a time) under the group header(s)/column and setting the associated text box Hidden to "true"

Grid expand on data Clicked

I have a Grid with say 10 rows and 5 columns. suppose the first column is "Name"
So the data would be some thing like
Name
abc
xyz
pqr
Now My query is, I want to Expand the Row on "abc" click, i.e. on "Name" columns data click.
And wanted to show the data of the other columns from the same row.
I have attached the image , Hope this will clear my requirement.
In the image it is shown that, the RowExpander, we can make the row expandable. I wan the same functionality but not on click the Plus image, but on the name of the first column. i.e. from the above image when user clicks on "3m Co" from the company column. the Row should get expanded. i.e. what currently displayed in the image.
My advice is to stick with the rowexpander plugin - it's UI is much more user friendly than what you want to do.
The other way is to use rowbody and add custom functionality to collapse the rowbody with an itemclick listener - yeah good luck with that :)

Grid Default Grouping after regrouping

I have a Grid with Grouping feature. I have set the "groupField" config to the column on which I want grouping. So when the page get load , Grid shows the grouped columns.and it is working fine.
for my requirement, I have not added the column [on which I am doing grouping] to the Grid. So the Grid doesn't show the Grouped column.
so the scenario is like.
if eg.
Grid with 5 column [Name, Email,Status,address,city]
currently displayed column= 4 [Name,Email,address,city]
Grouped column= 1 [status]
Now My Query is, out 4 [currently displayed ] column if, I changed the grouping to "city", [remember, on page load we have grouped Grid data, since I have set "groupField=status" in store] how will I go back for the default grouping [i.e. Grouping on status column]?
Note: The column "status" is not displayed to Grid, there is no header option from which I can change the Grouping.
Hope I am able to explain well here.
You can create button which will turn on grouping by status like in Ext JS example (there is only clearing, but you can do grouping as well).
Another possibility is to create handler on beforeload event in store, and check if there is any grouping turned on - if not turn on grouping by status. Then you can't turn off grouping.