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.
Unfortunately, activation email could not send to your email. Please try again.

I want to display grid record onfirst postion in as editable

Thread ID:

Created:

Updated:

Platform:

Replies:

119986 Aug 20,2015 07:23 AM Aug 21,2015 06:35 AM JavaScript 1
loading
Tags: ejGrid
Rakesh Advani
Asked On August 20, 2015 07:23 AM


Technology : Angualar js and mvc 

  I want to display specific record on first position and grid textbox should be open to do changes on it.




Isuriya Rajan [Syncfusion]
Replied On August 21, 2015 06:35 AM

Hi Rakesh,
We need the following details to analyze you requirement.

1.     While clicking on the Add button in Toolbar, a new row will be included automatically in the top of the Grid. So let us know in which scenario you need an editable row in first position?

 And refer the below code and let us know you if want to insert your data to the first position in the dataSource via any of the operations like in the code.


  <input type="button" ng-click="addItem()" value="Add Item" /><br/>



function Ctrl($scope) {

                    $scope.data = [

                    new String('Item 4'), new String('Item 3'), new String('Item 2')];



                    $scope.addItem = function () {

                        var c = $scope.data.length + 1;

                        var item = new String('Item ' + c)

                        $scope.data.splice(0, 0, item);

                    };

                }






2.     Are you using any of the Grid editTemplates? 

3.   While clicking on the Edit button, you can made changes in Grid textbox. In which scenario you expecting to display an editable textbox?   

Please let me know if you need any further assistance.

Regrads,

Isuriya R


CONFIRMATION

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.

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.

;