Quantcast
Channel: Telerik Forums RSS
Viewing all 78072 articles
Browse latest View live

An error has occured while processing HtmlTextBox

$
0
0
Thank you very much for posting this.  I just wasted two hours chasing this - should have hit Google earlier.

Getting CellSelection object from mouse-selected cells

$
0
0
Hello Marc,

The Kendo UI Spreadsheet has a lot of enhancements planned for R1 2017 and I am glad to let you know that a  select event is one of them:

https://github.com/telerik/kendo-ui-core/issues/2409

On a side note, this forum is for the RadSpreadsheet for WPF. Please post any further questions regarding the Kendo UI Spreadsheet in this forum instead:

http://www.telerik.com/forums/kendo-ui/spreadsheet
(or submit a support ticket)

Sticking to this practice ensures that the best-trained colleagues for each product can see your question immediately and respond to you in the most time-efficient manner. 

Thank you very much in advance.

Kind Regards,
Alex Hajigeorgieva
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

Grid destroy confirmation event to trigger ActionResult

$
0
0
Hi,

When using InCell edit mode, all of the changes will be send when Save Changes button is clicked. This is same for updating, creating as well as deleting records. Thus, when delete button is click the record is only marked as deleted, but the actual call to the server will happen when  the DataSource is sync by clicking on the Save Changes button.

Regards,
Pavlina
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.

On Mouse wheel event, popup handled and parent control should scroll.

$
0
0
Hi Amit,

The expected behavior when the Popup is opened is that the mouse should be captured and only the opened Popup to be able to be scrolled. When the DropDown gets closed the ScrollViewer  of the Window should be able to be scrolled. That behavior could be observed with the native WPF ComboBox when it is editable - as we try to be consistent with it RadAutoCompleteBox behaves the exact same way.

As we are not exactly sure about the version you are using please, be aware that there was an issue with RadAutoCompleteBox when it is was placed inside a ScrollViewer - the Popup was scrolling when a ScrollViewer inside it was scrolled. The issue has been fixed and is available with the latest official version.

If that is not the observed by you issue please, provide us a sample or a video that demonstrates it and we try provide you with a prompt solution if possible.

Hope the provided information will be helpful for you.

Regards,
Nasko
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

Adjust filter icon for active grid filter.

$
0
0

Hello stegua,

we solved it, by changing the color of the filtericon in the Telerik theme to red.

1. Take the Teletik Theme project sources.

2. Open "Telerik.Windows.Controls.GridView.xaml"

3. Navigate to line 104.

4. Changed the Color of the GridView_FilterIconBackground_Filtered brush to red:

<LinearGradientBrushx:Key="GridView_FilterIconBackground_Filtered"EndPoint="0.703,0.697 StartPoint="0.26,0.134"><br>       
  <GradientStopColor="#FFFF0000"Offset="0"/><br>       
  <GradientStopColor="#FFFF0000"Offset="1"/><br>       
  <GradientStopColor="#FFFF0000"Offset="0.502"/><br>   
</LinearGradientBrush>

 

5. Compile the Theme project and take the compiled assembly to you Telerik reference folder.

Regards,

Dominic

Grid - Remotely Bound - Multiple Row Select - Paging

$
0
0
Hello Fabian,

This is the line in the code which is adding items to the orders variable:

orders[checkbox.value] = checkbox.checked;

Also, we have an example demonstrating a similar approach for persisting row selection, but it is without a checkbox column:

http://docs.telerik.com/kendo-ui/controls/data-management/grid/how-to/Selection/persist-row-selection-while-paging

Let me know if you need additional information on this matter.

Regards,
Stefan
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

Property grid add remove at runtime.

$
0
0
Hi Suraj,

These are two different approaches. If you are setting the SelctedObejct property to your custom business object you should add the property to this object. The property store gives you the ability to add properties manually, however, all properties must be added to the PropertyStore object and you should use the PropertyStore object as SelectedObject.

I hope this helps.

Regards,
Dimitar
Telerik by Progress
Telerik UI for WinForms is ready for Visual Studio 2017 RC! Learn more.

Progress bar when you apply a filter

$
0
0
Hello Gerard,

Actually, I have missed the fact that setting a fixed width for the columns of the RadGridView will resolve the issue(ColumnWidth property of RadGridView). Please calculate what width will be appropriate for you and set it for the control. 

Regards,
Stefan Nenchev
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

