Telerik Forums
UI for ASP.NET MVC Forum
1 answer
98 views
On this page.

http://docs.kendoui.com/getting-started/framework/globalization/overview

The first link with the name "this help topic" points to a blank page.

http://docs.kendoui.com/getting-started/framework/globalization/formatting
Dimiter Madjarov
Telerik team
 answered on 04 Apr 2013
1 answer
153 views
I need to preserve the filter, page, sort of my grid after moving off the page and coming back to it.  I found using a cookie to preserve grid state in the code library: http://www.kendoui.com/code-library/web/grid/preserve-grid-state-in-a-cookie.aspx. I have an MVC application, so I am having some difficulty understanding what is going on in the example, and what I would need to do to make this work with MVC.  Can someone explain how to make this logic work with MVC?
Dimiter Madjarov
Telerik team
 answered on 04 Apr 2013
5 answers
108 views
I have just updated to the latest build this morning.

2 issues with the grid:

a) when I click insert (toolbar) - it works the first time - the 2nd time - i have to refresh the browser.

b) when on the 2nd or higher page of a grid, clicking the insert does not have the popup appear.  By the looks of it, the shadow record is added to the grid on insert ... and since it's on another grid page - causes the grid to refresh and the popup edit window does not appear.

Update:  It seems like the edit popup edit window will open the first time (editing grid row) - but after that - the attached image shows what's breaking.
Rene
Top achievements
Rank 1
 answered on 04 Apr 2013
2 answers
159 views
If you have a menu and add a item like the line below. All menu items after the line show up even if the authorize say they should not. The menu work as expected if the line is  the last line. (1q 2013)
items.Add()
       .Text("Användare").Action("Index", "Dashboard", new { area = "SecurityGuard" });
Jan Olsmar
Top achievements
Rank 1
 answered on 04 Apr 2013
5 answers
415 views
DropDownLists (or ComboBoxes) for numeric members on the model do not post their value when used in a grid. I have attached a sample project. Is there anything I am doing wrong or need to do differently in order to accomplish this?
Daniel
Telerik team
 answered on 04 Apr 2013
1 answer
116 views
I've implemented a simple grid with popup editor templates. CRUD operations are implemented using AJAX calls.

Problem 1 - Duplicate records being created. 
I create a first record and it is added fine. When I create a second record, the first one is duplicated (along with the second record being created). I have resolved this issue by setting the ID of the model on creation and returning to client. 

Problem 2 - Multiple Delete calls
When I delete one record it works fine. When I delete a second record, two calls are made, this one and the previous one. As the previous record has already been deleted an exception is generated.

Problem 1 and 2 are both resolved if I refresh the browser after each operation. Is this a known issue? Is there a way to manually refresh the grid after each operation?  
John
Top achievements
Rank 1
 answered on 04 Apr 2013
3 answers
95 views
I am unable to get the grid to show the date properly when using objects within objects.
Here's a small example of where I am seeing this problem

HomeController.cs

public ActionResult Index()
{
    return View();
}
 
public static IEnumerable<Models.Customer> GetCustomers()
{
    var db = new Data.SomeDataContext();
    var query = ...
    return query;
}
 
public static IEnumerable<Models.Orders> GetOrders()
{
    var db = new Data.SomeDataContext();
    var query = ...
    return query;
}
 
public ActionResult CustomerOrder_Read([DataSourceRequest] DataSourceRequest request)
{
    var query = from o in GetOrders()
                 join c in GetCustomers() on o.CustomerAccountNumber equals c.AccountNumber
                 select new CustomerOrder
                 {
                     Order = o,
                     Customer = c
                 };
 
    return Json(query.ToDataSourceResult(request));

}

~/Home/Index.chtml

<div>
    @(Html.Kendo().Grid<Apex.Models.CustomerOrder>()
        .Name("Grid")
        .Columns(col =>
        {
            col.Bound(p => p.Order.OrderId);
            col.Bound(p => p.Order.Date);
            col.Bound(p => p.Order.Status);
            col.Bound(p => p.Customer.Name);
            col.Bound(p => p.Customer.Mobile);
        })
        .DataSource(data => data
            .Ajax()
            .PageSize(10)
            .Read(read => read.Action("ServiceOrder_Read", "Home"))
        )
        .Sortable()
        .Pageable()
    )
</div>

ExampleModels.cs

public class CustomerOrder
{
    public Customer Customer { get; set; }
    public Order Order { get; set; }
}
public class Customer
{
    public string AccountNumber { get; set; }
    public string Name { get; set; }
    public string Mobile { get; set; }
    public DateTime CreatedDate { get; set; }
    public DateTime ModifiedDate { get; set; }
}
 
public class Order
{
    public string Status { get; set; }
    public string OrderId { get; set; }
    public DateTime Date { get; set; }
}

Result

The problem is that the grid results should show a DateTime; However, it shows this...
Order    Date                     Status    Name    Mobile      
00-01 /Date(1364670000000)/ Open Adam 111-111-1111
00-02 /Date(1364670000000)/ Closed Eve 222-222-2222
00-03 /Date(1364670000000)/ Open Buddha 333-333-3333

Vladimir Iliev
Telerik team
 answered on 04 Apr 2013
1 answer
143 views
Does the KendoUI grid for ASP.NET MVC gracefully handle the back button out of the box? I assume it would do something like adding page numbers, search filters, sorting options, etc. as hashtags to the URL.

Is this possible?

Thanks!
Vladimir Iliev
Telerik team
 answered on 04 Apr 2013
8 answers
432 views
Hello
I want to implement "CrossTable"!
I found an example from Telerik, but could not find from you!
Can I use something other than DataTable (gridBindingToDataTable)?
 
please help!
and sorry for my bad english!
Gusev
Top achievements
Rank 1
 answered on 04 Apr 2013
1 answer
355 views
How to add command button icons? I would like to show only text. 

For example command below display Delete button but I would like to hide icon which appears near the button.

 columns.Command(commands =>
 {
commands.Destroy()
})
Iliana Dyankova
Telerik team
 answered on 03 Apr 2013
Narrow your results
Selected tags
Tags
+133 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?