Telerik Forums
UI for ASP.NET MVC Forum
3 answers
119 views

Hi ,

I just installed Scheduler control, I am trying to start use of it but I didn't understand from where to start. I have downloaded demo apps but not able to understand how to bind my room-list to header instead of week view.

 If you have any documentation which will explain step by step about Scheduler control.

 

Thanks.

Vladimir Iliev
Telerik team
 answered on 09 Feb 2016
1 answer
167 views

If you look at the demos the filter icon has a large right margin/padding.  How do you remove it?  I want the filter to take all the available column header space.

 

Thanks

Venelin
Telerik team
 answered on 09 Feb 2016
5 answers
187 views

I would like to show a Gantt chart for 1, 2 or 3 years
Changeable via a dropdown

right now when I display the Gantt chart it shows several year

because there is tasks running over many years

how do I change the range of the view to a period

Plamen
Telerik team
 answered on 09 Feb 2016
4 answers
511 views

I have two Date Pickers inside a grid "Start Date" and "End Date".I am trying to validate these dates on edit and want to show only one validation message any time. Everything works fine except one scenario.

Steps that creates a problem:

1. Select a date for Start Date (ex. 1/1/2015) and select a date for End Date (ex. 2/1/2015). Everything is fine. I can save the record successfully.

2. Now change the  Start date to 3/1/2015 and validation popsup as expected. Change the end date to 4/1/2015 so that its greater then Start Date. Validation message disappears as expected.

3. Now if I try to Save, I get 1/1/2015 as the value on my server side code, not 3/1/2015. 

     $("StartDate").value() -- this has 3/1/215

     $("#grid").data("kendoGrid").dataSource.view() - this has startdate as 1/1/2015 which is wrong.

If I don't have the validation, everything works fine. What is causing this behavior? Please help.

My validation logic:

dateValidation: function(input){
   if ((input.is("[name='StartDate']") || input.is("[name='EndDate']")) && input.val() != "")
   {
     $("div.k-invalid-msg[data-for='StartDate']").hide();
     $("div.k-invalid-msg[data-for='EndDate']").hide();
 
     var startDate = new Date($("#StartDate").val());
     var endDate = new Date($("#EndDate").val());
 
     if (endDate < startDate)
       return false;
     else
       return true;
   }
   return true;
}

Boyan Dimitrov
Telerik team
 answered on 08 Feb 2016
2 answers
118 views

Hi again,
after some initial testing, we have found some formulae related issues.

1) first is about "shared" formulae formulae" (ie the ones obtained by dragging one formula over adjacent cells).
I'll attach you two simple xlsx file, both work exactly the same in MS Excel, but one doesn't work fine in Spreadsheet component.

Compare the first section of the two files: the row tagged as "Cumulative" doesn't work in Spreadsheet in the second version, since the "shared" sum formula doesn't work. 

NOTE: the first version is produced with MS Excel, the other with a famous third party commercial XLS library.

2) empty cells are not considered as "0", and give an error when used as parameters in formulae (see second section of any of the attached file, compared to first section) the yellow empty cell gives an error

 

3) SUMPRODUCT doesn't work. It's sufficient to test it on one of your online examples to verify. It throws an error

thanks and regards,
Sebastian

Mihai
Telerik team
 answered on 08 Feb 2016
3 answers
144 views

Hi there,

I believe I have found a bug with the PDF export on the grid in Q2 2015 and onwards. I have reproduced this bug using the VS2015 PDF Export demo  supplied with the Kendo install.

In order to replicate this bug, please enable bundling optimizations in the BundleConfig class:

 

BundleTable.EnableOptimizations = true;

 

Grid export to PDF will no longer work - it will fail with an error about the font:

"Cannot load font from http://localhost/Content/kendo/fonts/DejaVu/DejaVuSans-Bold.ttf?v=1.1"

It would seem that the path is working from the kendo folder and excluding the version number? The actual path to the font file should be:

"http://localhost/Content/kendo/2015.2.624/fonts/DejaVu/DejaVuSans-Bold.ttf"