Change Dealline color in Telerik Gantt view

$
0
0
Hello,

You could set a global implicit style for the DeadlineContainer as such, similar to how you would do for the other containers:
<Style BasedOn="{StaticResource DeadlineContainerStyle}" TargetType="{x:Type telerik:DeadlineContainer}">
  <Setter Property="Template">
    <Setter.Value>
      <ControlTemplate TargetType="{x:Type telerik:DeadlineContainer}">
        <Rectangle Height="{Binding ActualHeight, RelativeSource={RelativeSource TemplatedParent}}" Fill="Blue" Width="1" />
      </ControlTemplate>
    </Setter.Value>
  </Setter>
</Style>


Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.

"Live-Ticker" chart showing last(est) values

$
0
0
Hello Ricky,

I can suggest using the total method of the DataSource to retrieve the number of records and use that value as max, then use that value minus 16 to retrieve min value:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-total

In order to dynamically change the min and max values I can suggest two approaches:

1) use the setOptions method to set the new values:

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#methods-setOptions

2) Set the new values to the Chart options and use the redraw method of the Chart to redraw it with the new options:

var chart = $("#chart").data("kendoChart");
chart.options.categoryAxis.max = currentMaxValue
chart.redraw();

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#methods-redraw

As for the remove method, it can be used in combination with the at method of the dataSource which is using an index to retrieve the object:

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-at

http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-remove

If additional assistance is needed, please send a runnable example, so I can investigate.

Regards,
Stefan
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

LoadingPanel around radHtmlChart

$
0
0

When the below page is being loaded, i wanted to have the loading page displayed while the charts (ex. RadHtmlChart3) are being loaded. It is not working for me. Anything wrong with my code?

Code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="HotelView.aspx.vb" Inherits="web_grm_dashboard_HotelView" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Hotel Dashboard - PULSE</title>
    <link href="~/styles/Default.css" rel="stylesheet" type="text/css" />
    <style>
        .tablecell
        {
            border:1px solid silver;
            border-radius:10px;
            background-color:white;
        }
        .labeltitle
        {
            color:darkgray;
            font-size:11px;
        }
       
        .labelcell{
            font-size:22px;
            font-weight:bold;
            color:black;
        }
        .labeltitlevertical
        {
            font-weight:bold;
            color:white;
            writing-mode:vertical-rl;
            -webkit-transform:rotate(270deg);
            font-weight:normal;
            font-size:11px;
        }
    </style>
