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

Populate new data after client action

0 Answers 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 04 Sep 2017, 12:37 PM

Hi, im using RadComboBox and I have initial(complete) data source on page load.

After certain client action i want to pass a parameter to receive a new data source.

I am able to send that parameter and i see it on server side. It does get passed to the SQL procedure which returns new data.

The problem is on client side which doesnt show the new data, combo is populated with the old data.

Is there a way to force the RadComboBox to repopulate the data after it gets new data on the server side?

Thanx!

 

The code is very simple:

Private Sub CreateComboTipBonusa()
Dim dt As New DataTable
Dim idRet As Integer
If Not IsNothing(Request("IdRetention")) Then
idRet = Convert.ToInt32(Request("IdRetention"))
End If
With New SqlCommandWrapper("gorComboRetentionTipBonusa")
.AddParameter("@IdRetention", idRet)
.AddParameter("@OdgId", OdgId)
.AddParameter("@AppType", myAppType)
.AddParameter("@Culture", myCulture)
dt = .ExecuteTable
End With
cmbTipBonusa.DataValueField = "IdReda"
cmbTipBonusa.DataTextField = "Naziv"
cmbTipBonusa.DataSource = dt
cmbTipBonusa.DataBind()
End Sub

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
Igor
Top achievements
Rank 1
Share this question
or