Telerik Forums
UI for ASP.NET Core Forum
2 answers
135 views

Is there a simple way to change the background color of the Month/Year view?

Thanks.

-------------------------------------------------------------------------------------------------------------

<telerik:RadDatePicker RenderMode="Lightweight" ID="FromScreeningDatePicker" runat="server" Width="120px"
ClientEvents-OnDateSelected="FromDateSelected"

Calendar-CalendarTableStyle-BackColor="White"

Calendar-TitleStyle-BackColor="White"
MinDate='<%# Convert.ToDateTime("01/01/1900")%>' MaxDate='<%# Convert.ToDateTime(DateTime.Now.ToString("MM/dd/yyyy"))%>'
DbSelectedDate='<%# startDate %>' FocusedDate="01/01/2016">

</telerik:RadDatePicker>

HSK
Top achievements
Rank 1
 answered on 12 Jul 2017
3 answers
489 views

How do I get the resource (RoomID) from an associated click event:

      var scheduler = $("#scheduler").data("kendoScheduler");
      scheduler.wrapper.on("click touchend", " .k-scheduler-content td", function (e) {
      var slot = scheduler.slotByElement(e.originalEvent.target);
                if (slot) {
                    alert(slot.startDate);
                    alert(slot.endDate);
                    alert(slot.resources.RoomID);?????

                }

     });

Ivan Danchev
Telerik team
 answered on 11 Jul 2017
1 answer
239 views

Hi,

I'm binding a grid to a collection of my model and when that collection is empty the grid is making a post to get data.

Trying to avoid that useless ajax requests I set AutoBind(false) but when I return a collection with data the grid do not bind it.

How can I prevent the request event if there is no initial data?

Georgi
Telerik team
 answered on 11 Jul 2017
2 answers
166 views

I have a grid and I am doing ajax batch updates using the following methods in my controllers with Entity Framework. This is working fine.

http://docs.telerik.com/aspnet-mvc/helpers/grid/editing/batch-editing

Do you have a controller code example (hard to find on the net) to perform the same type of batch update but with a many-to-many db relationship as I have added a multiselect component on my grid?

This is a follow up of my post here

Francis
Top achievements
Rank 1
 answered on 07 Jul 2017
5 answers
247 views

Hello,

 

I have a problem with the listview widget, that occurs just in IE11.

Please open the demo: http://demos.telerik.com/aspnet-core/listview/keyboard-navigation

Run this command in the console: $('#main').css({ height: 400, overflow: 'auto' }).find('.product-view.k-widget').on('click', function () { alert('clicked'); });

What we do: Set the main area to a small height and set it scrollable. Add click listener to all items and show an alert on click.

If you now click on an item, everything is working as expected. Now scroll down with $('#main').scrollTop(700); and try to click one of the bottom items of the list. In this moment the widget gets the focus and scrolls to its beginning, but the click is not registered. In my application I also have a scrollable container with a listview inside and I need to register item clicks. Our application MUST work in IE11, because our customer is just using IE. It would be great if you analyze the problem and fix it in the future. For now I definately need a workaround asap. Thank you.

Stefan
Telerik team
 answered on 07 Jul 2017
2 answers
188 views

The DateInput server side wrapper does not appear to work with nullable DateTimes. In the below code, if 'TaxDate' is a nullable DateTime when the page is rendered the control will always display 'month/day/year' (as it does when the value is null) even if the value being passed to it isn't null.

