Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.6K+ views

Hi there,

When using kendo Validator - is there a configuration option to set the focus to the first invalid field?

With the current application I am working on there are several long forms - it would be beneficial if the browser scrolled to the invalid field.

I can see how to do this easily with jQuery validate - but I can't seem to see an obvious extension point to do this with kendo Validator?

Thanks,

Paul

Eduardo Serra
Telerik team
 answered on 02 May 2017
1 answer
668 views

Hi, 

I'm using existing sample project posted on net for Kendo grid with custom pop up editor. This works fine. That means Adding/Editing records works.

However , as per requirement Instead of standard textbox, we are suppose to use rich text box editor. So, when I use RTE (Rich text editor) for adding /editing records it works fine only

1. If I do not apply any of the RTE functionality (E.g. Bold/Italic/underline).

however when I apply any RTE functionality (E.g. Bold or Italic or underline) on text  and click on Update  then  following things happens ,

1.As soon as I move my cursor control out of RTE then behind the scene grid show that entry  with little red mark (which also happens above case as well)

2. However no Control action method  gets called and Pop up window never closes.

 

Please note, I tried with different Permutation and combinations of  .Encode() but it didn't worked. Pop up window never closes and no controller action methods gets called.

I'm attaching  my code images and output.

Viktor Tachev
Telerik team
 answered on 02 May 2017
1 answer
211 views
We are experiencing an issue on the calendar on touch devices, when a user taps the next or previous month buttons it skips a month each time, so for example it would go from January to March.

I'm pretty sure we haven't altered any of the Kendo functionality so it should still be working as it was created. I want to test a demo on your site of the calendar from the version we're using (version 2015.2.624) to see if the issue occurs on your end as well. Is there any way we can test a demo from the past versions?
Stefan
Telerik team
 answered on 02 May 2017
2 answers
407 views

I am very close to getting this working with all the help within the forums, I appreciate all the people whom have taken the time to post!! Including the KENDO administrators!

 

I can read json withing my transport with no issues and even do an update with no issues BUT after the update when I requery the database sometimes the grid is not refreshed with the new data but the database and the degugging shows the correct data. I use this onclick function to requey the database and was wondering if it is correct.

Thanks again!!

01.function getData(){
02.     
03.    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
04.    var sheet = spreadsheet.activeSheet();
05.    sheet.dataSource.transport.options.read.url = "index.cfm?event=general.excel&action=load&startDate=" + $('#startDate').val() + "&endDate=" + $('#endDate').val() + "&lobID=" + $('#area').val();
06.    sheet.dataSource.read();
07.      
08.      
09.    $('#spreedsheetGrouping').show();
10. 
11.} //end getData

 

Veselin Tsvetanov
Telerik team
 answered on 02 May 2017
4 answers
135 views

Hi how can i close second level  nodes please.

 

https://s10.postimg.org/8ouy6zo95/Capturar.jpg

 

Thank you
Konstantin Dikov
Telerik team
 answered on 02 May 2017
3 answers
180 views

Hello,

I used spreadsheet to open an xlsx file like in this demo (http://demos.telerik.com/kendo-ui/spreadsheet/server-side-import-export), but I found a problem with the filters in the excel file. In the "filter by value" zone, it appears only "all" , the other values doesn't appear , also for the "filter by Condition" zone when I try to find some value the filter doesn't work, it only changes the color of the arrow icon but all the values still exists.

As for the excel file I created a simple excel file with some filters. I noticed that the filters works only if I used an excel file that I have already used its filters in Microsoft excel.

I used 

below the code that I used 

HomeController.cs:

        public string GetJsonExcel(string fileName1)
        {
            var fileName = fileName1.Replace("***", "'");
            string pathF = ConfigurationManager.AppSettings["PathDocs"].ToString();
            var physicalPath = Path.Combine(pathF, fileName);
            var workbook = Workbook.Load(physicalPath);
            return workbook.ToJson();
        }

 

Index.cshtml:

<div id="spreadsheet" style="width: 100%; height: 99%"></div>
<script>

    $("#spreadsheet").kendoSpreadsheet();
    var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
    $.getJSON(generateUrlWithParam("Home", "GetJsonExcel", "fileName1", "spreadsheet with file after using filters in microsoft excel.xlsx"))
        .done(function (sheets) {
            spreadsheet.fromJSON(sheets);
          });
         
        });
