Telerik Forums
UI for ASP.NET MVC Forum
2 answers
178 views
I am trying to add a data parameter to a grid read:

.Read(read => read.Action("NotesRead", "Server").Data(ViewBag.ServerId))

I have the controller as:

public ActionResult NotesRead([DataSourceRequest]DataSourceRequest request, string ServerId)

it is throwing the following error:

The call is ambiguous between the following methods or properties: 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(System.Func<object,object>)' and 'Kendo.Mvc.UI.Fluent.CrudOperationBuilderBase<Kendo.Mvc.UI.Fluent.CrudOperationBuilder>.Data(string)'

Andy Macourek
Top achievements
Rank 1
 answered on 29 Mar 2014
2 answers
210 views
My intellisense for Kendo ui doesn't work, I have already checked and have the correct using in the web config.

      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Routing" />
        <add namespace="Mbm.Web.RTPM.Helpers" />
        <add namespace="Kendo.Mvc.UI" />
        <add namespace="Telerik.Reporting" />
        <add namespace="Telerik.ReportViewer.Mvc"/>
      </namespaces>
Donald
Top achievements
Rank 1
 answered on 28 Mar 2014
1 answer
110 views
Hi Support,

How can i change the the grid filter format of numeric textbox to just textbox for integer column.

See the attachment i want to change that numeric textbox to normal textbox.


Thanks
Petur Subev
Telerik team
 answered on 28 Mar 2014
1 answer
185 views
I have a kendo grid which is populated form the database(works all fine) now when I click the "select" template column in the grid I want it to route to another page that has two controls:
a kendogrid and a list/table(both populated using sprocs ffrom database by passing in the productid from 1st grid)
How do I achieve this? I only get the json data in raw form on the page and not in the table..and I am not sure how to populate the list/table

​$(document).ready(function () {
var pId = '@(Model.ProductId)';
$.ajax({
type: "POST",
url: '@(Url.Action("GetDetails", "Search"))',
data: JSON.stringify({ ProductId: pId }),
contentType: "application/json; charset=utf-8",
dataType: "JSON",
success: function (data) {
$('#DetailsGrid').data('kendoGrid').dataSource.fetch();
},
});
});
Dimiter Madjarov
Telerik team
 answered on 28 Mar 2014
1 answer
74 views
I need a kendogrid in which one column should should have buttons that can be clicked with  either of two options:
"select"-->to open a pdf
"modify">to go to another page
either one of these should be visible depending on a value coming back from the database.
Please help!!!!!!
Dimiter Madjarov
Telerik team
 answered on 28 Mar 2014
1 answer
222 views
There are 3 bool values returned from the database: isProduct, isActive, isNew

I need to have one column in the kendogrid-"Details" column that will have 3 images (say red or green arrows) and text next to those arrows.
how can I get this ?
Dimiter Madjarov
Telerik team
 answered on 28 Mar 2014
10 answers
339 views
http://demos.telerik.com/kendo-ui/mobile/listview/press-to-load-more.html   : listview loadmore

1.Setting
loadmore(false) . pagesize(20)

***Result is exact match.

2. setting
loadmore(true) . pagesize(20)

***Result is not match.

please See VideoFile

Sorry, I am not good at english.

It's hard to learng KendoMobileMVC. 


file link :

http://blogattach.naver.com/fe6be257407574c4e5096e5c6082f986237580c0/20140320_191_blogfile/bak4500_1395299727774_rYMlbD_zip/erroravi.zip




Petyo
Telerik team
 answered on 28 Mar 2014
1 answer
95 views
I having a copy paste functionality using the Kendo Grid wherein i need to select mulitple items in the rows displayed in the Grid. The grid contains a scroll bar with 50 rows. When I try to scroll the grid for selection ( click and drag the mouse over the rows) the grid does not get scrolled to the rows at the bottom. Hence only the rows visible on the screen ( say first 10 rows) are getting selected. How do i resolve this issue?
PFA the screenshot for clarification
Dimo
Telerik team
 answered on 28 Mar 2014
1 answer
1.1K+ views
I have a grid comprising of 250 columns ( the number of columns is dynamic based on a precondition) with batch editing option. When i bind data in Kendo Grid , I am getting " A script on the page is causing your browser to run slowly. If it continues to run, your computer might become unresponsive " . Also the batch editing does not occur. Is there any limitations on the number of columns and rows in the Kendo Grid .
Please find attached the screenshot for your reference
Alexander Popov
Telerik team
 answered on 27 Mar 2014
3 answers
544 views
Hi,

I have a Kendo MVC grid ajax binding. In one of the column I am displaying hyperlink using clientTemplate  , when user clicks on the hyperlink  it opens up another window with new controller action which is working fine too. But now the requirement  when user clicks on hyperlink check user session has not expired and user still authenticated and if it is so then open up that new window otherwise clicking on hyperlink should open login controller action.

 I have written a javascript function on onlcik event for <a> tag  which checks if user has authenticated then open up new window  else redirect to login page But its not working. when I run it I get the empty grid. Below is the code.
 
@(Html.Kendo().Grid<Anthology.Services.Interfaces.DTO.Web.Models.DocumentHistoryModel>()
                          .Name("Grid")
                          .EnableCustomBinding(true)
                          .BindTo(Model)
                          .Columns(columns =>
                          {
                              columns.Bound(c => c.DocumentType).Title("Document Type").Filterable(false).ClientTemplate("<a onclick=\"IsUserAuthenticated('" + "#= DocumentGuid #')\" " + " href='javascript:void(0)'>#= DocumentType#</a>");
                              columns.Bound(c => c.Action).Filterable(false);
                              columns.Bound(c => c.DocumentThumbnail).Title("Document Thumbmail").Sortable(false).Filterable(false).ClientTemplate("<text><img src='" + Url.Content("~/content/images/BDC4B60F-1EEC-4FE8-BB9C-2CA9F2F29664.png") + "' height='35' width='30' onmouseover='MagnifyImage()'/></text>");
                          })
                         .DataSource(dataSource => dataSource.Ajax()
                              .Read(read => read.Action("Index_Read", "Home"))
                              .PageSize(5)
                              .ServerOperation(true)
                          )
                          .Events(events => events.DataBound("onGridDataBound"))
                          )  

  function IsUserAuthenticated(documentguid) {
        var userAuthenticated= @User.Identity.IsAuthenticated.ToString().ToLower();
        if (userAuthenticated==true) {
            var url = @Url.Action("Index", "ImageViewer") + "/" + documentguid;
            $(".k-grid-content table tbody tr td text img").href = url;
            $(".k-grid-content table tbody tr td text img").target = '_blank';
        } else {
            var urlAd= @Url.Action("Index", "Admin");
            $(".k-grid-content table tbody tr td text img").href = urlAd;}

    }







Petur Subev
Telerik team
 answered on 27 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
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
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?