</head>
<body class="body">
    <form id="form1" runat="server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
            <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadHtmlChart1"></telerik:AjaxUpdatedControl>
                            <telerik:AjaxUpdatedControl ControlID="RadHtmlChart2"></telerik:AjaxUpdatedControl>
                            <telerik:AjaxUpdatedControl ControlID="RadHtmlChart3"></telerik:AjaxUpdatedControl>
                            <telerik:AjaxUpdatedControl ControlID="RadHtmlChart4"></telerik:AjaxUpdatedControl>
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
            <telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1" Skin="MetroTouch">
            </telerik:RadAjaxLoadingPanel>
            <table style="width: 100%">
                <tr>
                    <td class="tablecell" colspan="2" style="width:66%">
                        <table class="table" style="width: 100%; text-align: center">
                            <tr>
                                <td>
                                    <asp:Label ID="Label10" CssClass="labeltitle" runat="server" Text="Unassigned"></asp:Label><br />
                                    <asp:Label ID="Label11" CssClass="labelcell" ForeColor="red" runat="server" Text="2"></asp:Label>
                                </td>
                                <td style="border-right: 1px solid gray"></td>
                                <td>
                                    <asp:Label ID="Label12" CssClass="labeltitle" runat="server" Text="Inprogress"></asp:Label><br />
                                    <asp:Label ID="Label13" CssClass="labelcell" ForeColor="Blue" runat="server" Text="6"></asp:Label>
                                </td>
                                <td style="border-right: 1px solid gray"></td>
                                <td>
                                    <asp:Label ID="Label2" CssClass="labeltitle" runat="server" Text="Today"></asp:Label><br />
                                    <asp:Label ID="Label3" CssClass="labelcell" runat="server" Text="42"></asp:Label>
                                </td>
                                <td style="border-right: 1px solid gray"></td>
                                <td>
                                    <asp:Label ID="Label4" CssClass="labeltitle" runat="server" Text="This Week"></asp:Label><br />
                                    <asp:Label ID="Label5" CssClass="labelcell" runat="server" Text="155"></asp:Label>
                                </td>
                                <td style="border-right: 1px solid gray"></td>
                                <td>
                                    <asp:Label ID="Label6" CssClass="labeltitle" runat="server" Text="This Month"></asp:Label><br />
                                    <asp:Label ID="Label7" CssClass="labelcell" runat="server" Text="684"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                   <td class="tablecell" style="background-color:rgba(0, 0, 0, 1)">
                        <table style="width: 100%; text-align: center">
                            <tr>
                                <td class="labeltitlevertical" style="width:10px">
                                    <asp:Label ID="Label8" Font-Size="13px" Font-Bold="true" runat="server" Text="Timers"></asp:Label><br />hh:mm
                                </td>
                                <td>
                                    <asp:Label ID="Label1" CssClass="labeltitle" runat="server" Text="Avg. Assign"></asp:Label><br />
                                    <asp:Label ID="Label14" CssClass="labelcell" ForeColor="white" runat="server" Text="00:12"></asp:Label>
                                </td>
                                <td style="border-right: 1px solid gray"></td>
                                <td>
                                    <asp:Label ID="Label15" CssClass="labeltitle" runat="server" Text="Avg. Close"></asp:Label><br />
                                    <asp:Label ID="Label16" CssClass="labelcell" ForeColor="white" runat="server" Text="02:40"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="tablecell" style="height:250px">
                        <telerik:RadHtmlChart ID="RadHtmlChart3" runat="server" ToolTip="Data for the past 30 days" Height="250px" Skin="Bootstrap" Width="100%" DataSourceID="SqlDataSource3">
                            <ChartTitle Text="Departmental Assignments"></ChartTitle>
                            <Legend>
                                <Appearance Visible="false">
                                </Appearance>
                            </Legend>
                            <PlotArea>
                                <XAxis Visible="True" DataLabelsField="Department"></XAxis>
                                <YAxis Visible="false"></YAxis>
                                <Series>
                                    <telerik:BarSeries DataFieldY="Opened" Name="Request by Department" Gap="0.5">
                                        <Appearance FillStyle-BackgroundColor="ForestGreen"></Appearance>
                                        <LabelsAppearance DataField="Opened" Position="Center" Color="white" DataFormatString="{0}">
                                        </LabelsAppearance>
                                        <TooltipsAppearance DataFormatString="{0} requests"></TooltipsAppearance>
                                    </telerik:BarSeries>
                                </Series>
                            </PlotArea>
                        </telerik:RadHtmlChart>
                        <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:grmConnectionString %>" 
                            SelectCommand="SELECT TOP 5 [Department], [Opened] FROM [rep_department_performance] Where Property_ID = @Property_ID ORDER BY [Department]">
                            <SelectParameters>
                                <asp:SessionParameter Name="Property_ID" SessionField="Property_ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td class="tablecell">
                        <%--<telerik:RadHtmlChart ID="RadHtmlChart4" NameField="Area" ToolTip="Data for the past 30 days" Width="100%" Height="230px" runat="server" Skin="Bootstrap" DataSourceID="SqlDataSource4">
                            <ChartTitle Text="Area Requests"></ChartTitle>
                            <Legend>
                                <Appearance Visible="false"></Appearance>
                            </Legend>
                            <PlotArea>
                                <XAxis DataLabelsField="Area"></XAxis>
                                <Series>
                                    <telerik:ColumnSeries DataFieldY="Opened" Name="Opened" Gap="0.5">
                                        <Appearance FillStyle-BackgroundColor="brown"></Appearance>
                                        <LabelsAppearance Color="white" DataField="Opened" Position="Center" DataFormatString="{0}">
                                        </LabelsAppearance>
                                        <TooltipsAppearance DataFormatString="{0} requests"></TooltipsAppearance>
                                    </telerik:ColumnSeries>
                                </Series>
                            </PlotArea>
                        </telerik:RadHtmlChart>
                        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:grmConnectionString %>" 
                            SelectCommand="SELECT [Area], [Opened], [Percentage] FROM [rep_request_by_area] WHERE ([Property_ID] = @Property_ID)">
                            <SelectParameters>
                                <asp:SessionParameter Name="Property_ID" SessionField="Property_ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>--%>
                        <telerik:RadHtmlChart ID="RadHtmlChart4" runat="server"  DataSourceID="SqlDataSource4" ToolTip="Data for the past 30 days" Skin="Bootstrap" Width="100%" Height="250px">
                            <ChartTitle Text="Performance Indicator"></ChartTitle>
                            <PlotArea>
                             <XAxis Visible="True" DataLabelsField="Department"></XAxis>
                                   <Series>
                                    <telerik:BarSeries DataFieldY="Ontime" Gap="0.5" Stacked="true" Name="Ontime" StackType="Stack100">
                                        <Appearance FillStyle-BackgroundColor="MediumPurple"></Appearance>
                                        <TooltipsAppearance Color="Black"></TooltipsAppearance>
                                        <LabelsAppearance Position="Center" Color="white"></LabelsAppearance>
                                    </telerik:BarSeries>
                                    <telerik:BarSeries DataFieldY="Delayed"   Stacked="true" Name="Delayed" StackType="Stack100">
                                        <Appearance FillStyle-BackgroundColor="LightGray"></Appearance>
                                        <LabelsAppearance Position="Center"></LabelsAppearance>
                                    </telerik:BarSeries>
                                </Series>
                            </PlotArea>
                            <Legend>
                                <Appearance Position="bottom"></Appearance>
                            </Legend>
                        </telerik:RadHtmlChart>
                        <asp:SqlDataSource ID="SqlDataSource4" runat="server" ConnectionString="<%$ ConnectionStrings:grmConnectionString %>" 
                            SelectCommand="SELECT [Department],[Delayed], [Ontime] FROM [rep_department_performance] Where Property_ID = @Property_ID ORDER BY [Department]">
                            <SelectParameters>
                                <asp:SessionParameter Name="Property_ID" SessionField="Property_ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                    <td class="tablecell">
                        <telerik:RadHtmlChart ID="RadHtmlChart2" runat="server" DataSourceID="SqlDataSource2" ToolTip="Data for the past 30 days" Skin="Bootstrap" Width="100%" Height="250px">
                            <ChartTitle Text="Categorical Requests"></ChartTitle>
                            <PlotArea>
                                <XAxis Visible="True" DataLabelsField="Category">
                                </XAxis>
                                <Series>
                                    <telerik:DonutSeries DataFieldY="Percentage" NameField="Category" StartAngle="360" ExplodeField="Percentage" Visible="true">
                                        <LabelsAppearance DataField="Percentage" Position="Center" DataFormatString="{0}%">
                                            <TextStyle Margin="0" Padding="0" />
                                        </LabelsAppearance>
                                        <TooltipsAppearance DataFormatString="{0}%"></TooltipsAppearance>
                                    </telerik:DonutSeries>
                                </Series>
                            </PlotArea>
                            <Legend>
                                <Appearance Position="Left"></Appearance>
                            </Legend>
                        </telerik:RadHtmlChart>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:grmConnectionString %>" 
                            SelectCommand="SELECT Top 10 [Category],[Percentage], [Opened] FROM [rep_request_by_category] Where Property_ID = @Property_ID ORDER BY [Category]">
                            <SelectParameters>
                                <asp:SessionParameter Name="Property_ID" SessionField="Property_ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" class="tablecell"  style="height:210px">
                        <telerik:RadHtmlChart runat="server" ID="RadHtmlChart1" ToolTip="Data for the past 30 days" Width="100%" Height="210px" Skin="Bootstrap" DataSourceID="SqlDataSource1">
                            <PlotArea>
                                <XAxis Visible="True" DataLabelsField="Date"></XAxis>
                                <YAxis Visible="True"></YAxis>
                                <Series>
                                    <telerik:AreaSeries DataFieldY="Opened" Name="Open Requests">
                                        <Appearance>
                                            <FillStyle BackgroundColor="blue"></FillStyle>
                                        </Appearance>
                                        <TooltipsAppearance DataFormatString="{0} requests"></TooltipsAppearance>
                                        <LineAppearance Width="1"></LineAppearance>
                                        <MarkersAppearance MarkersType="Circle" BackgroundColor="White" Size="6" BorderColor="blue"></MarkersAppearance>
                                    </telerik:AreaSeries>
                                </Series>
                                <XAxis AxisCrossingValue="0" Color="black" Reversed="false">
                                    <LabelsAppearance DataFormatString="{0:dd/MM}" RotationAngle="45" Skip="0"></LabelsAppearance>
                                </XAxis>
                                <YAxis Color="black" MinorTickType="None" MinValue="0" Reversed="false"></YAxis>
                            </PlotArea>
                            <Legend>
                                <Appearance Visible="false"></Appearance>
                            </Legend>
                            <Navigator>
                                <SelectionHint Visible="False"></SelectionHint>
                            </Navigator>
                        </telerik:RadHtmlChart>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:grmConnectionString %>" 
                            SelectCommand="SELECT [Date], [Opened] FROM [rep_request_per_day] WHERE Property_ID = @Property_ID">
                            <SelectParameters>
                                <asp:SessionParameter Name="Property_ID" SessionField="Property_ID" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>

