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.

Angularjs - Setting SelectedIndex does not work

Thread ID:

Created:

Updated:

Platform:

Replies:

121124 Nov 12,2015 08:06 AM Nov 17,2015 06:06 AM JavaScript 1
loading
Tags: ejListBox
Rob ONeill
Asked On November 12, 2015 08:06 AM

Hi,
We have an angular ej-listbox but since upgrading to 13.3.0.7, and changing selectedItemIndex to selectedIndex (in fact neither of these work) we cannot get our listbox to show with a selected value.

I have tried with a very simple example and that does not work either

<span class="sampleName">Listbox / AngularSupport</span>
<div ng-app="syncApp">
    <div ng-controller="ListboxCtrl">
        <ul ej-listbox e-datasource="options" e-width="100%" e-fields-id="Id" e-fields-text="Name" e-selectedindex="optionIndex"></ul>
        <script type="text/javascript">
            angular.module('syncApp', ['ejangular'])
                .controller('ListboxCtrl', function ($scope) {
                    $scope.optionIndex = 2;
                    $scope.options = [{ Id: "1", Name: "All" }, { Id: "2", Name: "Audi" }, { Id: "3", Name: "BMW" }, { Id: "4", Name: "Mercedes" }];
                });
        </script>
    </div>
</div>

Cheers ... Rob.

Selvamani Sankarappan [Syncfusion]
Replied On November 17, 2015 06:06 AM

Hi Rob

Sorry for the inconvenience caused,

We have analyzed your query and able to reproduce the reported issue in our end. We have considered this “cannot get our listbox to show with a selected value“as a defect and logged an issue report on this.

A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents 

Regards,

Selvamani S


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.

;