</script>

Best regards, 

 

Nencho
Telerik team
 answered on 02 May 2017
1 answer
392 views

I am checking out KendoUI for Angular.  

The DataQuery component mentions mvc integration (http://www.telerik.com/kendo-angular-ui/components/dataquery/mvc-integration/).

I went to (http://docs.telerik.com/aspnet-core/getting-started/getting-started#configuration-Add) on how to add the UI for ASP.NET Core.

The only thing I can find at the source is KendoUIProfessional.Trial.

What gives?  I am trying to get the mvc service extenstions like ToDataSourceResult.  

Ianko
Telerik team
 answered on 02 May 2017
2 answers
441 views

I would like to localize the "No data found" message in the grid when the column filter is not overriden. In my grid I have filterable mode="row" so by setting the column values to collection the filter will work as expected. Is there a way to easily override this label without customizing the filter? 

<kendo:grid-column title="Field1" field="field1">
    <kendo:grid-column-values value="${field1Values}"/>
 </kendo:grid-column>

 

I found the <kendo:grid-filterable-messages> tag which has options to translate a few properties, so I expected that this would be there too.

Thanks in advance.

Daniel

Daniel
Top achievements
Rank 1
 answered on 02 May 2017
13 answers
1.7K+ views

Hi 

I get some problem when I try to delete a record in Grid. They method will call the create and update method which is I don't want.

Please refer to pic1, my grid is batch update, I have one record in , then click Add new record button to add two new records but not save into database yet. At this moment, there are three records in grid, then I click the delete button on the third row, it will trigger the create method to transfer the two new records to the backend, this is I don't want, because I have not typed any value, it will get error in my backend.

So my question is there any way to ignore the create, update method when I click the delete button?

Below is the method of my custom Delete button.

function onDeleteConfirm_VendorSalesRepsGrid(e, obj) {
    e.preventDefault();
    var dataItem = obj.dataItem($(e.target).closest("tr"));
    CustomConfirmDialog("Are you sure you want to delete this Vendor Sales Reps?", function test2(result) {
        if (result === true) {
            var dataSource = $("#VendorSalesRepsGrid").data("kendoGrid").dataSource;
            dataSource.remove(dataItem);
            //If the id equal to 0, it means that this record does not existed in database. so no need to run the sync().
            if (dataItem.id != 0) {
                dataSource.sync();
            }            
        }
    });
}

 

Stefan
Telerik team
 answered on 02 May 2017
3 answers
311 views

Hi,

Facing issue with TreeView with  angular1. PSB code.

Problem: When i try to model my JSON for Checkbox Tree doesn't bind my attribute named "children" may be because the property name same!

Expected: As we change kendo default "text" property to custom "dataTextField", How can i replace "items" to "children"

 

HTML:

<div kendo-tree-view="tree"  k-data-source="dataSource"   k-options="options"   k-on-change="selecteditem=dataItem"> </div>

 

Angular:

 var schemaTree = {
        model: {
          //children: "items"
            children: "children"
          }
        };

        $scope.options = {
         dataTextField: "name",
          
          checkboxes: {
            checkChildren: true,
            template: "<input id='checkbox_#:item.uid#' ng-model='dataItem.isChecked' type='checkbox' class='k-checkbox'/><label for='checkbox_#:item.uid#' class='k-checkbox-label'></label>"
          },
          
          template: "#: item.name #"
        };

        $scope.treeData = [
          {
            "name": "Alex's family tree",
            "isChecked":true,
            "id": 44,
            "items": [
              {
                "id": 1,
                "name": "Reef",
                "isChecked": true
              },
              {
                "id": 2,
                "name": "Coraline",
                "isChecked": true
              }
            ],
            "children": [
              {
                "id": 1,
                "name": "Reef",
                "isChecked": true
              },
              {
                "id": 2,
                "name": "Coraline",
                "isChecked": true
              }
            ]
          }
        ];
        
        $scope.dataSource = new kendo.data.HierarchicalDataSource({
        data : $scope.treeData,
          schema: schemaTree
        });

 

Please let me know if you need more info on the same. Any help will be appreciated.

 

Regards,

Harish

Veselin Tsvetanov
Telerik team
 answered on 02 May 2017
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?