Validating number to date

$
0
0

Hello,

I have a datepicker with validation rule that calculates a new date, if the input is a number.

E.g. if today is 12/24/2016 and I type in 2 I get the date 12/26/2016.

This works fine. By validation the right date is set.

But if the datefield is in a grid, the date is not always set, only every second time.

This happens if I type in a number and after that i click on another gridcolumn.

It works, if I type in a number and then press enter-key or tab-key or click outside the gid.

Does the validation works different by clicking on the grid and hitting the enter/tab key, ?

 

The validation function is:

01.varcustomDateValidation = function(e, field) {
02.  varinput = $(e).val();
03.  if(!isNaN(input)) {
04.    varnoOfDays = parseInt(input);
05.    if(noOfDays > -366 && noOfDays < 366) {
06.    varnewDate = newDate();
07.    newDate.setDate(newDate.getDate() + noOfDays);
08. 
09.    varitem = $("#myGrid").data("kendoGrid").dataItem($(e).closest("tr"));
10.    item[field] = newDate;
11.    item.dirty = true;
12. 
13.    returntrue;
14.    }
15.    returnfalse;
16.  }
17. 
18.  vardate = kendo.parseDate(input, "dd.MM.yyyy");
19.  if(date) {
20.       returntrue;
21.  }
22. 
23.  if(input == null|| input == "") {
24.    returntrue;
25.  }
26.  returnfalse;
27.};

 