The export works without issue when optimizations are disabled.

Regards,

 

Paul McKay

 

Daniel
Telerik team
 answered on 08 Feb 2016
2 answers
522 views

Hi,

I am trying to access the grid column in detail template and it's gives me invalid template.

The code look's like

@(Html.Kendo().Grid<MessageViewModel>()
              .Name("messageGrid")
              .Columns(columns =>
              {
                  columns.Bound(e => e.MessageName);
                  columns.Bound(e => e.MessageSentTime);
                  columns.Bound(e => e.Message).Visible(false);
              })
              .Sortable()
              .Pageable()
              .Scrollable()
              .Groupable()
              .ClientDetailTemplateId("template")
              .HtmlAttributes(new {style = "height:550px;"})
              .DataSource(dataSource => dataSource
                  .Ajax()
                  .PageSize(25)
                  .Read(read => read.Action("GetMessageGridData", "Home").Data("getGridData"))
              ))
        <script id="template" type="text/kendo-tmpl">
            @(Html.Kendo().PanelBar()
                          .Name("Panel_#:Id#") // this id is from parent grid.
                          .Items(panelbar =>
                          {
                              panelbar.Add().Text("#:MessageName#")
                                  .Expanded(false)
                                  .Content("<pre>" + @Html.Raw(Html.Encode("#:Message#")) + "</pre>");
                          }).ToClientTemplate()
                  )

        </script>

 

Please help me.

 

Sundeep Kumar
Top achievements
Rank 1
 answered on 05 Feb 2016
3 answers
414 views

Hi,

 

I need to call scheduler's navigate function when I click Search button. How can I do that?

I wrote the following code for refreshing the scheduler but it sometimes works and sometimes not.

$("#gridJobAllocation").data("kendoGrid").dataSource.read();

 

 Thanks.

Vladimir Iliev
Telerik team
 answered on 05 Feb 2016
1 answer
1.2K+ views

I'm trying to figure out how to have one of my fields data validated through my controller on a popup edit via the grid by GridEditMode.Popup.

Here's how my grid is set up:

 

@(Html.Kendo().Grid(Model)
.Name("areasGrid")
.Columns(c =>
{
    c.Bound(p => p.Id).Title("ID").Visible(false);
    c.Bound(p => p.AreaName).Title("Area");
    c.Bound(p => p.SupervisorPic).Title("User").Visible(false);
    c.Bound(p => p.SupervisorName).Title("Supervisor");
    c.Command(command => { command.Edit(); command.Destroy(); }).Width(170);
})
.AllowCopy(true)
.Selectable()
.DataSource(dataSource => dataSource
    .Ajax()
    .ServerOperation(false)
    .Model(model =>
    {
        model.Id(p => p.Id);
    })
    .PageSize(30)
    .Events(events => events.Error("error_handler"))
    .Create(update => update.Action("EditingPopup_Create", "ProgramAssignment"))
    .Read(read => read.Action("EditingPopup_Read", "ProgramAssignment"))
    .Update(update => update.Action("EditingPopup_Update", "ProgramAssignment"))
    .Destroy(update => update.Action("EditingPopup_Destroy", "ProgramAssignment"))
)
.Sortable()
.Filterable()
.ToolBar(toolbar =>
{
    toolbar.Create();
})
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("Area").Window(w => w.Width(400)).CreateAt(GridInsertRowPosition.Bottom))
.Pageable(p => p.PageSizes(new int[] { 10, 20, 30, 50 }))
.Resizable(resize => resize.Columns(false))
.ColumnMenu()
)

And here's my template where users can add/edit records that's used by the grid's editable template name:

@model Voice.ViewModels.AreaViewModel
 
