Hello,
I have a grid with a date column and want to filter using DateRangePicker. I'm adding the control with the following code:
<SfToolbar>
<ToolbarItems>
<ToolbarItem Type="ItemType.Button" Text="Exportar Excel" PrefixIcon="e-icons e-excelexport" OnClick="@ToolbarClickHandler" Id="Grid_excelexport" Align="ItemAlign.Right"></ToolbarItem>
<ToolbarItem Type="ItemType.Input" Width="300px" Align="ItemAlign.Left">
<SfDateRangePicker TValue="DateTimeOffset?" StartDate="@StartDate" EndDate="@EndDate" Format="dd/MM/yyyy" ShowClearButton="true" MaxDays="31">
<DateRangePickerEvents RangeSelected="ReceivedDateRangeChange" TValue="DateTimeOffset?"></DateRangePickerEvents>
</SfDateRangePicker>
</ToolbarItem>
</ToolbarItems>
</SfToolbar>
The problem that I have is that the DateRangePicker control extends all the toolbar width, beyond the other toolbar items that I create.
How do I restrict the width to the minimal needed size? I also tried using left or right alignment elements without success.
Another thing. Is it possible to add the column chooser when using <SfToolbar?