Telerik Forums
UI for Blazor Forum
5 answers
158 views

Hello,

 

Latest 2.22.0 within the NuGet package has a content file of global.json. Is there a reason it is doing this? We use our own global.json at the solution root and want to control that for deterministic build. What I don't know is whether the client project with the Telerik NuGet dependency (and the injected global.json) is honoring your injected copy at the project level or if it uses the solution's. Either way, unless there is an explicit reason this is needed can you remove it from the package?

 

Thank you!

 

 

Marin Bratanov
Telerik team
 answered on 25 Feb 2021
2 answers
438 views

I am debating if I want to use the MaskedTextBox instead of the TextBox.  If I use the MaskedTextBox, I would need to give it a collection of masks.  For example

  • ISBN-13: 000-0-00000-000-0
  • ISBN-10 0-00000-000-0
  • ASIN: AAAAAAAAAA

Thanks

-marc

Marc Simkin
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 25 Feb 2021
1 answer
163 views
Is there an rough estimate for the release date/quarter of the Gantt chart. 
Marin Bratanov
Telerik team
 answered on 24 Feb 2021
5 answers
193 views

The Format="d" parameter for the demo site is not in use and does not pick up different cultures appropriately from browser.

 

Also:  the en-GB format does not get applied to the date format when the browser language preference is set to English-United Kingdom

Marin Bratanov
Telerik team
 answered on 24 Feb 2021
1 answer
1.8K+ views

Is there a way to access the file stream of the file and not directly upload the file to an endpoint?

I just need access to the stream to save the file to the database, not the server.

Svetoslav Dimitrov
Telerik team
 answered on 24 Feb 2021
6 answers
97 views

There are a few issues with the "Format" parameter. Are we missing something?

Example: <TelerikDateTimePicker Format="f" @bind-Value="@CurrentDate" Id="f-standard"></TelerikDateTimePicker>

Using the above code, when the date and time is null it shows "f" in the text input. Why? Shouldn't it at least show the proper format. If we write the format using the .NET format instead of shorthand it shows fine but we prefer that when the field is null it shows nothing (empty). Can this be done?

Why didn't you wire up (support) the "placeholder" attribute of the input and allow us to set our own placeholder which could take place of the value in "Format"?

Also, if we set Format="", it will keep the field empty like we desire but then when a date is selected it's in a format that we don't expect or want.

Why don't you create controls that follow the html standard? If you are attaching a date and time picker to an input, why don't you support all html specification attributes of the input?

Showing the date format in the input is ugly and not desirable. See the attached images.

 

 

Marin Bratanov
Telerik team
 answered on 23 Feb 2021
1 answer
232 views

Hi there,

is there a chance to use Telerik.UI.for.Blazor with Blazor REPL? https://blazorrepl.com 
It would save a lot of time to both, customers of Telerik and Telerik support, when we could easily share code snippets,

Marin Bratanov
Telerik team
 answered on 23 Feb 2021
2 answers
1.8K+ views

Is there any way to disable the ListViewCommandButton with Command "Add" after it is clicked?

The problem I am having is that users are accidentally clicking on the "Add" button again instead of the "Save" button when adding a new row to the ListView.

I would like to disable the Add button while the Add new row dialog is open and not enable it again until they either click Save or Cancel button on the new row.

Bob
Top achievements
Rank 1
Iron
Veteran
Iron
 answered on 23 Feb 2021
6 answers
1.0K+ views

The documentation here https://docs.telerik.com/blazor-ui/components/grid/templates says

Using the row template takes functionality away from the grid because it no longer controls its own rendering. For example, InCell and Inline editing could not render editors, detail templates will not be available, column sorting and reordering cannot change the data itself, only the headers.

However when I take the row template example code from that page and add Sortable=true it appears to sort correctly (example repo at https://github.com/austineric/TelerikGridSorting). Column reordering doesn't work as it says but I can't find anything wrong with the sorting. Does the sorting fail in some way I haven't come across or is it okay to use sorting with row templates?

Daniel
Top achievements
Rank 1
Veteran
 answered on 19 Feb 2021
3 answers
985 views

Hi, 

I'm trying to add a Separator to a TelerikDrawer but it doesn't work as is expected: no separator is added. Instead, an common item is shown that when clicked, an exception is thrown.

I'm using the default DrawerItem class definition. Here is my code: 

 

public class DrawerItem
{
    public string Text { get; set; }
    public string Url { get; set; }
    public string Icon { get; set; }
    public bool IsSeparator { get; set; }
}
 
/* Items */
public List<DrawerItem> NavigablePages { get; set; } = new List<DrawerItem>
{
    new DrawerItem { Text = "System Overview", Url = Constants.Navigation.HOME, Icon = "toggle-full-screen-mode" },
    new DrawerItem { IsSeparator = true, Url = string.Empty }, // --> don't work
    new DrawerItem { Text = "Add Container", Url = Constants.Navigation.CONTAINERFORM, Icon = "plus-outline" },
    new DrawerItem { Text = "Show App Logs", Url = Constants.Navigation.LOGMONITOR, Icon = "paste-plain-text"},
    new DrawerItem { Text = "Options", Url = Constants.Navigation.OPTIONS, Icon = "gear"}
};
 
/* Drawer component definition */
 
    <TelerikDrawer Data="@NavigablePages" @bind-Expanded="@DrawerExpanded" MiniMode="true" Mode="@DrawerMode.Push"
                   @ref="@DrawerRef" @bind-SelectedItem="@SelectedItem" Width="auto">
        <Template>
            <div class="k-drawer-items">
                <ul>
                    @foreach (var item in NavigablePages)
                    {
                        @* stop the propagation of the onclick event to prevent the drawer from collapsing *@
                        @* Use onclick to handle manual item selection and toggle the selected class *@
                        <li @onclick:stopPropagation
                            @onclick="@(() => SelectAndNavigate(item))"
                            class="k-drawer-item @GetSelectedItemClass(item)"
                            style="white-space:nowrap">
                            <span class="k-icon k-i-@item.Icon" style="margin-right: 8px;"></span>
                            @if (DrawerExpanded)
                            {
                                <span class="k-item-text">@item.Text</span>
                            }
                        </li>
                    }
                </ul>
            </div>
        </Template>
        <Content>
            @Body
        </Content>
    </TelerikDrawer>

 

Any suggestion on what's going on? 

Thanks. 
Twain.

Nadezhda Tacheva
Telerik team
 answered on 18 Feb 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?