<link href="~/Content/kendo/2015.3.1111/kendo.blueopal.min.css" rel="stylesheet" type="text/css" />
@(Html.Kendo().TextBoxFor(model => model.Id)
    .Name("Id")
    .HtmlAttributes(
        new
        {
            @style = "display:none"
        }
    )
)
<table>
    <tr>
        <td>
            <label>Area</label>
        </td>
        <td>
            @(Html.Kendo().TextBoxFor(model => model.AreaName)
                .Name("AreaName")
                .HtmlAttributes(
                    new
                    {
                        @style = "width: 255px",
                        @placeholder = "Area Name",
                        @id = "AreaName",
                        @class = "k-textbox",
                        @required = "required",
                        @validationmessage = "Enter area name.",
                        @maxlength = "255"
                    }
                )
            )
        </td>
    </tr>
    <tr>
        <td>
            <label>Supervisor</label>
        </td>
        <td>
            @(Html.Kendo().TextBoxFor(model => model.SupervisorPic)
                .Name("SupervisorPic")
                .HtmlAttributes(
                    new
                    {
                        @style = "width: 255px",
                        @placeholder = "Supervisor PIC",
                        @id = "SupervisorPic",
                        @class = "k-textbox",
                        @required = "required",
                        @validationmessage = "Enter the PIC code of the supervisor.",
                        @maxlength = "3"
                    }
                )
            )
        </td>
    </tr>
</table>

Ideally, I'd like to be able to validate the SupervisorPic field (basically someone's user ID at my work) by calling a method in my controller to validate the entry against our security system.  Is this possible?

Vasil
Telerik team
 answered on 04 Feb 2016
1 answer
96 views

Hello,

Is it possible to combine virtualization and MVVM in a ComboBox?

Because I'm trying to do it and it doesn't work.

If yes can you send me the link to an example, because I've been searching and I didn't find any.

Thank you,

Olido.

Georgi Krustev
Telerik team
 answered on 04 Feb 2016
Narrow your results
Selected tags
Tags
Grid
General Discussions
Scheduler
DropDownList
Chart
Editor
TreeView
DatePicker
Upload
ComboBox
MultiSelect
Window
ListView
TabStrip
Menu
Installer and VS Extensions
Spreadsheet
AutoComplete
TreeList
Gantt
PanelBar
NumericTextBox
Filter
ToolTip
Map
Diagram
Button
PivotGrid
Form
ListBox
Splitter
Application
FileManager
Sortable
Calendar
View
MaskedTextBox
PDFViewer
TextBox
Toolbar
MultiColumnComboBox
Dialog
DropDownTree
Checkbox
Slider
Switch
Notification
ListView (Mobile)
Pager
Accessibility
ColorPicker
DateRangePicker
Wizard
Security
Styling
Chat
MediaPlayer
TileLayout
DateInput
Drawer
SplitView
Barcode
ButtonGroup (Mobile)
Drawer (Mobile)
ImageEditor
RadioGroup
Sparkline
Stepper
TabStrip (Mobile)
GridLayout
Template
Badge
LinearGauge
ModalView
ResponsivePanel
TextArea
Breadcrumb
ExpansionPanel
Rating
ScrollView
ButtonGroup
CheckBoxGroup
Licensing
NavBar
ProgressBar
QRCode
RadioButton
Scroller
Timeline
TreeMap
TaskBoard
OrgChart
Captcha
ActionSheet
Signature
DateTimePicker
AppBar
BottomNavigation
Card
FloatingActionButton
Localization
MultiViewCalendar
PopOver (Mobile)
Ripple
ScrollView (Mobile)
Switch (Mobile)
PivotGridV2
FlatColorPicker
ColorPalette
DropDownButton
AIPrompt
PropertyGrid
AICodingAssistant
ActionSheet (Mobile)
BulletGraph
Button (Mobile)
Collapsible
Loader
CircularGauge
SkeletonContainer
Popover
HeatMap
Avatar
ColorGradient
CircularProgressBar
SplitButton
StackLayout
TimeDurationPicker
Chip
ChipList
DockManager
ToggleButton
Sankey
OTPInput
ChartWizard
SpeechToTextButton
InlineAIPrompt
TimePicker
StockChart
RadialGauge
ContextMenu
ArcGauge
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?