Clarity Datagrid custom filtering isn't working with more than one filter - vmware-clarity

I created the non-working sample application here:
https://stackblitz.com/edit/clarity-light-theme-v2-dwqmgr
The Role filtering is working, but the Group filtering is not.
The weird part is the datagrid is showing as if it is filtered, however the event sent as part of the clrDgRefresh does not have the custom filter for the non-working filter.
Does anyone have any ideas what I'm doing wrong?
Thanks!

Related

In app maker, how can I clear a column sort?

When app maker creates a table it can make the columns sortable, which is great, but after a user clicks on a column, how can you clear that sort setting to get the table back to either the default settings from when the page first loaded or a specific sort order as in the script below? I am presently using a Refresh button which merely reloads the datasource, but the column sorting remains. Suggestions?
I have tried reloading or navigating back to the page itself, but that had no effect either.
this is the augmented Refresh onClick script that includes the sort order:
widget.datasource.query.sorting.App._ascending();
widget.datasource.query.sorting.Role._ascending();
widget.datasource.query.sorting.Name._ascending();
widget.datasource.load();
Morfinismo gave me the code fragment I was missing, but here's the breakdown:
This will reset any filters and clear out filter fields like dropdowns or suggest boxes:
widget.datasource.query.clearFilters();
This will clear any sorting, so if you want sorting, you will need to add it like so:
widget.datasource.query.clearSorting();
widget.datasource.query.sorting.App._ascending();
widget.datasource.query.sorting.Role._ascending();
widget.datasource.query.sorting.Name._ascending();
which will clear the sorting and reset it to your liking, but will not remove the little arrow graphic on the column heading. For that you will need to navigate back to the page you are already on to refresh it like this:
app.showPage(app.pages.AppRoles);
Here is the complete Refresh button onClick script:
app.showPage(app.pages.AppRoles);
widget.datasource.query.clearFilters();
widget.datasource.query.clearSorting();
widget.datasource.query.sorting.App._ascending();
widget.datasource.query.sorting.Role._ascending();
widget.datasource.query.sorting.Name._ascending();
widget.datasource.load();
This worked for me, but I'm sure there are other approaches and tricks of the trade. Feel free to post them here for future answer seekers.

Drupal event listings (showing the date, month, title and body of the event content)

I am trying to create a list of events on my drupal site. I have a problem with repeating events.
This is what i am trying to replicate: http://sites.wustl.edu/marcia/upcoming-events/
but for me, on the repeating events, i have dates showing together in the red area. see attached image.
How do i separate this out so the event is actually listed one event per date.
I use views, and the date module to create my events list.
Thank you for your help.
I was able to figure this out a few hours after I posted question, Can't believe I missed it. Anyway, Thank you #Sebastian.
Basically I was missing a setting in the view that I needed to uncheck. I was basically telling the view to display all dates in the same row.
So all I needed to do was for the Date field: Hide Repeat Rule, then in the "Multiple Field Settings" fieldset, remove the checkbox for "Display all values in the same row" and viola!
Thank you, hope this helps someone too.

(RADGrid ItemCommand Event) Cannot Get Values From Cells?

I am having a strange problem. First let me start by saying that I am using the Telerik controls supplied by DotNetNuke. So I can not "upgrade" to any other version of the Telerik controls. I am stuck with what I am given.
I wrote a module initially using DNN v06.02.09 (Telerik v2012.2.724.35) and it worked great. I unfortunately am forced to upgrade to a newer DNN version because of a bug found in this particular version of Telerick's RADScheduler (which effects the month of November only). So...now I am running DNN v07.00.06 (Telerik v2013.1.403.40). [Note: I also tested this with the most recent DNN v7.04.01 (Telerik v????) and confirmed the same behavior described below]
Previously when I clicked on a button inside the RADGrid and the ItemCommand event fires I was able to obtain the value of each cell in the row that the button was activated in. The same exact code running in DNN v7.x now returns "nbsp;" for every single cell in the row. It's like the new Telerik version doesn't bind the data to the GridDataItem (e.Item) within the ItemCommand event like it used to.
What am I missing? How do I get the selected row's data like I had before?
Ok, so after scouring the internet and trying everything I could think of to fix this...I stumbled across the following "article"... http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate
You would think they would make this stuff easier to find. Apparently the ".Visible" property's behavior was changed, so that if the column is not visible, it also does not bind data. They created a new property called ".Display" that would hide the column but still bind the data. I had to change my code to use the new property and then the grid's behavior was returned to what it was previously.

Is it possible to open the subreport with onclick event in pentaho?

I have a master report which has several columns, A, B and C.
When a user clicks on any data in B, using the onclick event, a subreport has to open showing some detailed data regarding the selected value.
It's not possible to create that behavior through the report designer. In order to create that kind of behavior you are describing, you will need to learn about Mondrian (in order to create Cubes for your data) and the Dashboard Editor (in order to create a view to replicate your desired behavior using data from the Cubes).
... you can however link to a separate report and show that report.
If you are more technically versed you can achive that within the same report as well, but it is more complex. Parametrize the visibility of your subreport and link to the current report with a changed parameter value for that subreport's visibility. Clicking that link will then re-generate the report with the new parameter set, and you can use a formula function on the subreport to trigger its visibility.
="javascript:window.open('/page.jsp?Parameter1="&URLENCODE([param1])&"&outputType=text/html&paginate=true')"
use this in on click attribute in report designer it may will help you

Dev express filter row drop down

I have a filter row on a Grid View and I need to find a way to populate the drop down list so that I can use the drop down list.
The Dev Express website achieves this through binding it to a data scource on the page, I need to find a way to do this but through the code behind.
http://demos.devexpress.com/ASPxGridViewDemos/Filtering/FilterRow.aspx
If you could point me in the right direction, I would be grateful.
Many thanks
It is necessary to handle the ASPxGridView.AutoFilterCellEditorInitialize event to initialize an individual AutoFilterRow's editor manually.
Please check the http://www.devexpress.com/issue=Q302836 Support Center ticket regarding this.

Resources