Telerik Forums
Kendo UI for jQuery Forum
3 answers
262 views
I am returning http custom header from server after a user has uploaded a file. I would like to get hold of these header in the client , is it possible to get headers in onSuccess function ?
T. Tsonev
Telerik team
 answered on 13 Mar 2013
1 answer
91 views
This is my code for simple kendoGrid but it's didn't show the grid only html table . My scripts are in Layout.cshtml. And kendo works fine with HTMLhelpers.What am i missing
<script>
    
    $("#ProfitTab").kendoGrid()
</script>
<table id="ProfitTab">
    <thead>
    <tr>
           <th>
            @Html.DisplayNameFor(model => model.IdCategory)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Value)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Description)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateInput)
        </th>
        <th>Action</th>
    </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
         <td>
            @Html.DisplayFor(modelItem => item.IdCategory.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DateInput)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
    </tr>
}
    </tbody>
</table>
Dimo
Telerik team
 answered on 13 Mar 2013
3 answers
80 views
Hi,

We are showing  graph by using WebHelper.dll and webMatrix.dll. by fetching the values from database. The dll is present in MVC3 .
 
On button click we are able to show gchart but it is showing as image.
 
Can you please tell me how to show the graph on the same page without image type?

Regards,
-Pritam.
Atanas Korchev
Telerik team
 answered on 13 Mar 2013
1 answer
55 views
We have been testing kendo mobile's robustness to see if we can switch our entire development over to this framework.

On our initial tests everything worked beautifully. After we started to stress test it we found that due to the frameworks lack of memory management features we hit jumpy scrolling and delayed view transitions.

We would look at documentation and find bits to make things work better however, we are still looking for best practices in keeping responsiveness quick and memory usage down.

Our two main culprits/memory hogs are large listViews with images and transitioning between views.

What techniques have you used? We are thinking of destroying views after transitioning away from them.  

Also, what are all the possible events that a view can fire and is there documentation about these? I have found init, beforeShow and show.
Petyo
Telerik team
 answered on 13 Mar 2013
3 answers
109 views
I've setup a listview with a long list and having an input radio binding set on each. I have setup an example that shows this on this fiddle

http://jsfiddle.net/9QB4K/1/

Although the scrolling isn't working in the fiddle, the example is demonstrable by click-dragging and moving the mouse up, as if you were going to drag the screen. Regardless of the swiping action, it checks the row that you had clicked on.

I believe this is a bug, similar to another thread that I can't find now where it was reported fixed, but for android devices.
Petyo
Telerik team
 answered on 13 Mar 2013
1 answer
91 views
Hi,

   I am having the requirement that I am having the page with Asp:ObjectDataSourceControl which has some list of records. I want to use asp.net datasource control in Kendo gridview. Can anyone tell me how to provide datasource value of kendo gridview with sqldatasource/objectdatasource control.
Atanas Korchev
Telerik team
 answered on 13 Mar 2013
1 answer
159 views
Hi, 
   
    I am having the requirement that I am having WCF service which is not REST/JSON based. This is a simple WCF service. I am having ASP.NET MVVM based pattern application which has views, model and viewmodel. In most of the examples in Kendo UI written with MVC pattern(i.e with Controller). Can anyone share how to use ASP.NET MVVM (Not kendo client side MVVM) to populate data in kendo GridView.
   
Atanas Korchev
Telerik team
 answered on 13 Mar 2013
1 answer
274 views
Hi Guys, 

I am getting an error in dropdown list. 

Overload resolution failed because no Public 'BindTo' is most specific for these arguments:
    'Public Function BindTo(dataSource As System.Collections.Generic.IEnumerable(Of SelectListItem)) As Kendo.Mvc.UI.Fluent.DropDownListBuilder':
        Not most specific.
    'Public Function BindTo(dataSource As System.Collections.Generic.IEnumerable(Of DropDownListItem)) As Kendo.Mvc.UI.Fluent.DropDownListBuilder':
        Not most specific.

This is the line where this exception is being thrown at:

    <div class="editor-field">
        @(Html.Kendo().DropDownList().Name("ExternalMailItemID").BindTo(ViewData("ExternalMailItem")))       
        @Html.ValidationMessageFor(Function(model) model.ExternalMailItemID)
        </div>

