Comments (22)
You want to automatically open the picker on a page load?
If so, then do this in your page code:
<DateRangePicker @ref="DPRef"/>
@code{
DateRangePicker DPRef { get; set; }
protected override async Task OnAfterRenderAsync(bool firstRender)
{
await base.OnAfterRenderAsync(firstRender);
if (firstRender)
{
DPRef?.Open();
}
}
}
It'll be possible after update to a preview9 version of a library, I'll publish it tonight.
from blazordaterangepicker.
Thanks it working but after click on any ware automatically closed, can u give suggestion for that
from blazordaterangepicker.
how to find the date
from blazordaterangepicker.
To disable autoclose on outside click you must delete body of InvokeClickOutside function in DatePickerComponentBase.cs file.
from blazordaterangepicker.
Ok, there is CloseOnOutsideClick property in 1.0.0-preview9-02 version, just:
<DateRangePicker CloseOnOutsideClick="false"/>
from blazordaterangepicker.
Yeah its working but some bugs there
1.Overwrite the App Bar
2.Dialog box also not shown fully
can you try inline function like other date picker, and also one more request can use single calendar instead of two calendar
from blazordaterangepicker.
Also its overwriting with nearest component
from blazordaterangepicker.
To show only one calendar (1.0.0-preview9-03):
<DateRangePicker ShowOnlyOneCalendar="true"/>
Layout issues probably caused by your css styles. You can create sample repo, I'll look into it.
from blazordaterangepicker.
after this also showing two calendar
from blazordaterangepicker.
Are you updated dependency to 1.0.0-preview9-03 version?
from blazordaterangepicker.
Yeah i updated already
from blazordaterangepicker.
Share the code, I'll see
from blazordaterangepicker.
<DateRangePicker style="width:100%" ShowOnlyOneCalendar="false" CloseOnOutsideClick="false" @ref="DPRef" StartDate="StartDate" EndDate="EndDate" OnRangeSelect="OnRangeSelect" @OnClick="@(()=>GetTimeOffsbyDate(StartDate))">
from blazordaterangepicker.
You've mistaken: ShowOnlyOneCalendar should be true, but it's false in your code. Also, consider using OnOpened event instead of onclick handler.
And use markup for code insertions, because @
will call users with names ref
and OnClick
in our discussion.
from blazordaterangepicker.
thanks ,
Can Write the action for apply button
from blazordaterangepicker.
OnRangeSelect
triggered when the apply button is clicked.
from blazordaterangepicker.
thanks
from blazordaterangepicker.
Its possible to change the over write on other component
from blazordaterangepicker.
https://user-images.githubusercontent.com/9216348/64759363-85301200-d554-11e9-82f8-f3d0df0db160.png
https://user-images.githubusercontent.com/9216348/64759933-1c499980-d556-11e9-8489-cad47080bf1e.png
from blazordaterangepicker.
Sure, just modify z-index properties in your site css either for this picker or for your modal.
from blazordaterangepicker.
how display date like 12-Aug-2019
from blazordaterangepicker.
There is a property named DateFormat
for such purpose.
<DateRangePicker DateFormat="dd-MMM-yyyy"/>
from blazordaterangepicker.
Related Issues (20)
- Reset date range not working
- One start date HOT 2
- disable property HOT 1
- Make sure Calendar is always visible
- add Propertie "yearShowLeft" HOT 1
- single picker and buttons not visible HOT 1
- Disable date without data HOT 2
- Show dateTimePicker on click image HOT 1
- Single select HOT 2
- Date picker hided on mobile HOT 1
- Does not change DateFormat, TimePicker24Hour and WeekOfDay on Culture change HOT 2
- TimePicker24Hour has wrong value and HoursRange is not refreshed if culture changes HOT 1
- Visual Studio 2022 .NET 8 intellisense error HOT 3
- Display wrong month when click button previous month HOT 3
- Awesome - Just wanna say thank your for providing that Component
- CSP default-src: self; restricts inline style HOT 1
- Uncaught TypeError TypeError: clickAndPositionHandler.getPickerPosition is not a function HOT 8
- Calendar dropdown section is always displayed in 5.0.0 HOT 8
- New CSS isolation no longer works with dark theme HOT 2
- option ShowDropdowns not considered when used within DateRangePickerConfig
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazordaterangepicker.