Workflow and ServiceDesk Community

 View Only

Workflow - AngularJS Components - Grid 

Sep 04, 2017 03:01 AM

In this Article I will run through how to enable AngularJS when using a Grid Component.

 

Table Of Contents

 

Firstly you will need to enable AngularJS in your Project.

Once you have created a new Project, go to the main  Project and tick "Use AngularJs Capability".

Add a Form Component onto your Project.

LogicBase.Components.FormBuilder.FormBuilderComponent
https://www.symantec.com/connect/articles/form-builder

Then drag a Grid Component onto your Form.

Logicbase.Components.FormBuilder.InfragisticsComponents.WebGrid.GridComponent
https://www.symantec.com/connect/content-external/workflow-id_Logicbase.Components.FormBuilder.InfragisticsComponents.WebGrid.GridComponent/workflow

 

Right Click and "Edit Component".

Click on the "General" tab.

Tick "Use Angular JS".

Configure your component to get some Data then run the Project.

 

If you create a clone of the example, but turn off AngularJS and run both you will see the difference in the Grid.

You will see there are extra options against the Column Headings.

You can Filter any row

Filter
Is equal to
Is not equal to
Starts with
Contains
Does not contain
Ends with

 

Not much work needed for a lot of extra functionality.

 

Protirus.png

Statistics
0 Favorited
9 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Jan 29, 2018 04:27 PM

There was nothing in the Release Notes to say they had been updated, there have been some cases logged for the issues so hopefully in a future release.

Jan 29, 2018 03:55 PM

FYI I just checked 8.1.5816.0 and there is no change in this behaviour.

Dec 07, 2017 04:10 PM

Sorry for the slow reply and yes I'm happy to provide examples as it would be great to see these new Angular pieces improved.  Please find attached.

EDIT: No change in behaviour in 8.1.5618.0 which I have now upgraded to.

Nov 28, 2017 06:37 PM

I will be reviewing these concerns in depth and passing them along to engineering to be addressed.  If you have sample project to attach, and specific steps you are using to generate the problems, it would be helpful.

 

Nov 08, 2017 10:27 PM

Found another wee issue - what ever is being used to serialize the data for that grid isn't escaping characters like ' which in turn causes the grid to not appear and a java script error in the console.

Nov 01, 2017 09:08 AM

Good find - I forwarded this over to the Product Management team to review.

Glad the IncludeHTML trick worked for you!

Oct 31, 2017 06:02 PM

While I'm at it, I've found a couple of other issues with the new Angular/Kendo grid that limit its usefulness.

  1. Cell Edit mode is enabled regardless of whether you select "Select Items" or "Edit Items" Grid Mode
  2. The Selected Item variable is not populated with your items choices

Oct 31, 2017 05:24 PM

I also found that the grid does not follow template styling.  You can modify the grid (and probably other kendo components) by using an embeded style as Andrew describes.

Try this to set a different font:

.k-widget {
  font-family: Calibri;
  font-size: 12px;
}

Oct 31, 2017 05:22 PM

Thanks Andrew that worked well.

Oct 31, 2017 03:50 PM

looks like you can do an includehtml with some css to fix it.

https://www.symantec.com/connect/articles/applying-custom-css-workflow-forms

target the class "k-grid-content" and give it a height of whatever you prefer; though it seems there will be some hanging off the bottom.  make this "!important".

target the "k-grid" class and give it a height of auto.  make this "!important".

setting it to 200px actually renders as about 311.63px.  looks like you'll just have to play with the value a bit to get it the size you like, but maybe just consider that there will be about 111.63px at the bottom in addition to whatever px size you set.

if you put this in an includehtml component on the form, it should sort it out for you.

<style>

.k-grid {
  height: auto !important;
}

.k-grid-content {
  height: 200px !important;
}

</style>

 

Oct 31, 2017 03:20 PM

Alex, I have found the new angular based grid component does not follow the element sizing.  The same behaviour is visible in your example above (the angular grid is about twice as high).  Have you found a way to correct this?  I've had a couple of attempts with javascript without much success.

Related Entries and Links

No Related Resource entered.