Press "Enter" to skip to content

Posts tagged as “K2 SmartForms”

Using ReactJS in K2 (Carousel Control)


I decided to implement something else with ReactJS and below I will describe how to create a ReactJS control in K2 to display Carousel of images. The approach was tested in K2 Five and I assume should also work in the K2 Cloud. This is especially great for K2 Cloud, where you do not have any possibility to implement a custom control. Another nice thing about this approach is that ReactJS will load the images from the SmartObjects, exposed through the SmartObject OData API.

Using ReactJs in K2 (Masonry Layout)


I have been a fan of ReactJs for some time so far. I like the idea, that, as well as in K2, you can also create reusable components, even though the framework allows more customizations. K2 cannot be used to build single page applications, but nobody said it is not allowed to use ReactJs to create nice UI or layouts. In this post I will show you, how you can use ReactJs to build a masonry layout for images, stored in a SmartObject. The ReactJs component will get the images from K2 and render them in a nice responsive way. By the way, the approach is also suitable for K2 Cloud, where you cannot install any custom controls.

Popup animations in K2


In this post I will tell you about popup animations in K2 and how to add more fun into a K2 Smartform. You can either inject CSS/JS onto your form,…

How to make Textarea resizable in K2


By default Textareas have static width and height. But with a piece of code you can make it resizable. Please, refer to the post How to add JavaScript on Smartforms, if you need a more detailed description. In this post I will provide only some tiny demo and a piece of external code to add onto your Smartforms. And here is the final result, that you will achieve by adding the code below:

K2 Slide In Worklist


Recently at the customer I have been challenged with an interesting requirement, i.e. to have a slide in worklist in K2. The idea is to have it available on any form and somehow to indicate, that a user has some new tasks. I decided to create a reusable view, which you can add to any form you want and which will do the trick. For this you will need CSS and JavaScript. Therefore, please, refer to the article How to add JavaScript on Smartforms, if you do not know, how to do that.

Using icon fonts in K2


Recently I had an internal discussion within my team, that K2 Smartforms has a limited number of icons, that a user can use with the out-of-the-box controls, like buttons or data labels. We all agreed, that we need more. However, even if we have 1000 icons to be used with buttons, some other customers will always require more or something totally different. Therefore, I decided to write a short article to demonstrate, how you can quickly and easily add icon fonts in K2 to get almost unlimited number of icons for your purposes.

Changing view background in K2 Smartforms


Changing a view background in K2 Smartforms is not available out of the box. Moreover, if you need to create a reusable component with the new background, which you can then reuse across one or multiple applications. Here I will quickly explain, how you can change view background in K2 Smartforms with the help of JavaScript. Please, refer to the post How to add JavaScript on Smartforms, if certain steps are not clear.

How to find a control instance with JavaScript


Very often people try to find a control instance with JavaScript in K2 Smartforms. The approach, discussed in this article, can be used to find certain controls. However, this is not something you need on a daily basis, but rather rarely for certain functionality, that is not available out of the box. When you need to inject something and need to set or get the value of a control.

Rotate column headers in a List View


I do not know, if I want to share way, how you can change column text direction in a List View, because one of the approaches is very simple. However, I spent a some time, thinking how this could be done with CSS or JavaScript. I came up with 2 solutions: stupid simple and more sophisticated