Telerik Forums
Kendo UI for jQuery Forum
0 answers
3 views

Hi,

I have a line chart to show two data series, I use two line types but the legend is not synced with the series dash type.


function GetSeries() {
		return [{
			name: chartTerms[68941],
			type: "line",
			dashType: "dot",
			field: "Benchmark",
			color: chartColors["LightPurple"],
			markers: {
				visible: false
			},
		},
		{
			name: chartTerms[7151],
			type: "line",
			field: "Result",
			color: chartColors["DarkPurple"],
			markers: {
				visible: false
			},
		}]
	}

what I see is:

The Benchmark legend is not correct, it should be "dot"

Any idea?

Fahime
Top achievements
Rank 1
 asked on 27 Jan 2022
1 answer
38 views
Hi All, Looking for some information.

I now have a site up and running using KendoUI and I am getting reports about problems with different browsers. I do my initial testing using Crome and IE9, then I try to test on different version of IE and it's browser/document modes and compatibility view, plus firefox....
Then add in mobile devices and it get rather difficult to manage. Plus have to get all the hardware/software configurations to test with.

Right now I am working on a problem with IE8 in compatibility view (or is it not in compatibility view, because I have to rely on user's reports) where the KundoUI Datepicker is not working.

My question is: What tool(s)/methods are being used to test a page/site on the various browsers and variants of browsers?
I found one site (crossbrowsertesting.com) that will take screen shots using a number of different browsers. But I need more then that. For example: I need to select a date from a date picker drop-down and verify that it's work on all configurations.


Any help?

George


Elena
Telerik team
 updated answer on 27 Jan 2022
0 answers
2 views

I have a hierarchy with multiple roots and I have a requirement that only the root should have the delete button enabled and when pressing delete to remove the whole hierarchy.

As it works now it seems that when I press the delete button for each node the ajax delete method is called.

Is there a way to call the delete method only for the selected node?

Is there an example where I can remove the nodes programmatically without calling the ajax delete method.

Dan
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 27 Jan 2022
1 answer
8 views

Hi

I am working on a project that utilizes multiple rows. I have "required" in the html and a validator (such as the one below) in the typescript file.

The issue is that, if I check for validation and it returns false, then I close the window and go to a different row, the new row will still have false validations from the previous row and will still have the red borders around the required fields.

I can't find a way to turn off the validation when the row is exited.

I have attempted things such as this.kendoValidator.cleanAttributes; thinking it would clear the validation when the window is closed but the validator is still holding onto that false value for any other row that I go into.

Neli
Telerik team
 answered on 27 Jan 2022
0 answers
2 views

 

Hi, I want to send data for json format. 

 

This is my data format.

data = {models: Array(1)}, type = "update....

I want to send data like this.


data = {foo: 'bar', locale: 'en', name: 'test', description: '1', ...}

 

This data is same as {models:Array(1)} 's array.

 

My code is here. I used parameterMap to data format for change.

                parameterMap: function (data, type) {
                     if (type === "update") {
                        debugger;
                        return kendo.stringify(data.models[0]);
                    }
                    return kendo.stringify(data);
                }


But when sending data, DataSource.transport.update send another data like this.

 


        var users = new kendo.data.DataSource({
            transport: {
                update: {
                    contentType: contentType,
                    url: function (options) {

                        return base_api_url_manage_users + "info/" + options.models[0].userId ;
                    },
                    type: "PUT",
                },


They send this format.

data = {models: Array(1)}, type = "update....

 

I want to send data form as Objcet, not as Object in Array. How can I change this data format???

Please help me.

 

Thank you.

sojin
Top achievements
Rank 1
 updated question on 27 Jan 2022
1 answer
8 views
Hi i needed some help as my kendo picker not able to clear the error message when the date format is correct


        $(function () {
     
                 var viewModel = kendo.observable({
                     selectedDate: new Date(),
     
                 });
                 kendo.bind($("#change-date-collection1"), viewModel)
     
                 $("#change-date-collection1").kendoValidator({
                     rules: {
                         // Implement your custom date validation.
                         dateValidation: function (input, params) {
     
                             if (input.is("[name='date']") && input.val() != "") {
                                 
                                 var date = kendo.parseDate(input.val(), "dd/MM/yyyy");
                                 if (date) {
                                     return true;
                                  
                                 }
                                 return false;  
                                 
                             }
                             return true;
                         }
                     },
                     messages: { //custom rules messages
                             // Return the message text.
                            dateValidation: "Not a valid date in dd/MM/YYYY format!",
                     }
                 });
             })

I want the messages to be remove or hide when it is correct but somehow i not able to 
Patrick | Technical Support Engineer, Senior
Telerik team
 answered on 26 Jan 2022
0 answers
4 views

Which event can I hook into in order to run custom code before a KendoGrid FilterMenu opens every time?

There is an event that runs once before it opens (filterMenuInit) and an event that runs every time after the menu opens (filterMenuOpen), but I need the third kind, which runs every time before opening.

Angelo
Top achievements
Rank 1
 asked on 26 Jan 2022
0 answers
3 views
I have a databound event that is used on grid but also on a treelist (at first it was grid). Is there a way to determine the type of the e.sender?
Dan
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 26 Jan 2022
0 answers
2 views

I am trying to implement filter which can support relative fields i.e. the first field would be table names once user choose any table then second field gets populated with all columns available for selected table. Now users can choose operator and pass value for filtering the column value. So basically I want to filter on basis of column's value. As I dont want to put all columns for all tables in one field because that makes my drop down very long as I have huge columns in some table and also user wont be able to search specific column easily hence I want to introduce one more field which is table drop down. Once user select from table drop down then column dropdown will only have selected table column which reduce the columns number and user can choose easily. see the attached screenshot for same.  So the expression preview should be something like <field1-N>.<field2-N> <operator> <value> e.g. "table1.column5 is equal to myvalue". How we can achieve this ? I tried using editortemplate of field property of kendo Filter widget and added field 2 as shown in attached screen shot but after that not able to get field 2 value in expression. Can someone suggest what are the other ways we can achieve this ?

Vishwas
Top achievements
Rank 1
 asked on 26 Jan 2022
0 answers
2 views

I have been working on the FileManager control with Kendo using jQuery & it feels very slow in initial loading when the file count increases to 5000+. I tried searching for custom paging, lazy loading, etc. for FileManager but no help. Do anyone knows how to achieve it? Any help will be highly appreciated.

Thanks.

Kirtika Patel
Top achievements
Rank 2
 asked on 26 Jan 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Richard
Top achievements
Rank 2
Iron
Iron
Iron
Bernd
Top achievements
Rank 3
Iron
Iron
Iron
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
CHIHPEI
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Richard
Top achievements
Rank 2
Iron
Iron
Iron
Bernd
Top achievements
Rank 3
Iron
Iron
Iron
Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
Benedikt
Top achievements
Rank 3
Iron
Iron
Iron
CHIHPEI
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?