Telerik Forums
UI for ASP.NET MVC Forum
7 answers
397 views

I'm trying to parse out RecurrenceRule in SQL to get actual occurrences. Is there a component that would do that for me? I'm trying to build a query that would return all appointment occurrences similarly DDay.iCal works in C#.

 

 

 

Please I've already tried Telerik's recurrenceEngine.dll and it's not working. I was told that this component only works with RAD Scheduler. Here is the thread: 

http://www.telerik.com/forums/sql-reporting-display-all-recurring-appointments#CrfU3SbKNEOrM_GiLOj9Sg​

Georgi Krustev
Telerik team
 answered on 07 Dec 2015
3 answers
281 views
In c# , I am trying to set font for individual characters of string.

Below is my code that I use with Kendo Grid to display tree node text which displays some count in brackets. 

Example Customer1(**20**). Here I want to bold and color count.

     Name = EmpDb.Description + ((EmpDb.Cust.Count() > 0) ? "(" : "") +
                                  ((EmpDb.Cust.Count() > 0) ? EmpDb.Cust.Count().ToString() : "") +
                                 ((EmpDb.Cust.Count() > 0) ? ")" : "")

I tried below to bold, but it did not work and I got html tags in string. 

     Name = EmpDb.Description + ((EmpDb.Cust.Count() > 0) ? "(<b>" : "") +
                                  ((EmpDb.Cust.Count() > 0) ? EmpDb.Cust.Count().ToString() : "") +
                                 ((EmpDb.Cust.Count() > 0) ? "</b>)" : "")

Thank you.
Dimiter Topalov
Telerik team
 answered on 07 Dec 2015
5 answers
665 views

I have a kendo grid within a page which is scrollable and grouped by default.  While exporting data the grid data is not completely rendering.  It shows only the partial data within the view.  How to fix this?

 

Stephan
Top achievements
Rank 1
 answered on 04 Dec 2015
7 answers
428 views

I am in the process of preparing Org Chart in MVC diagram. Everything works fine. I just need to have clickable link for every employee rectangle box in diagram.

Also, Diagram have TextBlock,image and etc. Does it have anything like LinkBlock to have link or href block to redirect to something else? please add some code for the same.

 Can we have a scroll bar for the entire diagram to go left and right and top to bottom. Please add some code snippet to scroll the diagram to see all the people instead of zoom by default.

Here is my rectangle that I need to have clickable link.

 

  g.append(new dataviz.diagram.Rectangle({
            width: 320,
            height: 125,
            stroke: {
                width: 0
            },
            fill: {
                gradient: {
                    type: "linear",
                    stops: [
                        {
                            color: dataItem.ColorScheme,
                            offset: 0,
                            opacity: 0.5
                        }, {
                            color: dataItem.ColorScheme,
                            offset: 1,
                            opacity: 1
                        }
                    ]
                }
            }
        }));​

T. Tsonev
Telerik team
 answered on 04 Dec 2015
1 answer
167 views

Hello,

 

I'm trying to use empty row template in server model binding and it does not work. Using Ajax call for collection everything works ok. It is possible to define empty row template for server binding.

 

Cheers,

Marcin Kurtz

Alexander Popov
Telerik team
 answered on 04 Dec 2015
3 answers
531 views

Hi again, another question for scheduler.

 In setting up scheduler, I am running into a problem with the width of my events.  I have a large number of events that I would like to display.

It looks like the Scheduler gets its size based on the number of events, and a slot size determined by the client browser.

 

What I would like to achieve is in week view, I would like to set the event width to a fixed size of 125px, then have scheduler calculate column widths off of this value.

 

What is happening is that on week view, if a day has 30 people scheduled, the events are so thin they can't be seen.  I'd like to set them to a fixed width and have scheduler stretch to accommodate it.

 I can achieve something similar with CSS by using:

.k-event {
       font-size: 12px !important;
   }
  
       .k-scheduler-layout {
       table-layout: fixed;
       overflow: -moz-scrollbars-horizontal;
   }
  
   .k-scheduler-layout > tbody > tr > td:first-child
       {
         width: 85px;
       }
  
   .k-scheduler-weekview .k-scheduler-content .k-scheduler-table,
   .k-scheduler-weekview .k-scheduler-header .k-scheduler-table {
       min-width: 25200px !important;
   }

 

But that isn't a real fix, as if my schedule grows to accommodate more individuals I will run into bleeding of events into another day (display issue), and on days with light scheduling, I have a lot of white space that looks bad.

 

Georgi Krustev
Telerik team
 answered on 04 Dec 2015
3 answers
96 views

Steps to reproduce...

1. Any old datagrid with a filter row enabled

2. Go to any numeric columns and enter a value in the filter field

3. Blur the field (tab out or click anywhere) the value

4. The value entered in the filter column is reformatted.

 ---

