datasource integer id

Hello. 
1. I have some problem with cheked listview control when i'm trying to use integer id in datasource array ( data = [  { text: 'text1', id: 1 },  { text: 'text2', id: 2 }] ) . I get error "split-button.js:294 Uncaught TypeError: Cannot read property 'Text' of undefined" .
(For example, in case of ejs-multiselect control it's all ok when id is integer)

2. I'm using dropdown list with the next code:
 ejs-dropdownlist id="ClientId" dataSource="@ViewBag.ClientList" value="@Model.ClientId" 
where Model.ClientId - integer id of the current client.

When i use data source with integer id, there is no selection on open view, when id is string - all ok!
Thx!!!

1 Reply

SS Subha Shree Ramanathan Syncfusion Team April 25, 2018 03:57 AM UTC

Hi Alex, 

Thanks for your interest in Syncfusion controls. 

We are happy that the issue resolved at your end, while using string type ID attribute. According to W3C standards, the ID attribute must be a string. Refer to the below links.  
  
  
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id 

Also we considered your feedback and we will include the fix in our upcoming patch release, which is expected to be rolled out by mid of next week. 

Please let us know if you need further assistance on this. 

Thanks, 
Subha Shree D.R 


Loader.
Up arrow icon