Or is there another way to turn integers to date with a grid datefield?

Thanks in advance

 

RadMenu Auto-Expended

$
0
0
Hi Alex,

The issue is caused by calling sender.close(true) too early. You need to call it with a slight delay that takes into account the submenu opening animation. In other words when a parent item is clicked before you close its submenu you need to wait for it to open first. It can be fixed with setting a timeout and delaying slightly the call to the close() method:
function RadMenu1_clicked(sender, eventArgs) {
    var level = eventArgs.get_item().get_level();
    if (level > 0) {
        setTimeout(function () {
            sender.close(true);
        }, 200)
    }
}


Regards,
Ivan Danchev
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.

Theming/Styling

$
0
0

Hello there,

 

I've verified that the requested dependencies are in place.  The error remains.  Anything else I should look for?

Thanks so much,

Caleb

using EditTemplateSelector

$
0
0

Hi to all,

I'm trying to use an EditTemplateSelector, but I have problem to retrieve DataContext of RadWindow, my RadWindow has x:Name="radWindow", its relative ViewModel exposes a List<T> collection called StatiCertificato, it seems that it not found it.

When selector use campoEditTesto it works correctly and it works correclty with campoEditData also, when it uses campoEditStato or campoEditDecisione show me correctly RadComboBox but without items. It checked that my collection are full.

Am I using a wrong approach for binding into ItemSource property? If yes, what's wrong?

<templateSelector:ValoreEditTemplateSelectorx:Key="campiEditTemplateSelector">
    <templateSelector:ValoreEditTemplateSelector.campoEditTesto>
        <DataTemplate>
            <TextBoxText="{Binding Valore,Mode=TwoWay}"  />
        </DataTemplate>
    </templateSelector:ValoreEditTemplateSelector.campoEditTesto>
    <templateSelector:ValoreEditTemplateSelector.campoEditStato>
        <DataTemplate>
            <telerik:RadComboBoxItemsSource="{Binding StatiCertificato, ElementName=radWindow}"
                                 SelectedItem="{Binding StatoCertificatoSelezionato,Mode=TwoWay}"
                                 DisplayMemberPath="Descrizione"SelectedValuePath="Valore"/>
        </DataTemplate>
    </templateSelector:ValoreEditTemplateSelector.campoEditStato>
    <templateSelector:ValoreEditTemplateSelector.campoEditDecisione>
        <DataTemplate>
            <telerik:RadComboBoxItemsSource="{Binding DecisioniCertificato, ElementName=radWindow}"
                                 SelectedItem="{Binding DecisioneCertificatoSelezionato,Mode=TwoWay}"
                                 DisplayMemberPath="Descrizione"SelectedValuePath="Valore"/>
        </DataTemplate>
    </templateSelector:ValoreEditTemplateSelector.campoEditDecisione>
    <templateSelector:ValoreEditTemplateSelector.campoEditData>
        <DataTemplate>
            <telerik:RadDatePickerSelectedValue="{Binding Valore, Mode=TwoWay, Converter={StaticResource editDateConverter}}"/>
        </DataTemplate>
    </templateSelector:ValoreEditTemplateSelector.campoEditData>
