Telerik Forums
Kendo UI for jQuery Forum
2 answers
3.9K+ views
I am working on the Kendo Grid (Batch Editing) with following columns:

A - Stock Value (Numeric) - Non-Editable
B - Item Type (DropDown) - values are "In Stock", "Purchase", "Out Stock", "Credit" - Editable
C - Percentage (Numeric) - Editable
D - Sale Price (Numeric) - Editable
E - Amount - Non-Editable

My requirement is when I change any of the editable field (i.e. Item Type, Percentage or Sale Price), the "Amount" field should be calculated based on following formula.

If "Item Type" = "In Stock" then "Amount" = "Stock Value" - "Percentage"
If "Item Type" = "Purchase" then "Amount" = ("Stock Value" + "Percentage") * "Sale Price"
If "Item Type" = "Out Stock" then "Amount" = ("Stock Value" - "Percentage") * "Sale Price"

If "Item Type" = "Credit" then "Amount" = "Percentage" * "Sale Price"

The "Amount value should be calculated, as soon as I change any of the editable field.

Thanks for your help in advance.

Regards,
Komail Noori

Patrick | Technical Support Engineer, Senior
Telerik team
 updated answer on 11 Jan 2024
1 answer
33 views

Hey everybody! 

There must be something simple that I am missing.

I currently have a template set up to render through renderMessage() which runs for every message on initialization. 
Loosely based on this. Thank you Martin for this one.
https://www.telerik.com/forums/set-date-on-rendermessage-in-kendochat

The issue is that when I hit the send button and it goes into the post() method, this template no longer applies and it seems to reverts back to default.

How do I wire up my template to be used by default on send button click? 

Best, 
Jeff 

Jeff
Top achievements
Rank 1
Iron
 answered on 11 Jan 2024
0 answers
45 views

I am using a kendoGrid bound to a SharePoint list. I am able to get the grid to work fine with pagination. The problem is that I am using large datasets so the query performance is slow due to returning the total record count. SharePoint provides a way to do paging without using a total record count. Queries return a "next" and "previous" page url (see screenshot below). I would rather use this method for the sake of performance. Is there a way to have a custom pager with just a next and previous button and set the click event of those buttons?

Justin
Top achievements
Rank 1
Iron
 asked on 11 Jan 2024
1 answer
787 views

Hi,

I upgraded my project from 2022.1.301 to 2022.2.621 and my text inputs lost there styling.

This markup worked fine with version 2022.1.301

<input type="text" id="gebruikersnaam" name="gebruikersnaam" class="k-textbox k-input" />

With the latest version it looks like the second input from above snippet.

It displays fine when i add the css class "k-input-solid":

<input type="text" id="gebruikersnaam" name="gebruikersnaam" class="k-textbox k-input k-input-solid" />

 

Do i have to update all my markup , or is this a bug?

Kind Regards,

Marco

 

 

 

 

 

 

 

 

Marco
Top achievements
Rank 1
Iron
 answered on 11 Jan 2024
4 answers
496 views
Has anyone been able to use the kendo grid that will automatically update when something is changed in the database using signalr and Entity framework?
I have seen people using sqlDependency to do this but this doesn't work with entity framework? 
Franz
Top achievements
Rank 1
Iron
Iron
 answered on 11 Jan 2024
1 answer
28 views
Hi!
I'm using the numericTextBox for diferent measures.
When I format the component with "0 kg" works ok, but i need to use "0 Âµg"  and does not work ok.

<script>
    $(document).ready(function() {
        // create NumericTextBox from input HTML element
        $("#numeric").kendoNumericTextBox({
            format: "#.00 kg"
        });
    });
</script>
That's Ok
but

<script>
    $(document).ready(function() {
        // create NumericTextBox from input HTML element
        $("#numeric").kendoNumericTextBox({
            format: "#.00 µg"
        });
    });
</script>
Shows "0,00xB5" instead of "0,00 µg"
Anyone knows why or has a solution?

Thanks and greeetings!
Daniel
Top achievements
Rank 1
Iron
 answered on 10 Jan 2024
1 answer
43 views

I'm just migrating an application to ASP.NET Core. A couple of data forms in pop-up windows use a kendo validator. This works to validate fields and highlight required fields, but the validate function is returning false even though the error count is 0.

I'm using version v2023.3.1114 of Kendo UI for ASP.Net Core.

The validation code is:-

		var validator = $('#MetaDatafrm').kendoValidator({
			validationSummary: true,
			validate: function (e) {

				var dropDowns = $(".k-dropdown");

				$.each(dropDowns, function (key, value) {

					var input = $(value).find("input.k-invalid");

					var span = $(this).find("span.k-dropdown-wrap");

					if (input.length > 0) { //if there is an input in here with k-invalid...

						$(span).addClass("dropdown-validation-error");

					} else {

						$(span).removeClass("dropdown-validation-error");

					}

				});


			}
		}).getKendoValidator();

		var x = validator.validate();

		var errors = validator.errors();

		//alert(errors.length);

		if(errors.length==0)
		{
			x=true;
		}

		validator.showValidationSummary();

	

		if (x == false) {
			alert('Form has failed data validation. Please correct and try again');
			return;
		}

The form is loaded from a partial view loaded by:-

function editMetaData(rID, rs) {

	srcFilter=rs;

	var wind = $('#wndMetaDataEdit').data("kendoWindow");


	$('#btnSave').removeProp("disabled");
	 $('#errorMsg').hide();

	wind.refresh({
		url: "@Url.Content("~/Home/EditMetaData?reportID=")" + rID + "&src=" + rs 
		
	});
	wind.center();
	wind.open();



}

This code did work in a previous version (v2023.2.718) but that was ASP.NET MVC, not .Net core.

Neli
Telerik team
 answered on 10 Jan 2024
1 answer
24 views
Hi I need help with the methods or solution that could help me filter or sort the table according to the selected in here .PageSizes(new[] { 10, 20, 50, 100 })) I have called my model in here  @(Html.Kendo().Grid<ProblemGridViewModel>() and I'm using Kendo grid with .Name and .colums. If possible let make it sort or filter without going to the model and controller. Just make the view do the things
Anton Mironov
Telerik team
 answered on 10 Jan 2024
1 answer
30 views
including cascade DDLs, it will help to manage submit buttons (enable/disable) & make sure that the data was loaded & set before the user can take any action  
Neli
Telerik team
 answered on 09 Jan 2024
2 answers
39 views

Hi,

Currently I am maintaining a couple of different versions of a project. The selectable option is working but the colors when a row is selected are off a bit:

Here is the older version of Kendo UI for jQuery (2020.3 SP1):

 

The newer version of Kendo (2023.3 SP1) changed the color, and it works nicely with my child grids:

How can I change the older Kendo UI so it looks more like the newer version? So when selected the background color changes  enough that the letters are visible in front of the background color? I am guessing there is a way to do this via  a cascading style sheet?

P.S. Here is a DOJO with my code:

https://dojo.telerik.com/@georgeg@pipkins.com/aZAwIRaX

 

Regards,

George

George
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 02 Jan 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?