Telerik Forums
Community Forums Forum
0 answers
130 views
When using the Kendo DropDownList, is there a way to parse the value and text fields from a single datasource field?  Possibly using templates (or is the template for display only)?


Html.Kendo().DropDownList()
   .AutoBind(false)
   .Name("cboSearchCriteria")
   .Template("#:Value#|#:Key#")
   .DataTextField("Value")
   .DataValueField("Key")
   .DataSource(ds => ds.Read(read => read.Action("FilterSearchResults", "User")))   
       )


DataSource is receiving a list of strings back from "FilterSearchResults".

"AAAAAA|1"
"BBBBBB|2"
"CCCCC|3"

littleGreenDude
Top achievements
Rank 1
 asked on 23 Jun 2014
0 answers
84 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
108 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
169 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
115 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
116 views
How do I delete a thread or a reply?
Filip
Telerik team
 answered on 27 May 2014
0 answers
250 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
157 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
133 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
111 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?