</templateSelector:ValoreEditTemplateSelector>

Loading events from WebMethod

$
0
0

I've managed to get this in now. Although the dots for each day with something on do not appear now. 

my current code is:

    func createEvents() {

        if self.events.count > 0 {
            self.events.removeAllObjects()
        }

        let currentDate: Date = self.calendarView.displayedDate
        let startDate: Date = Date().startOfMonth(myDate: currentDate)!
        let endDate: Date = Date().endOfMonth(myDate: currentDate)!

        let paramString : String = String(format: "Token=%@&StartDate=%@&EndDate=%@", keychain.get("sessionToken")!, DateFormatting().getStandardDate(startDate, dateTimeReq: "DateDashed"), DateFormatting().getStandardDate(endDate, dateTimeReq: "DateDashed"))

        DataFunctions().getRequest(methodName: "DiaryWebMethod", parameters: paramString) { (result) -> () in
            for item in result {
                if item["Error"] != nil {
                    if (item["Error"] as? String == "501") {
                        SCLAlertView().showError("Unable to fetch appointments", subTitle: "Error 501 was raised. ")
                    } else {
                        SCLAlertView().showError("Unable to fetch appointments", subTitle: item["Error"] as! String)
                    }
                    return
                } else {
                    let e = TKCalendarEvent()
                    e.title = item["Title"] as? String
                    e.startDate = Date(jsonDate: item["StartDate"] as! String)! //item["StartDateTime"] as! Date
                    e.endDate = Date(jsonDate: item["EndDate"] as! String)! //item["StopDateTime"] as! Date
                    e.content = item["Summary"] as? String
                    e.isAllDay = false
                    e.eventColor = UIColor(r:40, g:86, b:131)
                    self.events.add(e)
                }
            }
        }
    }

 

Any ideas why this is the case?

Unbound column with client template and ajax data source

$
0
0
Hi,

The approach that you are using is valid and we suggested to use it in case like yours. You can check the sample from frequently asked questions help article which uses the same approach.

I hope this information helps.

Regards,
Kostadin
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.

Howto page with ajax RadListBox

$
0
0
Hi Phil,

Yes you could use the Load on demand functionality of the RadListBox. You could find a simple demo on that here.

Regards,
Veselin Tsvetanov
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.

How to place 'check-all' checkbox in kendo grid column template

$
0
0
Hi Tom,

The described sorting behavior is caused by the fact that the check-box template column configuration options include the field option, which triggers an attempt the column to be bound to the 'select_all' field of the data items.

For the template columns (ones that are for presentation purposes only, and are not bound to data item fields) you can use the columns.headerTemplate option to determine the content, and add some text to the checkbox (if necessary):

http://dojo.telerik.com/OyABU

As for the necessary custom logic for maintaining selecting rows via checkboxes, and the select/toggle all functionality, I can suggest the following example:

http://dojo.telerik.com/akuJa

You can inspect it, and get an idea of the custom logic, required to implement it in your scenario. I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Kendo UI is ready for Visual Studio 2017 RC! Learn more.

node visible

$
0
0

I use NodeDataBound , but the problem is that the event is fires after the Navigation is populated.
The problem is that the pages I hide in NodeDataBound flash on / appears in the menu when it is loaded. Not so neat ...

I have pages (NodeId) from 1 to 110....
So I do not understand why this does not work?

ProtectedSubPage_Load(sender AsObject, e AsEventArgs) HandlesMe.Load
 
    RadNavigation1.Nodes(4).Visible = False
 
EndSub

 

Tips on how I can hide the first 4 nodes, before they are loaded into the RadNavigation?

Viewing all 78072 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>