This is a migrated thread and some comments may be shown as answers.

combo box from api doesn't work

3 Answers 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
beshoy
Top achievements
Rank 1
beshoy asked on 26 Jan 2020, 09:00 PM

hi guys,

when i try to bind combo box from web api  it doesn't work in right way although the data comes properly and it works fine with static data :  

<ComboBox data={this.state.domains} dataItemKey="DomainObjectID"    textField="DisplayName" onChange={this.handleChange} value={this.state.value}/>

what is the prolem

 

 

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 27 Jan 2020, 10:24 AM

Hello, Beshoy,

For the ComboBox it does not make a difference where the data is coming from. It expects an array of data.

I can assume that "this.state.domains" is not in the expected format.

Could you please console.log(this.state.domains) inside render and share the result with us? This will allow me to inspect if the issue is connected to the data format.

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
beshoy
Top achievements
Rank 1
answered on 27 Jan 2020, 10:28 AM

hi ,

thanks for your replay i found the problem ,it's binding correctly but the problem is the combo box is render behind the form "due to telerik style" ,i don't know why it happen 

0
Accepted
Stefan
Telerik team
answered on 27 Jan 2020, 10:31 AM

Hello, Beshoy,

Thank you for the clarification.

This is the reason why this is happening:

https://www.telerik.com/kendo-react-ui/components/popup/stack-order/

Regards,
Stefan
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
beshoy
Top achievements
Rank 1
Answers by
Stefan
Telerik team
beshoy
Top achievements
Rank 1
Share this question
or