I tried setting the .value() property on the control but it does not accept nullable DateTimes.

 

                @(Html.Kendo().DateInput()
                            .Name("TaxDate")
                            .HtmlAttributes(new { style = "width:100%;", @class = "autoSelectText" })

 

From the demo page it looks as if null is a supported state, does the server side wrapper not support it?

 

Thanks,

Brian

 

Brian
Top achievements
Rank 1
 answered on 06 Jul 2017
2 answers
133 views

HI All

I require the code behind in C# equivalent of the following asp.net code , could you help please.

 

<telerik:RadHtmlChart runat="server" ID="LineChart" Width="800" Height="500" Transitions="true">
    <PlotArea>
        <Series>
            <telerik:LineSeries Name="Week 15" MissingValues="Interpolate">
                <Appearance>
                    <FillStyle BackgroundColor="Blue" />
                </Appearance>
                <LabelsAppearance DataFormatString="{0}%" Position="Above" />
                <MarkersAppearance MarkersType="Square" BackgroundColor="Blue" />
                <SeriesItems>
                    <telerik:CategorySeriesItem Y="15" />
                    <telerik:CategorySeriesItem Y="23" />
                    <telerik:CategorySeriesItem />
                    <telerik:CategorySeriesItem Y="71" />
                    <telerik:CategorySeriesItem Y="93" />
                    <telerik:CategorySeriesItem Y="43" />
                    <telerik:CategorySeriesItem Y="23" />
                </SeriesItems>
            </telerik:LineSeries>
            <telerik:LineSeries Name="Week 16" MissingValues="Gap">
                <Appearance>
                    <FillStyle BackgroundColor="Red" />
                </Appearance>
                <LabelsAppearance DataFormatString="{0}%" Position="Above" />
                <MarkersAppearance MarkersType="Square" BackgroundColor="Red" />
                <SeriesItems>
                    <telerik:CategorySeriesItem Y="35" />
                    <telerik:CategorySeriesItem Y="42" />
                    <telerik:CategorySeriesItem Y="18" />
                    <telerik:CategorySeriesItem Y="39" />
                    <telerik:CategorySeriesItem Y="64" />
                    <telerik:CategorySeriesItem Y="10" />
                    <telerik:CategorySeriesItem Y="6" />
                </SeriesItems>
            </telerik:LineSeries>
        </Series>
        <XAxis MajorTickType="Outside" MinorTickType="Outside">
            <Items>
                <telerik:AxisItem LabelText="Monday" />
                <telerik:AxisItem LabelText="Tuesday" />
                <telerik:AxisItem LabelText="Wednesday" />
                <telerik:AxisItem LabelText="Thursday" />
                <telerik:AxisItem LabelText="Friday" />
                <telerik:AxisItem LabelText="Saturday" />
                <telerik:AxisItem LabelText="Sunday" />
            </Items>
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
            <TitleAppearance Position="Center" RotationAngle="0" Text="Days" />
        </XAxis>
        <YAxis MajorTickSize="1" MajorTickType="Outside" MaxValue="100" MinorTickSize="1"
            MinorTickType="Outside" MinValue="0">
            <LabelsAppearance DataFormatString="{0}%" RotationAngle="0" />
            <MajorGridLines Color="#EFEFEF" Width="1" />
            <MinorGridLines Color="#F7F7F7" Width="1" />
            <TitleAppearance Position="Center" RotationAngle="0" Text="CPU Load" />
        </YAxis>
    </PlotArea>
    <ChartTitle Text="Server CPU Load By Days">
    </ChartTitle>
    <Legend>
        <Appearance Position="Bottom" />
    </Legend>
</telerik:RadHtmlChart>

 

Eyup
Telerik team
 answered on 05 Jul 2017
4 answers
555 views

Hello,

If I use a DropDownListFor with ServerFiltering(true) there is no Initialization value - the DropDownList is always empty?

I use this DropDownListFor in a grid Editor template:

@(Html.Kendo().DropDownListFor(m => m.Mitglied_IDVerpaechter)
                                  .MinLength(1)
                                  .Height(400)
                                  .OptionLabel(" ").OptionLabelTemplate(" ")
                                  .DataTextField("Firmenbezeichnung")
                                  .Filter("contains")
                                  .NoDataTemplate("Keine Datensätze gefunden")
                                  .DataValueField("Mitglied_ID")
                                  .DataSource(dataSource =>
                                  {
                                      dataSource.Read(read => read.Action("Search", "Home", new { Area = "Mitglied" }).Type(HttpVerbs.Post))
                                          .ServerFiltering(true);
                                  })
                                  )

 

How to use ServerFiltering and also have a initialization value?

robert

 

Robert Madrian
Top achievements
Rank 1
Veteran
Iron
 answered on 02 Jul 2017
1 answer
272 views
Hi!

We are developing a Grid, and we require having an Editable ListBox or ListView in a Cell of a GRID.
I have search for this solution and try coding during a week without success.
My project is ASP.NET Core and MVC tech. I have tried with EditorTemplates and ClientDetailTemplateId without lucky.
Please, is this possible? Has the ListBox a SAVING action? and how can achieve this or similar?
The final requirement is having a Editable List of string items in the databound of the ViewModel.

Thanks in advance!
Stefan
Telerik team
 answered on 30 Jun 2017
3 answers
163 views

Hello,

 

I added the option .Navigatable() to my listView and wanted to add a event listener to the navigate function. But inside .Events(e => e...) there is no navigate event.

Georgi
Telerik team
 answered on 27 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?