We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How I can change the value from a ej-percentage-text-box to a column

Thread ID:





143022 Feb 28,2019 07:20 PM UTC Mar 4,2019 04:16 AM UTC ASP.NET Core 3
Tags: Grid
Asked On February 28, 2019 07:20 PM UTC

Hi, my friends, I wondering how can I change the column value from a  ej-percentage-text-box when I click on "Aplicar tasa" for example:

when I get click all 61% change to 20%

Vignesh Natarajan [Syncfusion]
Replied On March 1, 2019 07:00 AM UTC

Hi Neider, 
Thanks for contacting Syncfusion support. 
Query: “ how can I change the column value from a  ej-percentage-text-box when I click on "Aplicar tasa"” 
From your query we understand that you need to update the percentage column based on the ejPercentageTextBox. We have achieved your requirement using the setCellText method of Grid.  
Please refer the below help documentation and code example for more details. 
<ej-button id="btn" click="updatecolumn" text="Apply" /> 
<ej-percentage-text-box id="percentage" value="75" /> 
<ej-grid id="OrdersView" allow-scrolling="true" datasource="ViewBag.datasource"> 
        <e-column field="OrderID" header-text="Order ID" width="80"></e-column> 
        <e-column field="CustomerID" header-text="Customer ID" width="80"></e-column> 
        <e-column field="EmployeeID" header-text="Employee ID" width="80"></e-column> 
        <e-column field="Freight" header-text="Freight" format="{0:N}" width="80"></e-column> 
<script type="text/javascript"> 
    function updatecolumn(args) { 
        var gridobj = $("#OrdersView").ejGrid("instance"); 
        var rows = gridobj.getRows(); 
        var value = $("#percentage").ejPercentageTextbox("getValue"); 
        var colindex = gridobj.getColumnIndexByField("Freight"); 
        for (var i = 0; i < rows.length; i++) { 
            gridobj.setCellText(i, colindex, value/100); 
We have prepared a sample for your reference. Please refer the below link for the sample. 
Please get back to us if you have further queries. 
Vignesh Natarajan. 

Replied On March 1, 2019 05:09 PM UTC

A lot of thanks, it worked perfectly.

Sathyanarayanamoorthy Eswararao [Syncfusion]
Replied On March 4, 2019 04:16 AM UTC

Hi Neider, 
We are happy to hear that your issue has been resolved. If you need any further assistance, please get back to us. 
We will be happy to assist you. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon