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

[Solved] Problem Multicolumn RadCombobox and OpenaccessDataSource

2 Answers 98 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 18 Feb 2010, 04:41 PM

Hello.

 

I have a problem with a view and openaccess, i have 3 fields to return for build  a multicolumn radcombobox, in the examples for create multicolumn radcombo typed the following:

e.Item.Text = (DirectCast(e.Item.DataItem, DataRowView))("Field1").ToString() + _
                "; " + (DirectCast(e.Item.DataItem, DataRowView))("Field2").ToString() + _
                "; " + (DirectCast(e.Item.DataItem, DataRowView))("Field3").ToString()

Now to create a RadCombo with OpenAccess I've typed the following,

e.Item.Text = (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field1).ToString() + _
 " - " + (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field2).ToString() + _
 " - " + (DirectCast(e.Item.DataItem, TelerikORM.Mivista).Field3).ToString()

and the problem is that when I run the form displays all records repeated with data from the last returned in the query, the number of records that is well add, delete and the number of records is OK, but the description is the only is the last record that casts the query OpenAccess.
As if to create the records only reads the last record is of the number of records resulting in the query.

 

thanks for the Colaboration

Alex Alfonso
Bogotá - Colombia

2 Answers, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 19 Feb 2010, 01:40 PM
Does it have to be created in the code, or can you use RadComboTemplates and bind directly to the OpenAccessDataSource?

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/templates/defaultcs.aspx


0
Simon
Telerik team
answered on 19 Feb 2010, 05:47 PM
Hello Alex,

Can you please try binding another control (e.g. GridView or Repeater) to the OpenAccessDataSource and see whether the correct data is returned?

Greetings,
Simon
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
Alex
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
Simon
Telerik team
Share this question
or