This is what i am doing in the controller:

   <HttpPost()> _
        Function Create(ByVal collection As ExternalMailCost) As ActionResult
            Try
                If _repositoryForMailItem.IsExternalMailItemExist(collection.ExternalMailItemID, collection.StartDate, collection.EndDate) = True Then
                    ModelState.AddModelError("", "Unable to add record. There is an overlapping record for this mail item")
                End If


                If ModelState.IsValid Then

                    'Check whether a cost has already been associated with the same mail item
                    ' if there is already cost associated, then check whether the dates selected overlapse?

                    _repositoryForMailCost.Save(collection, "VivekBa")
                End If
                Return View()

            Catch
                Return View()
            End Try
        End Function

The error is thrown when i add the error in the addmodelerror, otherwise it works fine. please help
Atanas Korchev
Telerik team
 answered on 13 Mar 2013
3 answers
216 views
Hi,

I am using the Trial version of Kendo UI for ASP.NET MVC [2012.3.1315.340]. I am trying to customize the filter menu for a grid column as per the demo provide at the site - http://demos.kendoui.com/web/grid/filter-menu-customization.html

However, I cannot seem to get this to work. Below is my code

@(Html.Kendo().Grid<MyViewModel>()
              .Name("importersGrid")
              .Columns(columns =>
                  {
                      columns.Bound(m => m.Status).ClientTemplate("#=StatusText#").Filterable(filterable => filterable.UI("statusFilter");
                      columns.Bound(m => m.ActionOn).Format("{0:MMM dd, yyyy HH:mm}");
                      columns.Bound(m => m.Name).Title("Organization Name").ClientTemplate(@"# if (Status != 1) {# <a href=""Organizations/Show?id=#=PublicId#"">#=Name#</a> #} else {# <a href=""Importers/ApproveReject?id=#=PublicId#"">#=Name#</a>#}#");
                      columns.Bound(m => m.OrganizationCode);
                      columns.Bound(m => m.PrimaryLocation.City).Sortable(false);
                      columns.Bound(m => m.PrimaryLocation.Country).Sortable(false);
                      columns.Bound(m => m.PublicId).Sortable(false).Title("Actions").ClientTemplate(@"# if (Status==1) { #<a href=""Organizations/ApproveReject?id=#=PublicId#"" class=""approve-reject k-button"">Approve/Reject</a>#}#");
                  })
              .Scrollable()
              .Filterable(filterable => filterable.Extra(false).Operators(operators => operators
            .ForString(str => str.Clear()
                .StartsWith("Starts with")
                .IsEqualTo("Is equal to")
                .IsNotEqualTo("Is not equal to")
            )))
              .Sortable(sortable => sortable.SortMode(GridSortMode.SingleColumn))
              .Pageable(pageable => pageable.ButtonCount(5).PageSizes(new[] { 10, 25, 35 }).Info(true).Numeric(true).Messages(messages => messages.Display("Displaying {0} to {1} of {2} organizations")))
              .DataSource(dataSource =>
                          dataSource
                              .Ajax()
                              .ServerOperation(true)
                              .Sort(sort => sort.Add("Status").Ascending())
                              .Read(read => read.Action("GetCompanies", "Organizations", new { Area = "MyCompanies" }).Type(HttpVerbs.Get))
              ))
And below is my JavaScript

<script type="text/javascript">
        function statusFilter(element) {
            element.kendoDropDownList({
                dataSource: [
                    { text: "A", value: "1" },
                    { text: "B", value: "2" },
                    { text: "C", value: "3" },
                    { text: "E", value: "4" }
                ],
                filter: "contains"
            });
        }
    </script>
Now the MyViewModel.Status is an enum with values X, Y, Z.

When I run the application, and I get to see the Grid. The filter shows a dropdown of values X, Y, Z as per the Enum which is not what I expected. I wanted to see A, B,C, E as values and for some reason the statusFilter() function is never called. I set debug points using Web Dev tools in Chrome and it is never hit. I even placed the script tag above the point I declared the Grid. I see no JavaScript errors.

Please help!

Regards,
Ranganath Kini
Atanas Korchev
Telerik team
 answered on 13 Mar 2013
1 answer
95 views
You can reproduce this issue here on the "Batch Editing" demo: http://demos.kendoui.com/web/grid/editing.html

1. Edit any row. Note that the red "dirty cell marker" appears in the upper left corner.
2. Select a different row than the one you edited and Delete it.
3. The dirty cell marker on the first row disappears.

Is there any workaround for this issue?

Thanks!

Vladimir Iliev
Telerik team
 answered on 13 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?