Update the pager info in Kendo Grid pager - kendo-ui-angular2

Hi I want to update the pagerinfo of Kendo UI.
It was attained in jQuery by above. How Can I update the same in Angular.
I'm seeing the below options but nothing helps.
Can anyone help me in here ?

You can use the Grid pager template to customize the content, layout and formatting of the displayed information:
Grid Pager Template
All relevant variables like total, pageSize, skip, etc., are available in the template.
Apply custom formatting in the template or utilize the Kendo Intl formatNumber function to format the desired values.

Related

View Column Headers Fixed Using XPages

I need one help related to view panel column headers. I am using view panel to pull the data from SQL using JDBC Connection manager and displaying in view panel control using Xpages. I am displaying 500 rows at a time and when users trying to scroll the data the column headers are going scrolling up. So, now I need to fix all view column header should be fixed when the rows are scrolling up/down. Can anybody help me regarding this?
You can add that capability to an existing viewPanel with the jQuery.Thead plugin. There are only 2 steps involved:
Download the library and add it to your XPage/ application.
Activate the plugin for your viewPanel (or repeat):
x$("#{id:viewPanel1}").floatThead({});
(the x$ function comes from the ExtLib Bootstrap theme)
I've put together a small demo here:
http://bootstrap4xpages.com/bs4xp/demos.nsf/fixedHeaders.xsp
May be have a look at DataTables, for details to implement this in XPages see the blogs ofOliver Busse, http://oliverbusse.notesx.net/hp.nsf/blogpost.xsp?documentId=D5E
The easiest way will be to add viewStyle to your viewPanel and set it to 100%.
I hope this helps!

Implementing JavaScript/jQuery to control Repeater with Carousel in Kentico

I wanted to know if I can control or customise the web part repeater with carousel properties using a JavaScript/jQuery ? such as speed or easing or the way the images aligned
If you are using a repeater web part for a carousel in Kentico and you want to be able to set the values for the carousel properties in the repeater configuration you can clone the repeater web part, add the carousel properties into the cloned repeater web part code, and into the Fields in the web part properties. Then you would pass those properties to the front end as javascript variables using RegisterClientScriptBlock
You can modify the speed in the initalization script property, just add something like speed: 500
You can read the documentation to see what all you can do with that carousel.
I have done this multiple times. This is what I would suggest you
Create Page type for your slides Bind it with a repeater (Not basic
repeater)
For markup use Slick slider. It's one of the best library
to create slider which are responsive too
You can do anything possible using this slider. I have done all sort of crazy things with slick slider. Let me know if you need any more help on this.
Slick Slider

Color fields in XPages

I have been working on a database in Lotus Domino Designer 8.5, specifically with XPages. I've noticed that I can include a field on a FORM as a color field, with a color picker, but the same functionality is not available within XPages. Basically, the person populating the document would pick a color (Green, Yellow, Red, or Blue), and I would like the field to show that color block. I am fairly new to Domino Designer, so I don't know if I'm missing something or some coding technique, but any advice or guidance would be helpful.
You can use new HTML5 input type of color.
<xp:inputText id="inputText1" type="color"></xp:inputText>
Note: It does not work in Internet Explorer.
I did something like this in an XPages "spreadsheet". Take a look at my blog article at http://www.teamspace.ca/TeamSpace/Blog.nsf/dx/using-xpages-to-develop-complex-reports-part-2.htm
You want to look at CSS.
You should create a stylesheet and then add that style sheet to the page as a resource. Then you simply apply that style to your resource. So you would set in the stylesheet how you want fields to look if they are black. Then you apply that style to any fields you want to have the same color. This allows you to change all fields at the same time by simply modifying the stylesheet, or having styles computed easily.
I will see if I can dig up some code for you.
I would stay away from the individual styling that Domino designer uses.
I did sth like this in an application using XPages and I used this one:
http://www.eyecon.ro/colorpicker/
Very easy to implement to a editbox control on an XPage.

Filter Issue in Ext.Net Grid Panel

I am developing an application using Ext.Net, here in the Gridpanel I am facing problem with filters in it.
After I searched for the desired string in the filter the paging in the grid is not working properly and some times the filter option is appearing twice in the grid panel.
Why?
you should update your ext.net component. when I develop an application using string filter, there's no problem. and please describe more specify.

Automatically add rows to a Data View?

I am using a Data View control and the Pager Add Rows control to allow the user to add more rows to the data view.
Can I extend the Pager Add Rows control to automatically add rows to the Data View when the user reaches the bottom of screen?
Yes, you can do that easily with jquery. if you master dojo you can probably do it in similar ways. but this example show jQuery.
add jQuery to your xpage
add a new custom scriptlibrary to your xpage
put below code in your custom scriptlibrary
Add a addPageRows control to your xpages and connect it to a repeat.
All set, try it out.
$(function(){
$(window).scroll(function(){
if($(window).scrollTop() == $(document).height() - $(window).height()){
$("[id$='pagerAddRows1_ar'],[id$='pagerAddRows2_ar']").click();
}
});
})
The jquery code will try and find pagerAddRows1_ar or pagerAddRows2_ar and if found will click the link automatically when you reach the bottom of screen.
You can actually use this code with any kind of pager or link you have on your xpage. just make sure your code click the right id.

Resources