404
Views
11
Comments
Solved
how to stick calendar control to input box

Hi,

When i scroll the page; my calendar control should stick to my input box

It should not look like above. Above is my current output. I tried to apply CSS to it. But not working.  

App Type :  Reactive web app

2022-10-17 06-51-09
Shweta Gedam
Solution

Hi SP1312,

I came up with resolution for same widget you want, Try to paste following css in your Home screen.

html, body, #reactContainer, #transitionContainer, .screen-container {

height: 100%;

display: inline;

overflow: auto;

}

Here, i also attached a working same OML you had shared.

Let me know, if it works.

DatePicker1.oml
2022-10-17 06-51-09
Shweta Gedam

If your screen has fixed header, then you also need to add following CSS with the above mentioned.

.fixed-header .header {
    /* position: fixed; */
    left: 0;
    right: 0;
    top: 0;
    position: sticky;
    z-index: 200;
}

Thanks and Happy Coding :)

UserImage.jpg
Shaun11

Thank you Shweta

But during this research I don't understand  how to apply customized jQuery and CSS ?

And can we use external jQuery file to apply some effect on this / any other widget?

2020-07-29 19-08-40
Sanjay Kumar Sahu

Hi,


The OS inbuilt calendar does not behave like this. Which component are you using for calendar? can you please post your OML for better info.


Regards,

Sanjay

UserImage.jpg
Shaun11

Yes I used the inbuilt widget only

Please check the OML

DatePicker1.oml
2020-07-29 19-08-40
Sanjay Kumar Sahu

I checked your OML. it looks issue with calendar widget. I'm trying to address this issue with CSS. Meanwhile you can either use just input widget as Diksha mentioned or you can enclose your input and calendar widget inside container and fix the height of that like below : 

2020-07-27 11-07-36
Diksha Magre

Hi,

you can use default date type input instead of using a date control.


Also attaching the updated oml file.


Hope this helps you.

Thanks,

Diksha

DatePicker1.oml
UserImage.jpg
Shaun11

Hi Diksha

thanks for your reply

still  it is not working

I used this widget. Forgot to mention in my post.

2022-10-17 06-51-09
Shweta Gedam

Hi SP1312,

First of all, your name is very strange ;)

Try not to use any widget to pick the date. Just set the variable of input of data type 'Date' and in the Input's property, Input Type should be also Date as below

This way, your input widget will appear on browser like below, and on clicking of icon , date picker will popup from where you can select desired date. On Scrolling, this date picker will hide, which is an ideal scenario and almost date picker works like this. And also i don't think you want to select date while scrolling ;)

Hope it helps, Thanks 

UserImage.jpg
Shaun11
Hi Shweta, Thanks for the reply We need to use the mentioned widget only. This is the requirement
2022-10-17 06-51-09
Shweta Gedam
Solution

Hi SP1312,

I came up with resolution for same widget you want, Try to paste following css in your Home screen.

html, body, #reactContainer, #transitionContainer, .screen-container {

height: 100%;

display: inline;

overflow: auto;

}

Here, i also attached a working same OML you had shared.

Let me know, if it works.

DatePicker1.oml
2022-10-17 06-51-09
Shweta Gedam

If your screen has fixed header, then you also need to add following CSS with the above mentioned.

.fixed-header .header {
    /* position: fixed; */
    left: 0;
    right: 0;
    top: 0;
    position: sticky;
    z-index: 200;
}

Thanks and Happy Coding :)

UserImage.jpg
Shaun11

Thank you Shweta

But during this research I don't understand  how to apply customized jQuery and CSS ?

And can we use external jQuery file to apply some effect on this / any other widget?

UserImage.jpg
Elsayed Tarek

not working for me this solution as it set the body fixed height and other elements in the screen cannot be displayed


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.