I was trying to filter my grid with a record number of 571339. It is just an int in my view model -- not formatted as Currency. When I tab out of the grid, it reformats it to 571,339.00. It's not breaking anything, but it's annoying one of my vocal customers.

 

How can I initialize my grid in MVC to not reformat numeric values to currency?

 

 

Viktor Tachev
Telerik team
 answered on 04 Dec 2015
6 answers
217 views
I'm grappling with how to pass two views to the Gantt chart properly.  I notice from the examples that Telerik are using Services to provide the datasources but I really wanted to Strongly Type my (partial) view and maintain the MV(VM)C convention.

So I have:

Viewmodel:
Namespace Models
 
    Public Class Tasks
        <Key> <Display(Name:="Job")> Public Property TaskID As Integer
        <Display(Name:="Project Name")> Public Property Title As String
        <Display(Name:="Start")> Public Property StartDate As Date
        <Display(Name:="End")> Public Property EndDate As Date
    End Class
 
    Public Class Dependencies
        <Key> <Display(Name:="Dependency Id")> Public Property DependencyID As Integer
        <Display(Name:="Predecessor Id")> Public Property PredecessorId As Integer
        <Display(Name:="Successor Id")> Public Property SuccessorId As Integer
        <Display(Name:="Type")> Public Property Type As Integer
    End Class
 
    Public Class TypeDep
        Public Task As IEnumerable(Of Tasks)
        Public Dep As IEnumerable(Of Dependencies)
    End Class
End Namespace


Controller:
Dim iTasks As IEnumerable(Of Models.Tasks)
Dim iDeps As IEnumerable(Of Models.Dependencies)
Dim TD As New Models.TypeDep
TD.Task = iTasks
TD.Dep = ideps   
Return PartialView("Gantt", TD)


View:
@ModelType ienumerable(Of IMS_2.Models.Typedep)
 
@(Html.Kendo().Gantt(Model).Name("chart").Title("Example Column Chart"))

I'm getting a syntactical error in the view in respect of TTaskModel not being able to be inferred.  I can't find any examples of this approach - could anyone give me guidance?

Many thanks

Alex Gyoshev
Telerik team
 answered on 04 Dec 2015
3 answers
345 views

I have a Grid with a popup that has an upload module. after uploading a file to the server, I want the "Success" event to populate a hidden field for the model.

The code is as follows.

GRID________________________________________________

@(Html.Kendo().Grid<BlueWebApp.Models.Note>()
    .Name("NoteGrid")
    .Columns(columns =>
    {
        columns.Bound(c => c.NoteID).Width(50);
        columns.Bound(c => c.NoteText).Width(150).Title("Text");
        columns.Command(c => c.Edit());
    })
    .HtmlAttributes(new { style = "height: 600px; width: 100%" })
    .Editable(ed => { ed.Mode(GridEditMode.PopUp).TemplateName("NoteEditTemplate"); })
.ToolBar(e => e.Create())
.Pageable(pageable => pageable
    .Refresh(true)
    .PageSizes(true)
    .ButtonCount(5))
.DataSource(dataSource => dataSource
    .Ajax()
    .Read(read => read.Action("GetNotes", "Note"))
    .Create(c => c.Action("CreateNote", "Note"))
    .Update(u => u.Action("UpdateNote", "Note"))
    .Model(m =>
    {
        m.Id(p => p.NoteID);
    })
    )
)
 

 

EDITORTEMPLATE_______________________________

@model BlueWebApp.Models.Note
 
<div style="height: 100px;">
    This is customized Person edit template
 
        @Html.HiddenFor(model => model.NoteID)
        <br />
        @Html.HiddenFor(model => model.NoteText, new { id = "test"})
                 
</div>
<div>
    @(Html.Kendo().Upload()
         .Name("files")
         .Events(events => events.Success(
         @<text>
    function(e) {
        $('#test').val(e.response.fileName);
    
    }
        </text>))
         .Multiple(false)
         .Async(a => a.Save("Save", "Note")
                      .Remove("Remove", "Note")
                      .AutoUpload(true)
        )
 
)
</div>
<br />

When clicking the "Update" button on the popup the hidden field with id Test has been given a value. but that value is not passed to the model.

 What am I doing wrong?

 
 

Dimiter Madjarov
Telerik team
 answered on 03 Dec 2015
5 answers
140 views

I have an event template:

<script id="event-template" type="text/x-kendo-template">
    <div style='background-color: #=Color#'>
        <span>#= title #</span>
    </div>
</script>

I base the color on the start date of the event which works fine for all events except for those with recurrence events.

Since the parent recurrence event was set up in the past it displays the color data from the parent and not the actual recurrence event which is in the future.

How can I setup the recurrence event data when it is displayed on the scheduler?

 

Georgi Krustev
Telerik team
 answered on 03 Dec 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?