Telerik Forums
Kendo UI for jQuery Forum
2 answers
69 views
 
                  We have one asp.net major project. which has many pages and its fully depends on gridview. Dropdown box bounded on grid row.  Now, we have to change that project to MVC application. which one is best in MVC(asp.net or razor) for developing my project using telerik(kendo). 


                And give me one sample application for gridview with dropdown selection in MVC using telerik.

vinothini
Top achievements
Rank 1
 answered on 28 Jan 2014
1 answer
76 views
Hi,
   How to enable keyboard navigation for grid?  What i want to achieve is on clicking tab it control should goto next cell, similarly left/right/up/down arrows should go to previous/next/above/bottom cells.

Thanks
Shaneed
shaneed
Top achievements
Rank 1
 answered on 28 Jan 2014
5 answers
111 views
I have a very simple page , which displays Log4Net entries on the page. It has a grid with a refresh button.
When I hit the  refresh button, I do supply additional parameter to the refresh function.
It works in 2013.3.1119 and before, but that functionality is broken in 2013.3.1316.340.

The Page:
@using Monitoring.Contracts.Models
@model  Tuple<IEnumerable<string>, IEnumerable<Log4NetLogItem>>
@{
    var items = Model.Item1.Select(m => new SelectListItem {Text = m, Value = m});
}

<div style="width: 100%;text-align: center">
    <div style="display: inline-block">
        Log4NET Log Viewer &nbsp; 
        @(Html.Kendo().DropDownList()
              .Name("ddLogFiles")
              .DataTextField("Text")
              .DataValueField("Value")
              .Events(e => e.Change("adminContext.ddLogFilesChange"))
              .BindTo(items)
              .SelectedIndex(0)
              )
    </div>
    <br/><br/>
    <div style="text-align: left">
        @(Html.Kendo().Grid(Model.Item2).Name("grdLogItems")
        .Columns(c =>
                     {
                         c.Bound(a => a.LogDate).ClientTemplate("#= kendo.toString(LogDate, \"yyyy-MM-dd HH:mm:ss\") #").Width("10%");
                         c.Bound(a => a.LogLevel).Width("5%");
                         c.Bound(a => a.UserName).Width("10%");
                         c.Bound(a => a.UserAddress).Width("10%");                        
                         c.Bound(a => a.LoggingClass).Width("10%");
                         c.Bound(a => a.LogMessage).Width("45%");
                         c.Bound(a => a.UserAgent).Width("20%");
                     }
        )       
        .Pageable(p=>p.PageSizes(new[]{5,20,100}).Refresh(true))
        .Sortable() 
        .Filterable() 
        .Scrollable(a=>a.Height(500))   
        .Resizable(a=>a.Columns(true))   
        .DataSource(d=>d.Ajax().PageSize(100).ServerOperation(false).Read(r=>r.Action("GetLogEntries","Admin").Data("adminContext.extraLogData")))
        )
    </div>
</div>
Controller Action:

 
public ActionResult GetLogEntries([DataSourceRequest]DataSourceRequest request, string fileName)
        {
            string path = Server.MapPath("~\\Logs");
            var newpath = string.Format("{0}\\{1}{2}", path, fileName, ".log");
            IEnumerable<Log4NetLogItem> lines = ClientNetworkManager.GetLogItems(newpath);
            return Json(lines.ToDataSourceResult(request));
        }

Javascript function:
extraLogData: function () {
        var dropdownlist = $("#ddLogFiles").data("kendoDropDownList");
        return { fileName: dropdownlist.value() };
    }

Javascript correctly returns the fileName parameter, but the controller's fileName parameter is now always null. 
And as I said it works in  2013.3.1119 .
Looking into the raw HTML request  I'm no longer see fileName as a part of the Form data.






Shawn
Top achievements
Rank 2
 answered on 27 Jan 2014
1 answer
4.2K+ views
Hello team, we are facing issue where we want to insert a summary row below the grid, that also with the space between the grid and the summary row.

