Telerik Forums
Community Forums Forum
0 answers
59 views
Hi,

How to refresh kendo mvc grid on checkbox checked event

I have used the following code.But it is not working

 $(document).ready(function () {
        $("#chkClosedItems").click(function () {
           
            read:( {

                dataType: "json",

                url: "/ucTest/Test?ProjectItemID="
                              + 1
                             + "&ProjectID=" + 1
                               + "&isChkClosed=" + isChkClosed,

                    cache: false

            })

           
            $("#grid").data("kendoGrid").dataSource.read();

            
        });
Dayana Maliyakal
Top achievements
Rank 1
 asked on 11 Jun 2014
3 answers
85 views
Hello Telerik Team,

Window is displayed on button click.But it is not possible with a single click.Window will be displayed only after five or six times page refreshing.
How the window will display with in a single click?

Please check the below code:

​  <input type="image" src="../../Images/relateditem.gif" title="Relate Items" id="imgNonRelatedItems"
                            onclick="return testWindow();" />         

 function testWindow() {
     
        var ProjectID = document.getElementById('hfProjectID').value;
    
        var window = $("#RelateItemWindow").data("kendoWindow");        window.refresh({
            url: '/RelateItemMapping/RelateItemMapping/',
            data: { ProjectID: ProjectID }        });
    
        window.open().center();
        window.title("Add Related Items");
       
    }   

@(Html.Kendo().Window()
.Name("RelateItemWindow")
//To set reload,max,close,Minimize button
.Actions(actions =>
actions.Close().Maximize().Minimize().Refresh()
)
.Title("Add Related Items")
.Visible(false)
.Modal(true)
.Width(800)
.Height(530)            
        )


With regards
Dayana
Dimo
Telerik team
 answered on 06 Jun 2014
5 answers
141 views
Hi Telrik Team,

I have a following function:

function RelateItemsOpenWindow() {        
        
        var ProjectID = document.getElementById('hfProjectID').value;        
        var window = $("#RelateItemWindow").data("kendoWindow");

            window.refresh({
             url: '/test1/Index/',
          data: { ProjectID: ProjectID }

                 });
               
        window.open().center();
        window.title("Add Related Items");

}

<input type="image" title="Relate Items" id="imgNonRelatedItems"
onclick="return RelateItemsOpenWindow(); return false;" />

test1 controller contains a grid

Grid is displayed in the first time.But grid paging is not working.
How to resolve this problem?

With regards
Dayana
Dimo
Telerik team
 answered on 30 May 2014
0 answers
81 views
Hi Telerik Team,

I am using the following link for kendo editor

http://localhost:8301/razor/web/editor/index.

But I am getting only html tags and not getting editor toolbar.I am using the following scripts.

          <script src="/Scripts/kendo/jquery.min.js"></script>
     <script src="/Scripts/kendo/kendo.all.min.js"></script>
<script src="/Scripts/kendo/kendo.aspnetmvc.min.js"></script>  
   
    <link href="/Content/kendo/kendo.common.min.css" rel="stylesheet">
<link href="/Content/kendo/kendo.default.min.css" rel="stylesheet">


How to get Editor toolbar?

With regards
Dayana
Dayana Maliyakal
Top achievements
Rank 1
 asked on 27 May 2014
5 answers
80 views
How do I delete a thread or a reply?
Filip
Telerik team
 answered on 27 May 2014
0 answers
207 views
Hi Guys,

I'm currently working through the Hello KendoUI Tutorials, and am having a bit of trouble getting them to work properly in VB.NET. I'm new to the Visual Studio environment, so apologies if these seem like simple problems.

My first problem has been in the Employee Model object, particularly with the Data.Employee object. VS2013 says that "type Data.Employee is not defined". Here is my code for the sub:
Public Sub New(employee As Data.Employee)
            Me.Id = employee.Id
            Me.FirstName = employee.FirstName
            Me.LastName = employee.LastName
            Me.Title = employee.Title
            Me.BirthDate = employee.BirthDate
            Me.City = employee.City
        End Sub

One suggestion made by VS2013 was to change it to Model.Employee or just Employee which removed the error, but I don't seem to be able to get the grid to work. I've checked what's being sent and received in the network tab of the developer tools, and for api/employees I'm getting a 500 server error. In the javascripts response body, I can see the data being sent but it isn't populating the grid. I've been going through the code and can't see quite what's going wrong. If you need anymore info or code snippets I'll post them in a reply. Thanks in advance!
John
Top achievements
Rank 1
 asked on 09 May 2014
0 answers
122 views
I'm using the editor to image gallery of Kendo UI, the editor works fine (links, formats, etc. ..) and upload the photos to the gallery and read a service (rest); the problem is that when wanting to insert any image in the gallery get the error:

"too much recursion ... ute (i)," string "== typeof r) {try {r =" true "=== r 0:" false "=== r1:" null "r === null: + r ... jquery .... min.js (line 3) "

The funny thing is that when you remove the configuration "uploadURL", if you insert pictures in the textarea; obviously the plugin no longer gives me the option to upload.

In the documentation (http://docs.telerik.com/kendo-ui/api/web/editor # configuration-ImageBrowser): did not find details about how to fix it.

HTML(Razr)

   
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/vendor/kendo-ui/kendo.all.min.js"></script>

<div class="k-content">
  
<textarea id="KEditor" rows="10" cols="30" placeholder="@GetText("Content")" maxlength="255" style="height: 500px"></textarea>
</div>



Js
   
$(document).ready(function() {
                $("#KEditor").kendoEditor({
                    tools: [
                        "fontName",
                        "fontSize",
                        "foreColor",
                        "backColor",
                        "bold",
                        "italic",
                        "underline",
                        "justifyLeft",
                        "justifyCenter",
                        "justifyRight",
                        "justifyFull",
                        "insertUnorderedList",
                        "insertOrderedList",
                        "indent",
                        "outdent",
                        "createLink",
                        "unlink",
                        "insertImage",
                        "viewHtml"
                    ],
                    imageBrowser: {
                        transport: {
                            read: {
                                type: "GET",
                                url: "/api/sites/user-gallery",
                            },
                            destroy: "/api/sites/user-gallery?action=delete",
                            thumbnailUrl: function(path, name) {
                                var pictureUrl = decodeURIComponent(name);
                                return pictureUrl;
                            },
                            uploadUrl: "/api/sites/user-gallery?action=upload", //work if this line is commented
                            imageUrl: function(name) {
                                var pictureUrl = decodeURIComponent(name);
                                return pictureUrl;
                            },
                        }
                    }         
                    //, messages: { viewHtml: '@GetText("ViewHtml")'}
                });
            });


Json(read rest service):
    {
    "pictureId":1369437,
    "type":"f",
    "size":1024,
}
Jorge
Top achievements
Rank 1
 asked on 06 May 2014
1 answer
101 views
Hello,

I am neophyte for telerik and start working on a project witch is built up on SF 4.4.

I upgraded it on latest version 7.0. Now I want to know the features which are introduced in between versions.

I can find out latest one features in a document here.

But I want to know about all features from 5.0 and above or features by version.

Please share if there is any document.

Regards
Arvind Sharma
Nikola Zagorchev
Telerik team
 answered on 05 May 2014
0 answers
87 views
Hi guys,

I want to upload the whole folder with the contents inside  like  google drive   

please  give me source code 

Thanks  in advance for your help and your time!!!
Ravi
Top achievements
Rank 1
 asked on 30 Apr 2014
1 answer
122 views
I have 2 kendo grids that use the same data source. One displays zero
balance orders and the other displays orders with balances > 0. Each
one makes the same ajax call to get the full list of data and then
applies a filter for the grid (0, >0). Is there a way to have both
grids use the same datasource, but only make the ajax call once?
littleGreenDude
Top achievements
Rank 1
 answered on 28 Apr 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?