This row will contain
1. Custom text
2. addition resulting value column wise
3. jscript, so that editing the value in upper grid changes in addition of the summary row.

grid is model binded.
Please give your response to acheive this ASAP please.
  
Jono
Top achievements
Rank 1
 answered on 27 Jan 2014
2 answers
50 views
Hi

Your search " Grid " did not match any documents. Suggestions:Make sure all words are spelled correctly.Try different keywords.Try more general keywords.

Your search " Datetime " did not match any documents. Suggestions:Make sure all words are spelled correctly.Try different keywords.Try more general keywords.

I cant get any hits, even with words i know are in some of the threads here.

Cheers
Bonsak
Dimo Mitev
Telerik team
 answered on 27 Jan 2014
8 answers
315 views
Hi,

setting the background as transparent:

chartArea: {
    background: "transparent"
},

works like a charm in IE9 and FF but doesn't work in IE7 or 8.  They both set the background a solid black instead.

Thanks.
Iliana Dyankova
Telerik team
 answered on 27 Jan 2014
1 answer
266 views
Ive noticed that my Kendo grid does some kind of polling against the server, it looks like this and happens every 5 seconds. Where can I control/turn this off?

http://localhost:50456/5a3dbb1045da45e88a09debc50b20359/arterySignalR/poll?transport=longPolling&connectionToken=AQAAANCMnd8BFdERjHoAwE%2FCl%2BsBAAAAzVOHoG9HskaElCdveVM%2BkQAAAAACAAAAAAADZgAAwAAAABAAAADZt2LgJhM8QT13N%2F%2BQfR%2B7AAAAAASAAACgAAAAEAAAAA%2BrGvEsdlnr6SSC9ps4PjQoAAAAUhhG5AZL5iPFiAkuJM0arwbNvjLSmGrtXu4uNjEfxuQmkKlH0%2FV1DxQAAACum6YeM4xVaQaE9FaawENru3KAMQ%3D%3D&messageId=d-8C9AEF99-Ct%2C0%7CCu%2C4%7CCv%2C0&requestUrl=http%3A%2F%2Flocalhost%3A50436%2F&browserName=Firefox&tid=5&_=1390612684802
Atanas Korchev
Telerik team
 answered on 27 Jan 2014
1 answer
92 views
Hi,
Would you please update kendoui grid command to be generic opposed to be bound to a tag. That way we can have buttons or a tags used to respond to user actons.
As I see it you would only have to change code below from

if (editable.update !== false) {
    that.wrapper.on(CLICK + NS, "tbody>tr:not(.k-detail-row,.k-grouping-row):visible a.k-grid-edit", function(e) {
        e.preventDefault();
        that.editRow($(this).closest("tr"));
    });
}

to

if (editable.update !== false) {
    that.wrapper.on(CLICK + NS, "tbody>tr:not(.k-detail-row,.k-grouping-row):visible .k-grid-edit", function(e) {
        e.preventDefault();
        that.editRow($(this).closest("tr"));
    });
}

Thanks.
Alexander Popov
Telerik team
 answered on 27 Jan 2014
1 answer
2.8K+ views
Hi,

I was wondering what the difference between the Combo Box widget and the Drop Down List widget are.
At first glance they seem to both be the exact same thing.

Can someone explain what the difference between the two are? What  are their intended purposes?
And give an example on when I'd choose one over the other?

Thanks
Atanas Korchev
Telerik team
 answered on 27 Jan 2014
1 answer
80 views
Context:
1. virtual scrolling enabled in the grid
2. pagesize = 10

Steps to reproduce:
1. Call the removeRow 5 times
2. Now scroll to the bottom of the grid so new records are pulled in

Expected:
The row pages in the next set of records (rows 6-15)

Actual:
The browser crashes. I don't see an error logged in Chrome

Alexander Popov
Telerik team
 answered on 27 Jan 2014
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?